Count audit logs
Return the total number of audit-log records that match a set of optional filters.
Request
- Base URLhttps://app.cotool.ai
- AuthHTTP bearer
Query parameters
Count audit logs for specific user ID
Count audit logs for specific event type (e.g., user.login, agent.runStarted)
Count audit logs for specific actor type (user, agent, chat)
Count audit logs for specific chat ID
Count audit logs for specific agent ID
Count audit logs for specific trigger ID
Count audit logs for a specific tool family (matches data.toolId equal to the value or starting with "<value>_")
Count audit logs for one MCP app connection (via.connectionId or data.mcpApp.connectionId)
Count audit logs from this date onwards (ISO string format)
Count audit logs up to this date (ISO string format)
Text search across event type, actor, user email, agent name, and data fields
Response
Successful response
Changes
No recorded changes to this operation across all 2 revisions of this API.