Skip to content
Audit & ReportsMarkdown

Audit & Reports API

Every endpoint of Audit & Reports on your realm's host, by area, with what each does and the page that covers it.

AvailableAPI

Every endpoint Audit & Reports serves on your realm’s host. Realm-wide search and reports are planned and have no endpoint yet: see What’s next for audit and reports. Each call is made with a session as a cookie; Call the API shows how to get $CVYUH_SESSION, and the paging and error rules every call shares. For example:

Terminal window
curl https://foobar.cvyuh.com/api/v0/am/audit/v1/trail/me \
-H "Cookie: x-cvyuh-token=$CVYUH_SESSION"
MethodEndpointWhat it doesPage
GEThttps://foobar.cvyuh.com/api/v0/am/audit/v1/trail?person=<user's id>Everything that involved one user, newest first: events, and an empty changes. The user themselves, or READ on the realmRead a user’s or agent’s trail
GEThttps://foobar.cvyuh.com/api/v0/am/audit/v1/trail?agent=<agent's id>Everything that involved one agent, newest first: events, and changes (empty today; read the agent’s change history). READ on the realmRead a user’s or agent’s trail
GEThttps://foobar.cvyuh.com/api/v0/am/audit/v1/trail/meThe signed-in user’s own trailRead a user’s or agent’s trail

Each takes page (from 1) and pageSize (20 by default, 100 at most), or cursor on a realm set to cursor paging. events and changes are paged separately. Naming neither agent nor person, or both, answers 400; someone else’s trail without READ on the realm answers 403. Every field of a record is in Record fields and examples.

MethodEndpointWhat it doesPage
GEThttps://foobar.cvyuh.com/api/v0/am/objects/v1/<type>/<id>/historyEvery change to one object, newest first; page, and pageSize (50 by default, 500 at most). READ on the object, which RealmViewer givesChange history
MethodEndpointWhat it doesPage
GEThttps://foobar.cvyuh.com/api/v0/am/objects/v1/authorizationSettings/authorizationSettingsThe realm’s authorization settings, auditDecisions among themWhat is recorded
PATCHhttps://foobar.cvyuh.com/api/v0/am/objects/v1/authorizationSettings/authorizationSettingsSets auditDecisions to agents or all. MODIFY on the realm, which RealmOwner givesRecord every policy decision