Query tenant audit log
GET /api/v1/audit-log
Returns a paginated audit-log view for the authenticated user with the audit.view permission. Supports page, per-page, action, action prefix, date range, and legacy since/until filters. Sealed payloads are presented in the controller's tenant-scoped row shape. This list uses offset pagination ordered by id DESC. Keep the same filters and per_page value for every page. If rows are added or deleted while paging, rows can repeat or be skipped. Restart at page 1 after the list has stopped changing for a fresh traversal; this endpoint does not provide a point-in-time snapshot.
Authenticate with a portal session token.
Parameters
pageinteger queryDefault:1. Range: at least 1per_pageinteger queryDefault:50. Range: 1 to 100actionstring queryLength: at most 128 charactersaction_prefixstring queryLength: at most 64 charactersfromstring (date) querytostring (date) querysincestring (date-time) queryLegacy alias used when from is absent.
untilstring (date-time) queryLegacy alias used when to is absent.
Responses
200 Paginated response containing tenant-scoped audit rows; sealed v2 payloads are exposed only after tenant-scoped decryption.
application/json object
current_pageinteger requireddataarray of object requiredEach item:
actionstring requiredcreated_atstring (date-time) or null requirederasedboolean requiredhash_versionstring requiredidinteger requiredip_addressstring or nullmetaobject or nullAny keys are accepted.
resource_external_idstring or nullresource_idstring or integer or nullresource_typestring or nullresultstring or null requiredretention_categorystring or nullsubject_idstring or nulluser_agentstring or nulluser_idinteger or null
last_pageinteger requiredper_pageinteger requiredtotalinteger required
Generated sample
{
"current_page": 0,
"data": [
{
"action": "string",
"created_at": "2026-01-01T00:00:00Z",
"erased": true,
"hash_version": "string",
"id": 0,
"ip_address": "string",
"meta": {},
"resource_external_id": "string",
"resource_id": "string",
"resource_type": "string",
"result": "string",
"retention_category": "string",
"subject_id": "string",
"user_agent": "string",
"user_id": 0
}
],
"last_page": 0,
"per_page": 0,
"total": 0
}401 Missing or invalid bearer token.
application/json object
Any keys are accepted.
403 Authenticated caller lacks the required permission, ability, or role.
application/json object
Any keys are accepted.
422 The audit-log query parameters are invalid.
application/json object
errorobject requiredcodestring requiredValue:"validation_error"messagestring requiredfieldsobject requiredOther keys: array of string
429 The request was rate limited. API-generated responses are JSON;
Response headers
Retry-Afterstring headerSeconds to wait before retrying, when provided.
X-RateLimit-Scopestring headerIdentifies the scope of the request limit, when provided.
application/json GenericError
erroranyOne of
- string
- object
Any keys are accepted.
error_codestringcodestringmessagestringdetailstringstatusanyOne of
- string
- integer
errorsobjectAny keys are accepted.
text/html string