SDK reference

Audit log

Each route's function in the SDK, its call beside the same request in cURL.
orgAudit

GET/v1/orgs/:orgId/audit

One page of the audit log, newest first. Filter by action (an action or a category), actor or target. The first page also returns retentionDays.

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/audit' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
orgAuditExport

GET/v1/orgs/:orgId/audit/export

Daily JSON Lines export of the audit log into one of the org's buckets (audit/<yyyy-mm-dd>.jsonl).

Parameters and answers
curl 'https://api.cactive.com.au/v1/orgs/{orgId}/audit/export' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
putOrgAuditExport

PUT/v1/orgs/:orgId/audit/export

Turns the daily export on (bucketId: an active bucket of the org) or off (null). Owners and admins.

Parameters and answers
curl -X PUT 'https://api.cactive.com.au/v1/orgs/{orgId}/audit/export' \
  -H "Authorization: Bearer $CACTIVE_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "bucketId": "<bucketId>"
  }'