Skip to content
OvertCMS Docs

Admin API (Dashboard & Team) Audit Logs

List immutable security and content audit logs

GET /admin-api/v1/audit-logs

Returns a keyset-paginated page of append-only audit logs for the organization (default 50, max 200 per page). Requires audit:read capability.

Authentication

  • overtcms_access cookie SessionCookie

    HttpOnly SameSite=Lax access token cookie issued by login/setup/refresh. State-changing requests (POST, PATCH, PUT, DELETE) authenticated via cookie must also send a matching same-origin Origin header for CSRF protection.

  • Bearer token BearerJWT

    Human Admin access JWT returned by login/setup/refresh/step-up. Agent API keys (ocms_...) are rejected on the Admin Plane.

Query parameters

  • siteId string, uuid
    Filter by site UUID.
  • action string
    Filter by exact audit action (e.g. entry.published, api_key.created).
  • actorId string
    Filter by actor ID.
  • resourceType string
    Filter by resource type (e.g. entry, api_key, webhook, user).
  • resourceId string
    Filter by resource ID.
  • limit integer
    Page size (1-200, default 50).

    Default 50, min 1, max 200

  • cursor string
    Opaque audit cursor.

Responses

  • 200 Paginated audit logs.

    application/json

    • hasMore boolean required
    • logs array of AuditLog required
      Show 14 fields
      • action string required

        Example entry.published

      • actorId string required
      • actorKind string required

        Allowed: userapi_keymcpsystem

      • actorName string required
      • createdAt string, date-time required
      • diffSummary object required
      • id string, uuid required
      • idempotencyKey string
      • ipAddress string
      • organizationId string, uuid required
      • resourceId string
      • resourceType string required

        Example entry

      • siteId string, uuid
      • userAgent string
    • nextCursor string
  • 400 Invalid cursor.

    application/json

    • error APIError required
      Canonical error payload returned across all OvertCMS planes.
      Show 6 fields
      • applied boolean required
        Always false on 4xx responses, guaranteeing the mutation was not applied.

        Example false

      • code string required

        Example validation_error

      • details object
      • issues array of ValidationIssue
        Show 7 fields
        • code string required

          Example max_length

        • constraint object
        • field string

          Example seoTitle

        • instruction string

          Example Keep SEO titles under 60 characters for search snippet display.

        • label string

          Example SEO Title

        • message string required

          Example field must be at most 60 graphemes

        • searchEndpoint string

          Example /agent/v1/collections/posts/fields/author/options

      • message string required

        Example entry validation failed

      • retryable boolean required

        Example false

  • 401 Unauthenticated — missing or expired session cookie / JWT (API keys are rejected).

    application/json

    • error APIError required
      Canonical error payload returned across all OvertCMS planes.
      Show 6 fields
      • applied boolean required
        Always false on 4xx responses, guaranteeing the mutation was not applied.

        Example false

      • code string required

        Example validation_error

      • details object
      • issues array of ValidationIssue
        Show 7 fields
        • code string required

          Example max_length

        • constraint object
        • field string

          Example seoTitle

        • instruction string

          Example Keep SEO titles under 60 characters for search snippet display.

        • label string

          Example SEO Title

        • message string required

          Example field must be at most 60 graphemes

        • searchEndpoint string

          Example /agent/v1/collections/posts/fields/author/options

      • message string required

        Example entry validation failed

      • retryable boolean required

        Example false

  • 403 Forbidden — insufficient RBAC role capability, CSRF Origin mismatch, post-type restriction, or step-up MFA required.

    application/json

    • error APIError required
      Canonical error payload returned across all OvertCMS planes.
      Show 6 fields
      • applied boolean required
        Always false on 4xx responses, guaranteeing the mutation was not applied.

        Example false

      • code string required

        Example validation_error

      • details object
      • issues array of ValidationIssue
        Show 7 fields
        • code string required

          Example max_length

        • constraint object
        • field string

          Example seoTitle

        • instruction string

          Example Keep SEO titles under 60 characters for search snippet display.

        • label string

          Example SEO Title

        • message string required

          Example field must be at most 60 graphemes

        • searchEndpoint string

          Example /agent/v1/collections/posts/fields/author/options

      • message string required

        Example entry validation failed

      • retryable boolean required

        Example false

Documentation

Start here