List audit entries
/audit-entriesLists the audit entries of the current account: write operations, denied or rejected requests, background effects, and management actions. Successful read requests are not included; they are available through the Requests endpoints.
Results are paginated by cursor and sorted by occurred_at, newest first by default. The collection can be filtered by kind, outcome, action code, resource, request ID, and occurrence time range.
Requires the audit.read permission for the account.
Autonomous mode: the API credential secret, sent as a bearer token. Credential secrets are identified by a fixed prefix.
In: header
Query Parameters
Maximum number of items to return, from 1 to 200.
1 <= value <= 200Cursor for the next page, taken from page.next_cursor of the previous response.
Sort order. A leading - sorts in descending order.
Value in
- "occurred_at"
- "-occurred_at"
Only entries of these kinds. Repeat the parameter to match any of several kinds.
Only entries with these outcomes. Repeat the parameter to match any of several outcomes.
Only entries with this action code.
Only entries about resources of this type.
Only entries about the resource with this public ID.
Only entries recorded by the request with this ID, as returned in X-Request-Id.
Only items that occurred after this date and time (ISO 8601).
date-timeOnly items that occurred before this date and time (ISO 8601).
date-timeHeader Parameters
Optional client-generated identifier of the request, up to 64 characters from [A-Za-z0-9._-]. Echoed back in the response and recorded in the request log; it never replaces the server-generated X-Request-Id.
length <= 64Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/audit-entries"{ "data": [ { "action": "string", "actor": { "admin_id": "string" }, "client_request_id": "string", "credential": { "id": "string" }, "diff": {}, "event_id": "string", "http_status": 0, "id": "string", "item_key": "string", "kind": "request", "method": "string", "object": "audit_entry", "occurred_at": "2019-08-24T14:15:22Z", "operation_id": "string", "origin": { "client": { "install_id": "string", "name": "string", "version": "string" }, "ip": "string", "ip_source": "trusted_proxy", "user_agent": "string" }, "outcome": "succeeded", "path": "string", "recorded_at": "2019-08-24T14:15:22Z", "request_id": "string", "resource": { "id": "string", "object": "string" } } ], "page": { "limit": 1, "next_cursor": "string", "prev_cursor": "string" }}Audit entries2
Audit entries in API v3: list audit entries, retrieve an audit entry.
Retrieve an audit entry GET
Retrieves an audit entry by its public ID, which uses the `aud_` prefix (for example, `aud_42`). Malformed IDs and entries that do not exist or are not accessible with the current credentials return `404 Not Found`.