Authorization: Bearer ********************{
"model": "string",
"input": "string",
"instructions": "string",
"previous_response_id": "string"
}curl --location --request POST '/v1/responses/compact' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "string",
"input": "string",
"instructions": "string",
"previous_response_id": "string"
}'{
"id": "string",
"object": "response.compaction",
"created_at": 0,
"output": [
{}
],
"usage": {
"prompt_tokens": 0,
"completion_tokens": 0,
"total_tokens": 0,
"prompt_tokens_details": {
"cached_tokens": 0,
"text_tokens": 0,
"audio_tokens": 0,
"image_tokens": 0
},
"completion_tokens_details": {
"text_tokens": 0,
"audio_tokens": 0,
"reasoning_tokens": 0
}
},
"error": {}
}