API Reference
Audit
Query the audit trail with filtering and cursor-based pagination.
Query audit logs with optional filters for resource type, actor, action, and date range. Results are returned newest first with cursor-based pagination.
Query Parameters
resourceType?string
Filter by resource type
resourceId?string
Filter by resource ID
actorId?string
Filter by actor ID
action?string
Filter by action
from?string
Start date (ISO 8601)
Format
date-timeto?string
End date (ISO 8601)
Format
date-timelimit?integer
Items per page
Range
1 <= value <= 100Default
50cursor?string
Pagination cursor
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/api/audit"{ "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "actorType": "user", "actorId": "string", "actorName": "string", "action": "string", "resourceType": "string", "resourceId": "string", "changes": { "before": {}, "after": {} }, "metadata": {}, "createdAt": "2019-08-24T14:15:22Z" } ], "nextCursor": "string"}{ "error": "string", "details": [ { "code": "string", "message": "string", "path": [ "string" ] } ]}{ "error": "string"}Returns all audit events for a specific resource, newest first with cursor-based pagination.
Path Parameters
type*string
Resource type
id*string
Resource ID
Query Parameters
limit?integer
Range
1 <= value <= 100Default
50cursor?string
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/api/audit/resource/string/string"{ "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "actorType": "user", "actorId": "string", "actorName": "string", "action": "string", "resourceType": "string", "resourceId": "string", "changes": { "before": {}, "after": {} }, "metadata": {}, "createdAt": "2019-08-24T14:15:22Z" } ], "nextCursor": "string"}{ "error": "string", "details": [ { "code": "string", "message": "string", "path": [ "string" ] } ]}{ "error": "string"}Returns all actions performed by a specific actor, newest first with cursor-based pagination.
Path Parameters
id*string
Actor ID
Query Parameters
limit?integer
Range
1 <= value <= 100Default
50cursor?string
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/api/audit/actor/string"{ "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "actorType": "user", "actorId": "string", "actorName": "string", "action": "string", "resourceType": "string", "resourceId": "string", "changes": { "before": {}, "after": {} }, "metadata": {}, "createdAt": "2019-08-24T14:15:22Z" } ], "nextCursor": "string"}{ "error": "string", "details": [ { "code": "string", "message": "string", "path": [ "string" ] } ]}{ "error": "string"}