Skip to navigation

Query customer logs

Query persisted customer logs with filtering, pagination, and search. When data.live is present the page came from the span store: one entry is one execution seam, so sub-seam rows (step skips, sources, context notices, artifacts, state snapshots, custom events) are not listed, a start/complete pair is one row carrying a duration, runs still in progress appear once they finish, and search matches a span’s message, name, operation, tool name or error class. Otherwise each entry is one event. Requests naming audit or schedule, and an audit-entitled unfiltered read, are always served from the event tier.

Authentication

AuthorizationBearer
API key or Clerk session token

Query parameters

fromstringOptional

Start timestamp (ISO 8601). Defaults to 24 hours ago.

tostringOptional

End timestamp (ISO 8601). Defaults to now.

startTimestringOptional
Alias for from. Ignored when from is also given.
endTimestringOptional
Alias for to. Ignored when to is also given.
levelstringOptional

Comma-separated log levels (debug,info,warn,error). An unknown value is rejected with 400.

categorystringOptional

Comma-separated categories (execution,agent,tool,model,system,error,schedule,batch,audit). An unknown value is rejected with 400.

flowIdstringOptional
Filter by flow ID
agentIdstringOptional
Filter by agent ID
executionIdstringOptional

Filter by runtime execution_id / executionSessionId (for example exec_… or otel-…), not the aex_… agent-execution row ID

surfaceIdstringOptional
Filter by surface ID
conversationIdstringOptional
Filter by conversation ID
searchstringOptional

Case-insensitive substring search over a span’s message, name, operation, tool name or error class; a live-tier row matches on its message.

statusstringOptional

Comma-separated statuses (running,completed,failed,queued,cancelled,unknown). An unknown value is rejected with 400. A row is unknown while its activity has not finished, else failed at level error and completed otherwise; running, queued and cancelled match no row today.

typestringOptional

Comma-separated entry types (flow,step,tool,batch,system,agent,model,schedule,audit). An unknown value is rejected with 400. Matches the type each row is rendered with, so step selects step spans only and flow selects flow runs without their steps. Combined with category by AND.

limitstringOptional

Max results per page (default 500, max 1000)

cursorstringOptional
Pagination cursor
orderstringOptional

Sort order: asc or desc

Response

Log entries returned
dataobject
successboolean
windowobject

The time window the query resolved to, after defaults and from/to aliases.

Errors

400
Bad Request Error
401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error
500
Internal Server Error
503
Service Unavailable Error