List audit entries

GET/audit-entries

Lists 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.

AuthorizationBearer <token>

Autonomous mode: the API credential secret, sent as a bearer token. Credential secrets are identified by a fixed prefix.

In: header

Query Parameters

limit?integer
Range1 <= value <= 200
cursor?string
sort?string

Value in

  • "occurred_at"
  • "-occurred_at"
kind[]?array<string>
outcome[]?array<string>
action_code?string
resource_type?string
resource_id?string
request_id?string
occurred_after?string
Formatdate-time
occurred_before?string
Formatdate-time

Header Parameters

X-Client-Request-Id?string

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.

Lengthlength <= 64

Response Body

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"  }}