List audit-trail events
const url = 'https://example.com/api/v1/audit-log?channel=direct';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/api/v1/audit-log?channel=direct'Recent audit-trail events, newest first, each with the actor and, for an impersonated action, the real actor behind it. Read-only; gated by audit:read:admin (admin/owner only, since the audit trail is admin-sensitive).
Parameters
Section titled “ Parameters ”Query Parameters
Section titled “ Query Parameters ”Max rows to return, newest first (default 100, capped at 500)
Max rows to return, newest first (default 100, capped at 500)
Filter to one resource kind (e.g. auth, user_grant)
Filter to one resource kind (e.g. auth, user_grant)
Filter to one verb (e.g. login, create)
Filter to one verb (e.g. login, create)
Only events strictly older than this RFC3339 timestamp (paging backward)
Only events strictly older than this RFC3339 timestamp (paging backward)
Filter to the events one agent took on its person’s behalf (the name its agent token was minted with)
Filter to the events one agent took on its person’s behalf (the name its agent token was minted with)
Filter to the events that arrived through one channel; direct is a plain API call, with no channel
Filter to the events that arrived through one channel; direct is a plain API call, with no channel
Filter to the events whose declared MCP client contains this term, case-insensitively
Filter to the events whose declared MCP client contains this term, case-insensitively
Responses
Section titled “ Responses ”OK
object
A URL to the JSON Schema for this object.
One recorded privileged action or sign-in, with who did it, when and to what.
object
The agent that took the action on the actor’s behalf, from the agent token it authenticated with; absent when the person acted directly
How the action arrived: mcp for a tool call on the MCP server, omnibot for one omnibot made; absent for a direct API call. Set by the server, never by the caller
The name and version the MCP client declared about itself, recorded as asserted; absent when there is none
The row image after the write, absent on a delete
The row image before the write, absent on a create
Example
{ "$schema": "/api/v1/schemas/AuditListOutputBody.json"}default
Section titled “ default ”Error
object
A URL to the JSON Schema for this object.
A human-readable explanation specific to this occurrence of the problem.
Optional list of individual error details
object
Where the error occurred, e.g. ‘body.items[3].tags’ or ‘path.thing-id’
Error message text
The value at the given location
A URI reference that identifies the specific occurrence of the problem.
HTTP status code
A short, human-readable summary of the problem type. This value should not change between occurrences of the error.
A URI reference to human-readable documentation for the error.
Example
{ "$schema": "/api/v1/schemas/ErrorModel.json", "detail": "Property foo is required but is missing.", "instance": "https://example.com/error-log/abc123", "status": 400, "title": "Bad Request", "type": "about:blank"}