Skip to main content
The audit trail API returns a read-only feed of your organization’s audit events, such as sign-ins, approvals, configuration changes, and report downloads. Use it to stream events into a SIEM or a data warehouse, or to review them for compliance.
The audit trail API is in development. This page describes the interface as the sandbox serves it today, which may change before general availability. Until then, use the web dashboard reports listed in the Reporting overview.

Before you start

Create an API key whose permission group includes the Read audit events permission. The audit trail API only reads, so requests don’t need to be signed.

List audit events

GET /v2/audit-events Permission required: Read audit events.
The example uses the sandbox base URL. For production, see Base URLs. Events come back oldest first, ordered by ingestedAt. Events are immutable, so a page you’ve read never changes and never repeats. To page forward, request the previous response’s page.next URL. A request without afterId starts from the oldest event still retained. A null page.next means you’re caught up, not finished. For a continuous feed, keep the last non-null next URL and request it again. New events become visible shortly after they’re recorded.

Query parameters

eventCategory and eventType are mutually exclusive. Sending both returns a 400. startDateTime and endDateTime filter the same clock the pages walk. They narrow a range but don’t resume one, so keep paging with page.next. Because endDateTime is exclusive, back-to-back windows never return the same event twice. occurredAt isn’t filterable. It can fall outside the window you asked for, because an event can be recorded well after it happened.

One action can produce several events

Each event appears once in the feed, but one action can be recorded more than once, and one change can affect several things:
  • A single report download can be recorded more than once.
  • auth.api_key.used is recorded on a key’s first use each UTC day. Two simultaneous first requests can record it twice.
  • auth.session.timeout is recorded each time an expired session is used.
  • A change your organization’s quorum approves can produce related events, such as policy.update and user.role.change when a new vault’s policy grants users access. These carry the originating operation in metadata.operation_id or metadata.created_by.
Deduplicate on the fields that matter to you rather than assuming one event per action.

Example response

This response shows a sign-in event with illustrative identifiers.

Audit event fields

Actor

The actor isn’t necessarily someone in your organization.

Subject

Tenant

The tenant is always your own organization, which isn’t necessarily the actor’s.

Enum values

severity follows RFC 5424, from most to least severe: EMERGENCY, ALERT, CRITICAL, ERROR, WARNING, NOTICE, INFORMATIONAL, and DEBUG. action is what the actor did to the subject: CREATE, UPDATE, DELETE, REVOKE, APPROVE, REJECT, ENABLE, DISABLE, READ, or EXPORT. UNSPECIFIED means the event records no specific action.

Actor types

Event types

These are the event types the sandbox returns today. More types will be added before general availability.

Operations

operation.initiate is recorded for changes to your organization’s configuration, such as trusted destinations, users, permission groups, and policies. Withdrawals and transfers record their approvals and rejections but not their initiation. To join these events to the same operation, match subject.id to transactionId in List transactions. metadata.route tells approvals and rejections apart: endorsement for your quorum, risk_review for Anchorage Digital’s review, and client_rejection for a rejection by your organization. Deposits, staking rewards, and other inbound activity aren’t audit events. Read them from the transactions API.

Errors

Error responses carry a JSON body with an errorType, such as InvalidRequest, and a human-readable message. For rate limits and retry guidance, see Errors, rate limits, and pagination.

APIv3 differences

APIv3 serves the same events with the same fields and filters. Paging, the time filter names, and the error body follow APIv3 conventions instead: