Skip to main content

Audit

Every call needs Authorization: Bearer <key>. 1 call:

The workspace's audit log​

GET /v1/audit-log

Query parameters

NameTypeRequiredDescription
limitintegerNoFrom 1 to 100. Default 50.
cursorstringNoOpaque cursor from next_cursor. Up to 512 characters.
actor_typeenumNoOne of: user, api_key, service, staff, system.
actor_idstringNoUp to 100 characters.
actionstringNoUp to 100 characters.
target_typestringNoUp to 60 characters.
target_idstringNoUp to 100 characters.
fromstring (date-time)NoISO 8601 timestamp.
tostring (date-time)NoISO 8601 timestamp.

Headers

NameTypeRequiredDescription
x-workspace-idstringNoWorkspace for session (JWT) callers. API keys carry their own workspace.

Response 200

FieldTypeDescription
dataobject[]
data[].actionstring
data[].actor_idstring or null
data[].actor_labelstring or null
data[].actor_typeenumOne of: user, api_key, service, staff, system.
data[].idstring (uuid)
data[].ipstring or null
data[].metadataobject
data[].occurred_atstring (date-time)ISO 8601 timestamp.
data[].request_idstring or null
data[].target_idstring or null
data[].target_typestring or null
data[].workspace_idstring or nullWorkspace id (ws_...).
next_cursorstring or nullPass as cursor to get the next page; null at the end.

Errors: 400, 401, 403, 404, 409, 413, 415, 429, 500. See errors for the shape and codes.