OpenFolia

List audit events

GET
/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.

Authorization

bearer
headerAuthorizationBearer <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.

Query Parameters

filter[subject]?string

Only events about this subject: <type> (e.g. role) or <type>/<id> (e.g. role/author, module/en/battery-charging).

Match^[^/]+(?:\/.+)?$
Lengthlength <= 600
filter[actor]?string

Only events by this actor: <kind> (user or service) or <kind>/<id> (e.g. user/sample-author).

Match^[^/]+(?:\/.+)?$
Lengthlength <= 600
filter[action]?string

Only this action, e.g. role.assign.

Match^[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+$
Lengthlength <= 100
filter[from]?string

Only events at or after this time: ISO 8601 with an offset, e.g. 2026-01-01T00:00:00Z.

Match^(?:(?:\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)))$
Formatdate-time
filter[to]?string

Only events before this time (exclusive): ISO 8601 with an offset, e.g. 2026-02-01T00:00:00Z.

Match^(?:(?:\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)))$
Formatdate-time
page[number]?integer

Page to return, from 1. Default: 1.

Range1 <= value
page[size]?integer

Resources per page. Default: 50, at most 200.

Range1 <= value <= 200

Header Parameters

X-Ccms-User?string

Demo 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).

Response Body

application/vnd.api+json
  1. response
data*array<>
meta*
links*
Example Request
curl -X GET 'http://localhost:3000/audit-events'
Example Response
{  "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"  }}