Query customer logs
Query persisted customer logs via R2 SQL with filtering, pagination, and search.
Authentication
AuthorizationBearer
API key or Clerk session token
Query parameters
from
Start timestamp (ISO 8601)
to
End timestamp (ISO 8601)
level
Comma-separated log levels (debug,info,warn,error)
category
Comma-separated categories
flowId
Filter by flow ID
agentId
Filter by agent ID
executionId
Filter by execution ID
surfaceId
Filter by surface ID
conversationId
Filter by conversation ID
search
Full-text search in message
limit
Max results per page (default 500, max 1000)
cursor
Pagination cursor
order
Sort order: asc or desc
Response
Log entries returned
data
success
Errors
400
Bad Request Error
401
Unauthorized Error
402
Payment Required Error
500
Internal Server Error