List audit logs
Return a paginated list of audit logs filtered by query parameters such as userId, event type, date range, etc. Supports two pagination modes: limit/offset (default), and keyset cursors for continuous export — when a page is full, the X-Next-Cursor response header carries an opaque cursor for the next page; pass it back as the cursor query parameter. An absent header (or a short page) means there is no more data. Cursor pages stay equally fast at any depth, unlike large offsets.
Request
- Base URLhttps://app.cotool.ai
- AuthHTTP bearer
Query parameters
Filter audit logs by specific user ID
Filter audit logs by event type (e.g., user.login, agent.runStarted)
Filter audit logs by actor type (user, agent, chat)
Filter audit logs by specific chat ID
Filter audit logs by specific agent ID
Filter audit logs by specific trigger ID
Filter audit logs by tool family (e.g. "slack" matches data.toolId = "slack" and any "slack_*" tool)
Filter audit logs to one MCP app connection (via.connectionId or data.mcpApp.connectionId)
Filter audit logs from this date onwards (ISO string format)
Filter audit logs up to this date (ISO string format)
Text search across event type, actor, user email, agent name, and data fields
Maximum number of audit logs to return (1-100, default: 50)
Number of audit logs to skip for pagination (default: 0, max: 10000). For continuous export or deep pagination, use cursor pagination instead.
Opaque keyset-pagination cursor from the X-Next-Cursor response header of the previous page. Preferred over offset for continuous export: pages stay equally fast at any depth and an empty page means there is no more data. Mutually exclusive with offset; only supported with sortBy=timestamp.
Field to sort audit logs by (default: timestamp)
Sort direction for audit logs (default: desc)
Response
Successful response
Changes
No recorded changes to this operation across all 2 revisions of this API.