Tours & Events

Audit logs

Immutable record of state-changing actions

Super admin only

Every mutation in the API writes an audit entry. The audit log is read-only through this endpoint.

Resource overview

GET/api/audit-logsAPI key · SessionRole: Super Admin

Query

GET/api/audit-logsAPI key · SessionRole: Super Admin
NameTypeRequiredDescription
pageintegerOptionalPage number. Default: 1
limitintegerOptionalPage size (max 200). Default: 50
userIdstringOptionalFilter to actions performed by a specific user.
actionstringOptionalFilter by action key (e.g. `event.update`, `guest.delete`).
resourceTypestringOptional`event`, `guest`, `vehicle`, etc.
resourceIdstringOptionalSpecific resource ID.
fromstring (ISO 8601)OptionalInclusive lower bound.
tostring (ISO 8601)OptionalInclusive upper bound.
200
{
  "data": [
    {
      "id": "audit-uuid",
      "userId": "user-uuid",
      "action": "event.update",
      "resourceType": "event",
      "resourceId": "event-uuid",
      "before": { "status": "pending" },
      "after":  { "status": "confirmed" },
      "createdAt": "2026-05-20T10:14:00Z",
      "ip": "203.0.113.42"
    }
  ],
  "total": 1247,
  "page": 1,
  "limit": 50,
  "totalPages": 25
}

On this page