Skip to main content
POST
Compact a Responses conversation

Authorizations

Authorization
string
header
required

API key (sk-xxx)

Body

application/json
model
string
required
input

Input content. Can be a string or an array of messages.

instructions
string
previous_response_id
string

Response

200 - application/json

Conversation compacted successfully

id
string
object
string
Example:

"response.compaction"

created_at
integer
output
object[]
usage
object
error
object