Audit Log
Query audit log entries
Authentication
Requires session cookie (web app) or API key (x-api-key header). All endpoints are tenant-scoped via entityId.
Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /api/audit-log?entityId= | Query audit log entries |
Query audit log
GET /api/audit-log?entityId={entityId}
Query parameters: entityId (required), from?, to?, actorId?, action?, resourceType?, limit?, cursor?
Returns paginated audit log entries.
{
"entries": [
{
"id": "log_abc123",
"timestamp": "2025-01-15T12:00:00Z",
"actorId": "user_xyz",
"action": "journal_entry.approved",
"resourceType": "journal_entry",
"resourceId": "je_123",
"metadata": {}
}
],
"nextCursor": "eyJpZCI6ImxvZ19hYmMxMjMifQ=="
}