Get aggregated log stats

Returns aggregated log statistics including histogram, counts by level, and counts by category.

Authentication

AuthorizationBearer
API key or Clerk session token

Query parameters

fromstringOptional

Start timestamp (ISO 8601)

tostringOptional

End timestamp (ISO 8601)

levelstringOptional

Comma-separated log levels (debug,info,warn,error)

categorystringOptional

Comma-separated categories

flowIdstringOptional
Filter by flow ID
agentIdstringOptional
Filter by agent ID
executionIdstringOptional
Filter by execution ID
surfaceIdstringOptional
Filter by surface ID
conversationIdstringOptional
Filter by conversation ID
searchstringOptional

Full-text search in message

limitstringOptional

Max results per page (default 500, max 1000)

cursorstringOptional
Pagination cursor
orderstringOptional

Sort order: asc or desc

Response

Log stats returned
dataobject
successboolean
cachedAtstring or null
When the response was served from cache, the cache write time. Null for fresh responses.

Errors

401
Unauthorized Error
500
Internal Server Error