List run events

http
GET /runs/{run_id}/events

Read run event details: errors, steps, model calls and tool results, paginated by canonical UUID; MODEL_CALL_COMPLETED reports per-call usage.

Parameters

NameInRequiredDescription
run_idpathYesRun UUID, or the public run id (run_…) that run lists and getRun carry as run_id. Normal callers need access to the run owner and project.runs.read. A bound eval runtime may instead read its authorized direct agent child.
event_representationqueryUse run-events-v1 to receive Agent Events Protocol CloudEvents with opaque page cursors. Omit it to keep the released run-event row contract.
cursorqueryOpaque page_info.next cursor. Reuse it with the same filters, sort order and descendant scope.
limitqueryMaximum number of records in a page, from 1 to 100. Defaults to 20.
sort_orderqueryEvent order by durable event id. asc returns older events first; desc returns newer events first. Defaults to asc.
event_classqueryThe event class associated with this record.
event_typequeryFilter by event_type. Repeat the query parameter for multiple values; comma-separated values remain a compatibility alias. Values within this filter use OR; different filters use AND.
is_errorqueryIf true, returns only events with is_error: true. If false, returns other events. If omitted, returns both.
startqueryOnly events created at or after this instant (ISO 8601 with a UTC offset, inclusive). A summary bucket start can be sent as is.
endqueryOnly events created before this instant (ISO 8601 with a UTC offset, exclusive). Must be later than start. A summary bucket end can be sent as is.
span_idqueryOnly events whose envelope span_id, as served to the caller, is exactly this value (tool:<id>, message:<id>, step:<id>, input_request:<id>, run:<id>, with a non-empty <id>).
turn_idqueryOnly events whose envelope turn_id, as served to the caller, is exactly this value (message:<id>, with a non-empty <id>).
searchqueryCase-insensitive substring of the event payload JSON as served to the caller (1-200 characters after trimming, matched literally).
include_descendantsqueryIf true, includes events from readable descendant runs, up to 16 generations. Results share one event_id order and cursor. Each event retains its run_id and the payload visibility permitted for that run. Runs the caller cannot read are excluded. Defaults to false. If at least one descendant is included, task or workflow runs without stored events do not contribute synthetic lifecycle events. Event IDs are allocated before commit. During active writes, ascending pagination can pass an ID that another run commits later.
after_event_idquery
cursor_profilequery

Responses

StatusDescription
200Run events. Editors read diagnostic payloads; viewers read public ones.
400Canonical Events v1 refusal
401Unauthorized
403Forbidden
404Canonical Events v1 refusal
409Canonical Events v1 refusal
422Canonical Events v1 refusal
429Rate limit exceeded
500Canonical Events v1 refusal
503Service unavailable