Contents
Audit trail
Who did what in your organization, and when.
Examples marked as generated are built from the schema with synthetic values.
- GETList audit events
/api/v2/audit-events
GET
/api/v2/audit-eventsList audit events
Returns the audit trail of the active organization: who did what, and when.
- Authentication
- API token or portal session
- Required permission
audit.read
Parameters
| Name | In | Type | Required | Rules |
|---|---|---|---|---|
| limit | Query | integer | No |
|
| cursor | Query | string | No |
|
| site_id | Query | string | No |
|
| resource_type | Query | string | No |
|
| resource_id | Query | string | No |
|
| action | Query | string | No |
|
| actor_id | Query | string | No |
|
| from | Query | string | No |
|
| to | Query | string | No |
|
Responses
200OKapplication/json
Fields (21)
Responses listAuditEvents 200 Field Type Required Rules data array<object> Yes data[].id string Yes data[].occurred_at string Yes - Format: date-time
data[].actor object Yes data[].actor.type string Yes - One of: user, api_token, system, edge_agent, migration, provider_webhook
data[].actor.user_id string Yes - Can be null
data[].actor.email string Yes - Can be null
data[].actor.token_id string Yes - Can be null
data[].actor.impersonated boolean Yes data[].actor.staff boolean Yes data[].action string Yes data[].resource_type string Yes data[].resource_id string Yes - Can be null
data[].outcome string Yes - One of: success, denied, failure
data[].request_id string Yes - Can be null
data[].ip string Yes - Can be null
data[].changes object Yes - Can be null
data[].metadata object Yes - Can be null
pagination object Yes pagination.next_cursor string Yes - Can be null
pagination.has_more boolean Yes Example (generated from the schema) { "data": [ { "id": "id_example", "occurred_at": "2026-01-15T10:00:00Z", "actor": { "type": "user", "user_id": "user_example", "email": "user@example.test", "token_id": "token_example", "impersonated": false, "staff": false }, "action": "site.updated", "resource_type": "string", "resource_id": "resource_example", "outcome": "success", "request_id": "req_01EXAMPLE00000000000000000", "ip": "string", "changes": {}, "metadata": {} } ], "pagination": { "next_cursor": "string", "has_more": false } }400Bad requestapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/malformed_request", "title": "Malformed request", "status": 400, "code": "malformed_request", "request_id": "req_01EXAMPLE00000000000000000" }401Unauthorizedapplication/problem+json
Headers: WWW-Authenticate
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/unauthenticated", "title": "Authentication required", "status": 401, "code": "unauthenticated", "request_id": "req_01EXAMPLE00000000000000000" }403Forbiddenapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/insufficient_scope", "title": "Insufficient permissions", "status": 403, "code": "insufficient_scope", "request_id": "req_01EXAMPLE00000000000000000" }422Unprocessable contentapplication/problem+json
Error codes:
Problem details body
Example { "type": "https://www.cdnify.lat/docs/errors/validation_failed", "title": "Validation failed", "status": 422, "code": "validation_failed", "request_id": "req_01EXAMPLE00000000000000000" }
curl 'https://api.cdnify.lat/api/v2/audit-events' \
-H "Authorization: Bearer $CDNIFY_API_TOKEN"