Skip to main content
Returns the organization’s audit log, newest first: who did what, from which channel and when. The log is read-only — there is no endpoint to create, edit or delete entries. For the list of recorded actions and what each entry stores, see the Auditoría guide.

Authentication

Accepts either:
  • An API key (X-API-Key: sk_...) with the read:audit-logs scope — the organization is resolved from the key itself.
  • A Supabase Bearer session (Authorization: Bearer <token>) with the X-Organization-Id: <org-id> header — the authenticated user must be an owner or admin of that organization. A member gets 403 Forbidden.

Query Parameters

Pagination

The response includes nextCursor. Send it as cursor to get the next page. When nextCursor is null there are no more results.

Example Request

Example Response

Fields

Common Errors

400 Bad Request

Invalid date, cursor, resourceType or filter value. Also returned when X-Organization-Id is missing on a session-authenticated request.

401 Unauthorized

Missing or invalid Bearer token / API key.

403 Forbidden

The authenticated user is not an owner or admin of the organization, or the API key does not have the read:audit-logs scope.