Retrieve paginated message log with advanced filtering and cursor-based pagination
X-API-Key header.
1h, 6h, 24h, 7d, 30dIf omitted, returns messages across all time.ok, errorllm, tool, embedding)claude-4.5-sonnet, gpt-4o)next_cursor field.Format: <timestamp>|<id> (internal, treated as opaque by clients)null if no more results.Pass this value as the cursor query parameter to fetch the next page.cursor parameternext_cursor if more results existnext_cursor as cursor parameternext_cursor is nulltimestamp DESC, id DESC for consistent pagination.null in the response.cache_read_tokens, cache_creation_tokens) are tracked separately and not included in total_tokens.models array is computed across the entire filtered dataset (not just the current page), making it useful for building filter UIs.