Skip to main content
POST
Compact conversation (OpenAI Responses API)

Autorisations

Authorization
string
header
requis

Authenticate with a Bearer Token. Format: Authorization: Bearer sk-xxxxxx

Corps

application/json
model
string
requis
input

Input content, either a string or an array of messages

instructions
string
previous_response_id
string

Réponse

200 - application/json

Conversation compacted successfully

id
string
object
string
Exemple:

"response.compaction"

created_at
integer
output
object[]
usage
object
error
object