Skip to content
Sign in Create account

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

  • page integer query
    Default: 1. Range: at least 1
  • per_page integer query
    Default: 50. Range: 1 to 100
  • action string query
    Length: at most 128 characters
  • action_prefix string query
    Length: at most 64 characters
  • from string (date) query
  • to string (date) query
  • since string (date-time) query

    Legacy alias used when from is absent.

  • until string (date-time) query

    Legacy 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_page integer required
  • data array of object required

    Each item:

    • action string required
    • created_at string (date-time) or null required
    • erased boolean required
    • hash_version string required
    • id integer required
    • ip_address string or null
    • meta object or null

      Any keys are accepted.

    • resource_external_id string or null
    • resource_id string or integer or null
    • resource_type string or null
    • result string or null required
    • retention_category string or null
    • subject_id string or null
    • user_agent string or null
    • user_id integer or null
  • last_page integer required
  • per_page integer required
  • total integer 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

  • error object required
    • code string required
      Value: "validation_error"
    • message string required
    • fields object required

      Other keys: array of string

429 The request was rate limited. API-generated responses are JSON;

Response headers

  • Retry-After string header

    Seconds to wait before retrying, when provided.

  • X-RateLimit-Scope string header

    Identifies the scope of the request limit, when provided.

application/json GenericError

  • error any

    One of

    • string
    • object

      Any keys are accepted.

  • error_code string
  • code string
  • message string
  • detail string
  • status any

    One of

    • string
    • integer
  • errors object

    Any keys are accepted.

text/html string