List audit events
The append-only audit log, newest first: who changed what, when, and why. GET /audit-events/export downloads every event the same filters select. Needs the admin.roles permission.
bearerAuthorizationBearer <JWT>A service account's token (ccms_sat_…, issued by POST /service-accounts/{id}/tokens), or, for local use and demo mode, the server's shared CCMS_API_TOKEN.
filter[subject]?stringOnly events about this subject: <type> (e.g. role) or <type>/<id> (e.g. role/author, module/en/battery-charging).
^[^/]+(?:\/.+)?$length <= 600filter[actor]?stringOnly events by this actor: <kind> (user or service) or <kind>/<id> (e.g. user/sample-author).
^[^/]+(?:\/.+)?$length <= 600filter[action]?stringOnly this action, e.g. role.assign.
^[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+$length <= 100filter[from]?stringOnly events at or after this time: ISO 8601 with an offset, e.g. 2026-01-01T00:00:00Z.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$date-timefilter[to]?stringOnly events before this time (exclusive): ISO 8601 with an offset, e.g. 2026-02-01T00:00:00Z.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$date-timepage[number]?integerPage to return, from 1. Default: 1.
1 <= valuepage[size]?integerResources per page. Default: 50, at most 200.
1 <= value <= 200X-Ccms-User?stringDemo mode only (CCMS_AUTH_MODE=demo): the user ID to act as. The bearer token is still required; without demo mode the header is refused (400).
application/vnd.api+json- response
data*array<>meta*links*curl -X GET 'http://localhost:3000/audit-events'{ "data": [ { "type": "AuditEvent", "id": "string", "attributes": { "at": "2019-08-24T14:15:22Z", "actor": { "kind": "user", "id": "string" }, "action": "string", "subject": { "type": "string", "id": "string" }, "comment": "string", "data": { "property1": null, "property2": null } } } ], "meta": { "page": { "currentPage": -9007199254740991, "lastPage": -9007199254740991, "perPage": -9007199254740991, "total": -9007199254740991 } }, "links": { "self": "string", "first": "string", "last": "string", "prev": "string", "next": "string" }}