Get session
Returns one session with its status, agent and environment binding, and timing. Statuses completed, failed, and cancelled are terminal and will not change again, which is what a poller should wait for. Pass waitSeconds to have the read block while the session is active, so a caller without a timer of its own can wait by repeating this one read. Poll with view=summary once agentSnapshot, modelSnapshot and config are held. They are written at start and change only when the session moves to another version of its agent, which the summary’s agentVersionId shows: read the full view again when it changes.
Authorizations
Headers
Path Parameters
Query Parameters
full (default) returns the whole session. summary omits agentSnapshot, modelSnapshot and config, which are most of the session's bytes. agent_snapshot and model_snapshot change when the session moves to another agent version, which the summary's agent_version_id shows, and config can change at any time, so read the full view when you need them current.
full, summary Block up to this many seconds while the session is active before responding, so a poll loop needs no client-side timer. The read returns as soon as status leaves active (completed, failed, cancelled, or awaiting_human). The server caps the wait at 20 seconds; larger values are accepted and clamped. 0 (the default) returns immediately.
0 <= x <= 60Response
OK
Resolved per-session runtime settings written at start, including the snapshotted MCP servers and tool bindings, multi-agent roster, and delegation depth limits. The settings an agent version owns change only when the session moves to another version of its agent. Read-only to callers. Empty for conversations opened by managedAgentsOpenFineTuningAnalyst.
What produced the session: api_call, chat, rollout (an imported RL rollout), subagent (delegated by another session), benchmark, evaluation (a platform-started evaluation run over other session snapshots), reflection (a platform-started memory consolidation), or session_analyst (a platform-started assistant conversation for a supported subject).
api_call, chat, rollout, subagent, benchmark, evaluation, reflection, session_analyst Coarse session state shared with RL rollout imports: active, awaiting_human (for a rollout, carries no score), completed, failed, or cancelled. For where a running agent loop is, read execution_state instead.
active, awaiting_human, completed, failed, cancelled The definition of the agent version this session runs, frozen so later edits to the agent cannot change this session's behavior. Written at start; it changes only when the session moves to another version of its agent, which agentVersionId shows. Omitted for conversations opened by managedAgentsOpenFineTuningAnalyst.
Whether this root session currently occupies the agent's max_concurrent_sessions slot. True while admitted and non-terminal. False exclusively while an active queued root waits to start. Omitted for unlimited agents, child sessions, legacy rows, and terminal or deleted sessions.
Billed cost of this session's whole tree as an exact canonical decimal USD string. On Recursion, a writer's cost also includes linked cloned outcome evaluation roots, counting each ledger charge once; manual evaluations remain independent. On other surfaces, cost remains tree-only. Compute still running is included as an estimate; the figure is final once every included tree has ended and settled. Returned by managedAgentsGetSession and managedAgentsListSessions only, and absent when it cannot be read.
"1.234567"
Provider-qualified model string this session runs, including any per-session model override. Written at start; it changes only when the session moves to another version of its agent. Prefer this over resolving model_ref_id or the current agent version when displaying the model a session runs.
Where the agent loop is. Empty for sessions without a loop, such as imported rollouts. provisioning includes any automatic setup-image refresh before sandbox creation. The deployment's compute-ready timeout (five minutes by default) bounds sandbox readiness after refresh, not the setup run itself. A failed setup or sandbox timeout fails the session with the reason in failure. This field, read from the session itself, is the authoritative status -- a session's event stream is written on a separate path and can lag it, so an empty event list does not mean the session is still starting.
provisioning, queued, running, idle, completed Caller-defined string key/value pairs supplied when the session was started, e.g. ids from your own system. Immutable, present on root sessions only, and filterable with metadataAll=key:value or metadataKeyAll=key on GET /managed-agents/v2/sessions. At most 32 entries; keys use letters, digits, '_', '.', and '-' up to 64 characters; values are 1-512 characters.
Why the loop is not running. Set whenever execution_state is idle or completed. sleeping means the agent chose to wait and the session resumes on the next message or at wake_at; awaiting_subagents means a coordinator is waiting on delegated work; out_of_credit and tenant_suspended pause before new work and continue on the next message after the tenant is admitted again; an out_of_credit pause from the last 72 hours also continues on its own within about a minute once the tenant is admitted again; budget_reached means the session tree reached its budget and paused before its next model request, and raising or removing the session's budget continues it; superseded means an automation's coordinator session was marked for replacement and ended with no hand-off pending; new conversations go to a newer coordinator session, started by the next conversation no session can take if none exists yet, and subagents it started may still be running, reporting to the newer session once it exists.
RFC 3339 timestamp at which a sleeping session wakes itself if nobody messages it first. Absent when nothing is scheduled to wake it. No one will message an evaluation run, so one that waits without a timer is woken by the platform six hours after the wait began if nothing else wakes it first.