Audit log
Every meaningful mutation — sign-ins, API keys, settings, members, credentials, billing, parties, items, invoices, recurring schedules, webhooks, branches, terminals, ownership transfers — is recorded in a single append-only audit log.
GET /v1/audit # paginated, filterableGET /v1/audit/actors # distinct actors present in the trailGET /v1/audit/integrity # verify the tamper-evidence chainGET /v1/audit/export # csv | xlsx | ndjsonTwo axes
Section titled “Two axes”- Writing is unconditional — the trail is always complete regardless of plan, so it’s whole the day a tenant enables reading. Turning the module on shows the full prior history, not just what happens afterwards.
- Reading requires both the
AUDITfeature and theaudit:readscope (owner / admin / accountant). The feature is included on the upper steps of each plan ladder and sold as a paid add-on below them, so checkfeaturesonGET /v1/billing/entitlementsrather than assuming a plan.
What a row carries
Section titled “What a row carries”Each entry records the action (resource.verb), the actor (a user, an API key, a
partner app, or the system for automated events), the role the actor held at
the time, IP / user-agent / request id, a denormalized actor label (so the row
survives a hard-delete of the actor), and before/after snapshots where relevant.
changedFields
Section titled “changedFields”Entries carry changedFields: the dot-paths that differ between before and
after, computed server-side on every read. Render a diff from it rather than
implementing one — a settings change that flipped a single currency stores two
full snapshots, and the field tells you which of the dozens of keys moved.
{ "action": "settings.updated", "changedFields": ["enabledCurrencies"], "before": { "enabledCurrencies": ["CRC", "USD"], "...": "…" }, "after": { "enabledCurrencies": ["CRC", "USD", "EUR"], "...": "…" }}Three states, and the difference matters:
| Value | Meaning |
|---|---|
null |
Not a comparison — a creation (after only) or a deletion (before only). |
[] |
Both snapshots exist and nothing changed (an idempotent write). |
["a", "b.c"] |
These paths differ. Arrays compare whole; objects recurse to the leaf. |
Integrity
Section titled “Integrity”A daily job anchors each closed day’s rows per tenant with a SHA-256 hash, and
chains each anchor to the previous one. GET /v1/audit/integrity re-derives every
anchor and reports the first break:
{ "ok": true, "checkpoints": 214, "verifiedThrough": "2026-08-30T00:00:00.000Z", "brokenAt": null, "reason": null }ok: false means a row inside an already-anchored window was modified or removed.
Rows newer than verifiedThrough are not yet anchored — anchors are written daily,
so that window is expected, not a failure.
What it never captures
Section titled “What it never captures”Secrets. Credential events record certificate metadata (subject, validity window,
client id) and the fact that a password or client secret rotated — never the
.p12 bytes, the PIN, the ATV password, or the secret itself, not even masked.
Account-security events
Section titled “Account-security events”Sign-ins, failed sign-ins, password changes and two-factor lifecycle events are
recorded against the person they belong to. The subset a company has a legitimate
interest in also appears in that tenant’s trail under the auth category, so an
administrator can review the security posture of the accounts that can emit
documents in the company’s name. That includes auth.two_factor_reset: the EmiteCR
team removing a member’s second factor at their request, after they lost both
their authenticator and their recovery codes.
When the EmiteCR team acts
Section titled “When the EmiteCR team acts”Anything EmiteCR’s team does in your account from its internal tools is recorded
in your trail like any other action, with the person who did it as the actor —
actorLabel reads EmiteCR · <name> — and never as one of your users. Filter all
of it with actor=platform.
Retention
Section titled “Retention”Five years (Costa Rica fiscal prescription), the same for every row, whatever the plan. Older rows are pruned by a scheduled job, always after they have been anchored.
Filtering
Section titled “Filtering”Filter by category, exact action, actor, resource (resourceId and/or
resourceType), environment, free text, and a date range. The category and
action taxonomy is part of the API contract.
actortakes one actor of any kind —user:<uuid>,key:<uuid>,partner:<uuid>,platformfor the EmiteCR team (one actor, whoever on the team acted), orsystemfor actor-less events.GET /v1/audit/actorsenumerates the actors active in the last year, sourced from the log itself, so hard-deleted actors still appear with their denormalized label; the EmiteCR team comes back once, as{ "kind": "platform", "id": null, "label": null }.resourceId+resourceTypegives the full history of one record — the most useful query in the API, and what the dashboard’s “history” buttons link to.qmatches the actor label, the resource label, the action, and the text inside the entry’s metadata.
total is counted up to a ceiling for performance; totalIsExact tells you when
the figure is the ceiling rather than the count.
Export
Section titled “Export”GET /v1/audit/export?format=csv|xlsx|ndjson honors the same filters. Use
ndjson for SIEM ingestion — one complete entry per line, nothing flattened.
Exports are capped at 50,000 rows. Check the X-Audit-Truncated response
header: when it is true the file stops at the cap and you should narrow the
date range for the rest. X-Audit-Row-Count carries the number of rows served.
Exporting is itself audited (audit.exported), including the filters the export
ran under.