Show what a session's turn is doing or got done
PreviewManage execution sessions and rooms, and their files, tasks, storage, databases and managed sandboxes.
/v1/sessions/{session_id}/workSee authentication for credentials and permissions.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Prefixed public identifier
Responses
200Success
Success
Response of GET /v1/sessions/{session_id}/work.
object
The report, or null when the session has not run a turn.
object
Agent name snapshot at turn start.
Elapsed time: to the end when finished, to the read time while running.
When the work ended.
One line, always present: the current step while working, the request while waiting, the result when finished.
Model of the latest generation.
Steps run but no longer listed.
The plan the agent shared, if any.
object
The item in progress, in its “doing” form when the tool has one.
Items done or skipped.
Plan items in order.
One checklist line in [BackgroundProgress::steps].
object
State of one checklist line.
Items in total.
What finished work produced. Absent while working.
object
Files, links, pull requests and sessions the work produced.
Typed link to something the task produced.
object
Session VFS path, when the artifact lives in the session filesystem.
Artifact type: “file”, “url”, “session”, “pr”, etc.
External URL, when the artifact lives elsewhere.
How the agent checked the work (“ran the 12 billing tests”), when it reported.
Measured facts, in display order.
One measured fact.
object
Which fact.
Its value.
One or two sentences on what changed.
When the work started.
Where the work stands.
Steps in order, newest last, bounded by [MAX_REPORT_STEPS].
One step of the work: a tool call, labelled by its narration.
object
How long the step took, once finished.
The tool call id.
What the step is doing (“Running tests”) or what came out of it (“Read AGENTS.md”).
When the step started.
Where the step stands.
Tool name.
The turn the report describes.
Example
{ "report": { "agent_name": "Billing fixer", "attention": { "kind": "approval", "prompt": "Deploy to staging" }, "duration_ms": 133000, "ended_at": "2026-10-23T12:02:13Z", "headline": "Step 3 of 4 · Running `cargo test`", "model": "gpt-6.1-sol", "omitted_steps": 0, "plan": { "current": "Run the tests", "done": 2, "items": [ { "status": "pending" } ], "total": 4 }, "result": { "checks": "Ran the 12 billing tests", "facts": [ { "kind": "files_changed", "value": 3 } ], "outcome": "done", "summary": "Fixed the proration rounding and added a test.", "summary_source": "agent" }, "started_at": "2026-10-23T12:00:00Z", "state": "working", "steps": [ { "duration_ms": 4200, "id": "call_01", "label": "Ran `cargo test`, 12 tests passed", "progress": { "current": 7, "label": "Rendering image 7 of 12", "total": 12 }, "started_at": "2026-10-23T12:00:00Z", "state": "running", "tool_name": "bash" } ], "turn_id": "turn_01933b5a00007000800000000000001" }}404Session or turn not found
Session or turn not found