Audit
4 endpoints at https://api.kosa8.com, sent with Authorization: Bearer $KOSA8_API_KEY. Generated from the API's own OpenAPI description, which a test holds to the router.
Audit events, newest first#
GET
/v1/auditscope audit:readEach event has source, from its via.
Parameterssandbox_idquery · stringsandbox_id
actorquery · stringactor
targetquery · stringtarget
sincequery · stringsince
untilquery · stringuntil
before_seqquery · stringbefore_seq
limitquery · stringlimit
actionquery · stringAn action, or a prefix ending in * (sandbox.*)
sourcequery · "ui" | "key" | "token" | "mcp" | "signin" | "scim" | "system"Where the change came from: ui (the dashboard), key (an API key: SDK, CLI, CI), token (a capability token), mcp (an AI app), signin, scim (the identity provider), system
qquery · stringWords to find in the actor, action, target, sandbox or detail
200401403
curl -s -X GET https://api.kosa8.com/v1/audit \ -H "Authorization: Bearer $KOSA8_API_KEY"
Recompute the org's hash chain#
GET
Responses/v1/audit/verifyscope audit:read200401403
curl -s -X GET https://api.kosa8.com/v1/audit/verify \ -H "Authorization: Bearer $KOSA8_API_KEY"
Who appears in the audit log, most recent first, with event counts (at most 200)#
GET
Responses/v1/audit/actorsscope audit:read200401403
curl -s -X GET https://api.kosa8.com/v1/audit/actors \ -H "Authorization: Bearer $KOSA8_API_KEY"
Audit events as NDJSON (or CSV), oldest first, with hashes; takes the list's filters#
GET
Parameters/v1/audit/exportscope audit:readformatquery · "ndjson" | "jsonl" | "csv"Default ndjson
200401403
curl -s -X GET https://api.kosa8.com/v1/audit/export \ -H "Authorization: Bearer $KOSA8_API_KEY"