http
GET /runs/{run_id}/eventsRead run event details: errors, steps, model calls and tool results, paginated by canonical UUID; MODEL_CALL_COMPLETED reports per-call usage.
Parameters
| Name | In | Required | Description |
|---|---|---|---|
run_id | path | Yes | Run 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_representation | query | Use run-events-v1 to receive Agent Events Protocol CloudEvents with opaque page cursors. Omit it to keep the released run-event row contract. | |
cursor | query | Opaque page_info.next cursor. Reuse it with the same filters, sort order and descendant scope. | |
limit | query | Maximum number of records in a page, from 1 to 100. Defaults to 20. | |
sort_order | query | Event order by durable event id. asc returns older events first; desc returns newer events first. Defaults to asc. | |
event_class | query | The event class associated with this record. | |
event_type | query | Filter 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_error | query | If true, returns only events with is_error: true. If false, returns other events. If omitted, returns both. | |
start | query | Only events created at or after this instant (ISO 8601 with a UTC offset, inclusive). A summary bucket start can be sent as is. | |
end | query | Only 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_id | query | Only 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_id | query | Only events whose envelope turn_id, as served to the caller, is exactly this value (message:<id>, with a non-empty <id>). | |
search | query | Case-insensitive substring of the event payload JSON as served to the caller (1-200 characters after trimming, matched literally). | |
include_descendants | query | If 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_id | query | ||
cursor_profile | query |
Responses
| Status | Description |
|---|---|
| 200 | Run events. Editors read diagnostic payloads; viewers read public ones. |
| 400 | Canonical Events v1 refusal |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Canonical Events v1 refusal |
| 409 | Canonical Events v1 refusal |
| 422 | Canonical Events v1 refusal |
| 429 | Rate limit exceeded |
| 500 | Canonical Events v1 refusal |
| 503 | Service unavailable |