GET
/v1/schemas/openai/chat/responses%2Fcompact?kind=output
Accept:
Response body
5 properties · 5 required · 151 $defs| property | type | description | constraints |
|---|---|---|---|
| id* | string | The unique identifier for the compacted response. | |
| object* | enum | The object type. Always `response.compaction`. | response.compaction · default: "response.compaction" |
| output* | ItemField[] | The compacted list of output items. | |
| created_at* | integer | Unix timestamp (in seconds) when the compacted conversation was created. | format: unixtime |
| usage* | ResponseUsage | Token accounting for the compaction pass, including cached, reasoning, and total tokens. |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"openai","endpointId":"responses/compact","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}