List Steps For Run
Get steps associated with a run with filtering options.
Authentication
AuthorizationBearer
Header authentication of the form Bearer <token>
Path parameters
run_id
Query parameters
before
Cursor for pagination
after
Cursor for pagination
limit
Maximum number of messages to return
order
Sort order for steps by creation time. 'asc' for oldest first, 'desc' for newest first
Allowed values:
order_by
Field to sort by
Response
Successful Response
id
The id of the step. Assigned by the database.
origin
The surface that this agent step was initiated from.
provider_id
The unique identifier of the provider that was configured for this step
run_id
The unique identifier of the run that this step belongs to. Only included for async calls.
agent_id
The ID of the agent that performed the step.
provider_name
The name of the provider used for this step.
provider_category
The category of the provider used for this step.
model
The name of the model used for this step.
model_endpoint
The model endpoint url used for this step.
context_window_limit
The context window limit configured for this step.
completion_tokens
The number of tokens generated by the agent during this step.
prompt_tokens
The number of tokens in the prompt during this step.
total_tokens
The total number of tokens processed by the agent during this step.
completion_tokens_details
Metadata for the agent.
stop_reason
The stop reason associated with the step.
tid
The unique identifier of the transaction that processed this step.
trace_id
The trace id of the agent step.
feedback
The feedback for this step. Must be either 'positive' or 'negative'.
Allowed values:
project_id
The project that the agent that executed this step belongs to (cloud only).
error_type
The type/class of the error that occurred
error_data
Error details including message, traceback, and additional context
status
Step status: pending, success, or failed
Allowed values:
messagesDeprecated
The messages generated during this step. Deprecated: use GET /v1/steps/{step_id}/messages
endpoint instead