Endpoint
retention=session under this session_id are hard-deleted (rows physically removed), and any chat history threaded on it is removed from the API surface. deleted counts what was purged.
Pass the same
user you used when writing the session’s data; omitting it targets your account’s default Subject.How sessions work
Asession_id is a cleanup scope with a name — one id that ties together the working data and conversation of one interaction:
- Scopes
retention=sessiondata — records written viaPOST /v1/data(orPOST /v1/extractwithstore=true) withretention: "session"must carry asession_id, and live only until the session is deleted (capped at 24h regardless). - Binds durable conversations on the Agent API — passing
session_idtoPOST /v1/responsesmakes the conversation durable and resumable under that id. See State & memory.