Skip to main content
POST
Compact Conversation

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
string
required
input

Input content, which can be a string or an array of messages

instructions
string
previous_response_id
string

Response

Conversation compacted successfully

id
string
object
string
Example:

"response.compaction"

created_at
integer
output
object[]
usage
object
error
object