Skip to content

Archive Session

POST/v1/agents/sessions/{session_id}/archive

Archive a Session with compare-and-set. Archived Sessions reject input, metadata updates, and streams. DELETE is the SDK form of archive.

Path parameters

stringsession_idrequired

Session ID (ses_ prefix).

Request body

JSON object.

integerrow_versionrequired

The row_version you last read. A stale value returns 409.