GET

/v1/schemas/openai/chat/responses%2Fcompact?kind=output

kind outputactivity chathash 966ab64fextracted Jul 16, 2026version currentsource upstream spec ↗

Response body

5 properties · 5 required · 151 $defs
propertytypedescriptionconstraints
id*stringThe unique identifier for the compacted response.
object*enumThe object type. Always `response.compaction`.response.compaction · default: "response.compaction"
output*ItemField[]The compacted list of output items.
created_at*integerUnix timestamp (in seconds) when the compacted conversation was created.format: unixtime
usage*ResponseUsageToken accounting for the compaction pass, including cached, reasoning, and total tokens.

Validate a payload

before you spend tokens
shell
$ curl -X POST https://modelschemas.com/v1/validate \
    -d '{"provider":"openai","endpointId":"responses/compact","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}