Skip to main content
GET
/
api
/
audit-logs
/
count
cURL
curl -X GET "https://app.cotool.ai/api/audit-logs/count" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
{
  "count": 123
}

Authorizations

Authorization
string
header
required

API Key authentication for programmatic access. Include your API key in the Authorization header as: Bearer your_api_key_here

Query Parameters

userId
string

Count audit logs for specific user ID

Minimum string length: 1
event
string

Count audit logs for specific event type (e.g., user.login, agent.runStarted)

actor
string

Count audit logs for specific actor type (user, agent, chat)

chatId
string

Count audit logs for specific chat ID

Minimum string length: 1
agentId
string

Count audit logs for specific agent ID

Minimum string length: 1
startDate
string

Count audit logs from this date onwards (ISO string format)

endDate
string

Count audit logs up to this date (ISO string format)

Response

200 - application/json

Successful response

Count of audit log entries

count
number
required

Total number of audit log entries matching the specified filters