API Reference
Audit
Query the audit trail with filtering and cursor-based pagination.
List audit logs
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
Default
50Range
1 <= value <= 100cursor?string
Pagination cursor
Response Body
application/json
application/json
application/json
curl -X GET "https://loading/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"
}Get audit history for a resource
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
Default
50Range
1 <= value <= 100cursor?string
Response Body
application/json
application/json
application/json
curl -X GET "https://loading/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"
}Get actor activity
Returns all actions performed by a specific actor, newest first with cursor-based pagination.
Path Parameters
id*string
Actor ID
Query Parameters
limit?integer
Default
50Range
1 <= value <= 100cursor?string
Response Body
application/json
application/json
application/json
curl -X GET "https://loading/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"
}