GET

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

kind outputactivity chathash 00397f0dextracted Jul 16, 2026version currentsource upstream spec ↗

Response body

5 properties · 5 required · 157 $defs
propertytypedescriptionconstraints
id*stringThe unique identifier for the compacted response.
object*enumThe object type. Always `response.compaction`.response.compaction · default: "response.compaction"
output*BetaItemField[]The compacted list of output items.
created_at*integerUnix timestamp (in seconds) when the compacted conversation was created.format: unixtime
usage*BetaResponseUsageToken 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?beta=true","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}