List Audit Entries
Changed onList audit entries with optional filters.
Scoped to the caller: their own entries plus those made by agents they own. Org admins see every entry.
Request
- Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
- URL: /audit
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL /authorize, token URL /oauth/token)
Query parameters
Entity types that can be the target of an audited action.
Only return entries for this target type; must be sent together with target_id.
Only return entries for this target ID; must be sent together with target_type.
Only return entries made by this actor.
Only return entries initiated from this surface, e.g. dashboard or cli.
Only return entries that occurred at or after this time (RFC 3339).
Only return entries that occurred at or before this time (RFC 3339).
Opaque cursor from a previous page's next_cursor; omit for the first page.
Maximum number of entries to return (1-200, default 50).
Response
Successful Response
Example response
{
"data": [
{
"action": "update",
"actor_id": "usr_6968b3987ee4c3ec0b4ee3b9",
"actor_session_id": "5f0c2a9e-3b7d-4c1a-9e8f-2d6b4a1c7e30",
"actor_type": "user",
"after": {
"active": true,
"name": "Stripe production key"
},
"before": {
"active": true,
"name": "Stripe test key"
},
"diff": {
"added": {},
"modified": {
"name": {
"new": "Stripe production key",
"old": "Stripe test key"
}
},
"removed": {}
},
"id": "aud_6968b3984275d71e90f7f09f",
"ip_address": "203.0.113.42",
"job_id": "job_6968b3985e8c9902207afaeb",
"occurred_at": "2026-01-15T09:30:00Z",
"origin": "dashboard",
"reason": "Rotated to the production key",
"request_id": "req_6968b3984d1c238d",
"target_id": "cred_6968b39855d91a3561684b32",
"target_parent_id": "agnt_6968b3984d1c238dbe7e2e29",
"target_type": "credential",
"trace_id": "4bf92f3577b34da6a3ce929d0e0e4736",
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 14_5) AppleWebKit/605.1.15"
}
],
"has_more": true,
"next_cursor": "eyJ0IjogIjIwMjYtMDEtMTVUMDk6MzA6MDArMDA6MDAiLCAiaWQiOiAiM2YyYjhjMWUtN2Q0YS00ZTliLWE2YzUtMWQyZTNmNGE1YjZjIn0="
}Changes
- info
the endpoint scheme security
OAuth2was added to the API
- info
- info
added the enum value
oauth_app_registrationto the propertyanyOf[subschema #1: AuditTargetType]/of thequeryrequest parametertarget_type
- info