Docs menu

API reference

audit.list

List activity

GET/api/v1/audit

Needs the audit:read permission. As an MCP tool it is named audit.list.

Details

Read this Account's Audit Events, newest first: who acted, how they signed in, which Operation ran, its target, the result and the request id. Owner and Admin only. Supports a keyset cursor, a limit, an Operation filter, a result filter and a time range (milliseconds since the epoch).

Input

FieldTypeNotes
cursorstring0 to 200 characters
limitrequiredintegerfrom 1 to 100; default 50
operationstring1 to 120 characters
result"ok" | "denied" | "failed"
fromintegerfrom 0 to 9007199254740991
tointegerfrom 0 to 9007199254740991

Output

FieldTypeNotes
eventsrequiredlist of object
events.idrequiredstring
events.operationrequiredstring
events.actorTyperequired"member" | "api_key" | "ai_client" | "staff" | "system"
events.viarequired"session" | "oauth" | "api_key" | "staff" | "system"
events.userIdrequiredstring or null
events.clientIdrequiredstring or null
events.targetTyperequiredstring or null
events.targetIdrequiredstring or null
events.resultrequired"ok" | "denied" | "failed"
events.errorCoderequiredstring or null
events.requestIdrequiredstring or null
events.createdAtrequiredintegerfrom -9007199254740991 to 9007199254740991
nextCursorrequiredstring or null

All Operations