List audit events
Returns the organization’s audit events, newest first. Requires an audit log API key (scope audit_logs:read) created by an org admin under Enterprise APIs → Audit API; Sonar API keys are rejected with 403. Without time parameters the endpoint covers the most recent 30 days; a single request can span at most 30 days. See the Audit API guide for key setup, pagination patterns, and event fields.
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
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Maximum number of events to return in one page.
1 <= x <= 500Inclusive 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.
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.
Return only events of this type, for example member_role_changed. Required to see audit_events_accessed events, which the default feed omits.
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.
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.
Events in this page, newest first.
Whether more events exist beyond this page in the direction you are paging. Stop when false; do not wait for an empty page.
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.
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.