Get an agent session
Returns one session and the status of its most recent run.
More details
More details
Authorizations
API key for authentication
Headers
Accepted for client uniformity but IGNORED on this endpoint. It has no side effects, and a retry can legitimately return different results, so replaying a cached response would hand back stale data. Every request executes fresh: no 24h window, no replay, no Idempotent-Replayed header, and no key-reuse 422.
Path Parameters
Session to read.
Response
The session.
Opaque session identifier used by the other agent routes.
"665f1c2e8a1b4c0012ab34cd"
The submitted title, or the placeholder the agent replaces when it names the session on its first turn.
"New Chat"
Status of this session's most recent run, or null if it has never run.
QUEUED and RUNNING mean a turn is in flight — asking again is a 409. COMPLETED, FAILED, STOPPED and STALE all mean the session is free. STALE is assigned on read when a run stopped reporting past its threshold, which is how a session recovers from a worker that died without sending a terminal event.
QUEUED, RUNNING, COMPLETED, FAILED, STOPPED, STALE "COMPLETED"
When a turn was last enqueued on this session.
Job handle for the most recent run, when it was started through this API. Null for a turn asked in the app.
"sajob_9f2c1a4b7e8d4c1fa0b3"