Skip to main content
GET
List audit events
This endpoint requires an audit log API key with the audit_logs:read scope, created by an org admin from the Perplexity web app under Enterprise APIs → Audit API. Sonar API keys are not accepted. See the Audit API guide for setup, pagination patterns, and event fields.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

limit
integer
default:100

Maximum number of events to return in one page.

Required range: 1 <= x <= 500
start_time
string<date-time>

Inclusive lower bound on created_at, as an RFC 3339 timestamp with a timezone offset (for example 2026-10-01T00:00:00Z). Defaults to 30 days before end_time.

end_time
string<date-time>

Inclusive upper bound on created_at, as an RFC 3339 timestamp with a timezone offset. Defaults to the current time. The window between start_time and end_time cannot exceed 30 days.

event_type
string

Return only events of this type, for example member_role_changed. Required to see audit_events_accessed events, which the default feed omits.

after_id
string

Opaque cursor. Return events older than this cursor; pass the previous page's last_id to fetch the next older page. Cannot be combined with before_id.

before_id
string

Opaque cursor. Return events newer than this cursor; pass a saved first_id to fetch only events that arrived since. Cannot be combined with after_id.

Response

One page of audit events, newest first.

data
object[]
required

Events in this page, newest first.

has_more
boolean
required

Whether more events exist beyond this page in the direction you are paging. Stop when false; do not wait for an empty page.

first_id
string | null
required

Opaque cursor for the newest event in the page, or null when data is empty. Save it and pass it as before_id on a later poll.

last_id
string | null
required

Opaque cursor for the oldest event in the page, or null when data is empty. Pass it as after_id to fetch the next older page.