GET/api/v1/audit-events
List audit events (SIEM feed)
Poll this from a SIEM. Events come oldest first; store next_cursor and pass it as cursor next time. Events appear about 5 seconds after they happen (the feed holds back the newest few seconds so a cursor never skips one). order=desc with before pages newest first instead. Needs the workspace.audit_log permission: owners and admins hold it, and a workspace API key created with permissions: ["workspace.audit_log"] can read the log and nothing else.
PARAMETERS
- cursorquery · string
- Return events after this cursor (from `next_cursor`).e.g. string
- sincequery · string
- Only events at or after this time (ISO 8601). Use on the first poll instead of a cursor.e.g. 2026-10-01T00:00:00Z
- untilquery · string
- Only events before this time (ISO 8601).e.g. string
- typequery · string
- Comma-separated event types, or a whole category such as `member.*`.e.g. auth.sign_in,api_key.*
- limitquery · integer
- Events per page, at most 1000.e.g. 100
- orderquery · enum
- `asc` (feed order) or `desc` (newest first).one of: asc, desc
- beforequery · string
- With `order=desc`: events before this cursor.e.g. string
REQUEST
curl "https://gateway.kumkuat.ai/api/v1/audit-events" \ -H "X-API-Key: YOUR_KEY"
import requests
r = requests.get("https://gateway.kumkuat.ai/api/v1/audit-events", headers={"X-API-Key": "YOUR_KEY"})
print(r.status_code, r.headers.get("X-Gw-Remaining"))
print(r.json())
const r = await fetch("https://gateway.kumkuat.ai/api/v1/audit-events", {
headers: { "X-API-Key": "YOUR_KEY" }
});
console.log(r.status, r.headers.get("X-Gw-Remaining"));
console.log(await r.json());
RESPONSE
200OK
{
"events": [
{
"actor": {
"type": "string"
},
"cursor": "string",
"detail": {},
"id": "string",
"occurred_at": "string",
"outcome": "string",
"source": {},
"target": {},
"type": "member.role_changed"
}
],
"has_more": true,
"order": "string"
}
