Page through the steps of one turn of a session's trace, optionally only the failed ones.
const url = 'https://app.everruns.com/api/v1/sessions/example/trace/turns/example/steps';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://app.everruns.com/api/v1/sessions/example/trace/turns/example/stepsParameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”Prefixed public identifier
Prefixed public identifier
Query Parameters
Section titled “Query Parameters”First step of the range, inclusive. Defaults to 1.
Last step of the range, inclusive. Defaults to the turn’s last step.
Only failed steps.
Steps per page, 1 to 500. Defaults to 100.
Responses
Section titled “ Responses ”Success
A page of plain steps of one turn.
object
Step number to continue from, when more remain in the range.
Steps in step order.
A model call, tool call, approval, sub-agent or message. Empty fields are left out: a page carries hundreds of these.
object
Session a spawn_agent call started.
Wall time of the step; absent while running.
Last event sequence of the step.
Prompt tokens of a model call.
model, answer, tool, approval, agent or send.
Model that served the call, for model steps.
Tool name, or model for model calls.
What the model said alongside this call (model calls and answers).
Start relative to the turn’s start.
Completion tokens of a model call.
Tool calls this model call asked for.
Short result or error.
First event sequence of the step.
When the step started.
running, success, error or cancelled.
Per-turn step number, 1-based.
What the call acted on, from the tool’s narration.
Tool call identifier, for tool steps.
Turn the step belongs to.
Example
{ "next_step": 101, "steps": [ { "duration_ms": 269, "end_sequence": 21, "kind": "tool", "model": "gpt-6.1-sol", "name": "bash", "offset_ms": 3010, "start_sequence": 14, "status": "success", "step": 2, "tool_call_id": "call_PzDcvnFaUll8os3tPhWj", "turn": 1240 } ]}