Get Session
/v1/agents/sessions/{session_id}Read a Session. Execution status is read live, so poll this endpoint or use the event stream to follow progress.
Path parameters
Session ID (ses_ prefix).
Session object
Returned by create, get, update, rename, archive, and unarchive.
Session ID with the ses_ prefix.
Execution status: idle, in_progress, or failed. requires_action is not supported yet and surfaces as 502 executor_contract_error.
active or archived. Archived Sessions reject input.
Public failure with code, message, action, and optional retryable.
Frozen Agent version and effective model.
OpenAI-shaped snapshot of the effective Agent configuration, and token usage (null until a turn reports usage).
Origin of the Session. Sessions created with POST /v1/agents/sessions report direct and a null source_id.
Compare-and-set token for rename, archive, and unarchive.