The Audit Logs API provides an append-only, organization-scoped event feed. Every administrative action, resource change, and compliance operation can be recorded and queried with cursor pagination.

Authentication and authorization

Audit endpoints require a Clerk JWT and an active organization. Only organization owners and admins can write or list audit events.

Endpoints

Write an audit event

Applications and integrations can emit custom audit events to the organization feed.
Response 201 Created

List audit events

Events are returned in ascending chronological order. Use cursor to page forward and limit to control page size.
Response 200 OK

Pagination with cursor

The cursor format is created_at|id.

Query parameters

Request/response fields

Event object

Write request body

Error codes

  • Compliance — Data export, deletion, and retention requests
  • Vault — Encrypted credential storage
  • Security model — Trust boundaries and controls