Show a session's whole run
PreviewShow the run a session belongs to: the first session and every agent session started under it, with status, turns and spend.
/v1/sessions/{session_id}/runSee authentication for credentials and permissions.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Prefixed public identifier
Responses
200Success
Success
The run a session belongs to: every agent that took part, with status, timing and spend.
object
Spend of every session in the run, in USD.
Spend of the first session alone, in USD.
The run’s first session, the one the person talks to.
The first session, then every session started under it by creation.
One agent session of the run.
object
Model spend in USD.
When its last turn ended; absent while it works or before it ran.
Outcome of its last finished turn: completed, failed or cancelled.
The session that handed it work; absent for the first session.
Session’s prefixed public identifier.
Session status: started, active, idle, waiting_for_tool_results, …
The session’s title: for work handed off, the task’s name.
Its turns, oldest first.
One turn of a session in the run.
object
Model spend of the turn in USD.
Absent while the turn runs.
Trace status of the turn: running, completed, failed, …
Public turn id (turn_...).
Turn number within its session, from 1.
More sessions or turns existed than were returned.
Questions and approvals any agent in the run waits on the person for.
Example
{ "cost_usd": 5.06, "first_session_cost_usd": 0.25, "root_session_id": "session_01h9xk1a", "sessions": [ { "agent": { "id": "agent_01h9xk2m", "name": "Triage" }, "cost_usd": 0.21, "created_at": "2026-11-03T09:00:00Z", "last_turn_at": "2026-11-03T09:01:30Z", "last_turn_status": "completed", "parent_session_id": "session_01h9xk1a", "session_id": "session_01h9xk2m", "status": "idle", "title": "Triage the failing build", "turns": [ { "cost_usd": 0.21, "ended_at": "2026-11-03T09:01:30Z", "started_at": "2026-11-03T09:00:00Z", "status": "completed", "turn_id": "turn_01h9xk2m", "turn_no": 1 } ] } ], "truncated": false, "waiting_requests": 1}