Get session
Returns one session with its status, agent and environment binding, and timing. A poller should stop on completed, failed, or cancelled, and also when the session needs you: awaiting_human, or execution_state idle with a stop_reason such as requires_action or budget_reached. A later message can resume a root session, and its status then changes again. Pass wait_seconds 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 agent_snapshot, model_snapshot and config are held. 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.
Authorizations
Headers
Path Parameters
Query Parameters
full (default) returns the whole session. summary omits agent_snapshot, model_snapshot 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
One durable agent run: its lifecycle status (active, awaiting_human, completed, failed, cancelled), the agent version, environment, model, and credentials it was pinned to, and its place in a multi-agent tree. Returned when starting, reading, or listing sessions; imported RL rollouts appear as sessions too and run no agent loop.
One durable agent run: its lifecycle status (active, awaiting_human, completed, failed, cancelled), the agent version, environment, model, and credentials it was pinned to, and its place in a multi-agent tree. Returned when starting, reading, or listing sessions; imported RL rollouts appear as sessions too and run no agent loop.
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, subagent (delegated by another session), session_analyst (a platform-started read-only assistant), or evaluation (a root that inspects a captured target snapshot).
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 agent_version_id 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. A failure that can't be retried, such as a failed setup script, 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 metadata=key:value or metadata_key=key on GET /managed-agents/v1/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, except a session bound to a Slack thread, which continues on its next reply there.