Records API
The hash-chained event log and the AI interaction log.
Objects
- Event: one action of anyone in any component, append-only and hash-chained: each event's
hashcovers the previous event's hash and the row.GET /events/verifyrecomputes the chain (ok, orfirst_bad_id). - AI interaction: the metadata of every AI call (purpose, model, latency, tokens, user, client). Inputs and outputs are only on the AI log page.
Typical use
Export the event log to your archive nightly: page through GET /events?from=…&to=…&sort=id and store each page; verify the chain with GET /events/verify.
Endpoints
| Call | What it does | Scope |
|---|---|---|
GET/events | The hash-chained event log | events:read |
GET/events/verify | Verify the firm's hash chain | events:read |
GET/ai-log | AI interactions (metadata; inputs and outputs are on the AI log page) | ai_log:read |