session
Compact session
Durably admit a session compaction request. Steers by default: it runs at the next step boundary instead of waiting behind queued prompts.
post/api/session/{sessionID}/compact
Request
- Base URL: https://opencode.ai (the document declares no server; this is the origin it was published from)
- URL: https://opencode.ai/api/session/{sessionID}/compact
- Auth: none required
Path parameters
sessionIDstring required
Request body
Response
Success
Changes
No recorded changes to this operation across all 1 revision of this API.