Get agent audit log
Derive the agent + tool audit log for a task on demand from the stream’s R2 snapshot (the live snapshot for an active stream, or the final stored message for a finished one). No separate audit store is kept.
Authorizations
JWT authentication token
Path Parameters
Task ID
Query Parameters
Maximum number of events to return
1 <= x <= 2000Cursor for pagination - return events after this audit sequence
x >= 0Scope the audit log to a single stream of the task. By default the log aggregates every stream (turn/resume) of the task in chronological order; pass a stream id to return only that stream's events. Unknown / non-matching ids yield an empty log.
Filter by exact event type
Filter by exact event status. Canonical values only: completed (success), failed, timeout, aborted, blocked (awaiting approval / suspended), started (still running).
started, completed, failed, timeout, aborted, blocked Filter by exact agent ID
Filter by exact tool name
Case-insensitive substring search across every data point on an event (action, target, input/output summaries, error, tool name, agent id/type, tool_call_id, event_type, status, scope, metadata).
When true, return the FULL audit log as a downloadable file (Content-Disposition: attachment) instead of a paginated JSON response. Honors the filter/search params but ignores limit / starting_after. The response is the type-selected format.
Export file format, used only when export=true. json (default) or csv. Ignored for the normal paginated response.
json, csv 
