Delete an agent session
Deletes the session. Afterwards every route on it returns 404, including DELETE.
More details
More details
Authorizations
API key for authentication
Headers
Optional opaque key (max 255 chars, UUIDv4 recommended) making this request idempotent for 24h: a retry with the same key and body replays the original response with Idempotent-Replayed: true.
Path Parameters
The session to delete.
Response
The session was deleted.
"665f1c2e8a1b4c0012ab34cd"
true true
Whether a live run was stopped as part of the delete.
False when the session had nothing running. True means the agent was asked to stop and will end the run shortly — the job stays pollable, so the partial answer and the real cost are still readable afterwards.
false
Job handle of the run that was stopped, still pollable after the session is gone. Null when nothing was running, or when the turn was asked in the app.
"sajob_9f2c1a4b7e8d4c1fa0b3"