Skip to main content
GET
/
api
/
audit-logs
/
count
cURL
curl --request GET \
  --url https://app.cotool.ai/api/audit-logs/count \
  --header 'Authorization: Bearer <token>'
{
  "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 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 length: 1
agentId
string

Count audit logs for specific agent ID

Minimum 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