Audit Log: Query, Export and Evidence
GET /audit-log
Lists the organization's audit log entries, from newest to oldest. Authentication: browser session only; roles ADMIN, SUPER_ADMIN and AUDITOR. Limit of 30 requests/min per organization.
Query params (optional): entity, entityId, userId, action, from, to (ISO 8601), limit (default 100, max 500), cursor (pagination). Response: { data, meta: { total, hasMore, nextCursor } }.
Each entry includes seq, prevHash and selfHash, the same integrity chain fields that the proof package (below) verifies.
GET /audit-log/export
Exports the audit log (format=csv by default). Authentication: session; roles ADMIN and AUDITOR. Limit of 5 requests/min per organization. The CSV includes the columns seq, prevHash and selfHash.
POST /evidence
Registers an evidence item (API key or session). Creation is recorded in the audit log: action UPLOAD when the evidence has a file and CREATE when it does not. The evidence screen shows the SHA-256 hash and the expiry (expiresAt).