log_id, giving you the most recent activity first. You can narrow results with any combination of filters and page through large result sets using the cursor returned in each response. Every response includes an X-Request-Id header you can use when tracing requests with AuditRails support.
Endpoint
Query Parameters
string
Filter events to an exact action name, such as
user.login or document.deleted. Partial matches are not supported — the value must be an exact string match.string
Return only events produced by this actor. Must be an exact match against the
actor_id field stored on each event.string
Filter to events targeting a specific resource identifier, for example
session/sess_abc. Must be an exact match.string
Inclusive start date in
YYYY-MM-DD format. Events with a timestamp on or after midnight UTC of this date are included.string
Inclusive end date in
YYYY-MM-DD format. Events with a timestamp before the end of this day (UTC) are included.string
Pagination cursor. Pass the
next_cursor value from the previous response to fetch the next page of results. Omit this parameter to start from the most recent event.integer
default:"50"
Number of events to return per page. Minimum
1, maximum 100. Any value outside this range is silently clamped back to the default of 50.Response Fields
array
required
Ordered array of event objects, newest first.
string
Opaque cursor to pass as the
cursor parameter on your next request. Only present when has_more is true.boolean
required
true when additional pages of results exist beyond the current response.The response does not include a
total count field. Because audit logs can grow very large, computing an exact total on every request would be prohibitively slow. Use has_more and the cursor to determine whether more results exist.Example Request
Example Response
Pagination
To page through a full result set, passnext_cursor from each response back as the cursor parameter on the next request. Repeat until has_more is false. All filter parameters must remain identical across pages — changing a filter mid-pagination produces undefined results.