Skip to content

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.

Ventana de terminal
GET /v1/audit # paginated, filterable
GET /v1/audit/actors # distinct actors present in the trail
GET /v1/audit/integrity # verify the tamper-evidence chain
GET /v1/audit/export # csv | xlsx | ndjson
  • 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 AUDIT feature and the audit:read scope (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 check features on GET /v1/billing/entitlements rather than assuming a plan.

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.

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.

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.

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.

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.

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.

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.

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.

  • actor takes one actor of any kind — user:<uuid>, key:<uuid>, partner:<uuid>, platform for the EmiteCR team (one actor, whoever on the team acted), or system for actor-less events. GET /v1/audit/actors enumerates 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 + resourceType gives the full history of one record — the most useful query in the API, and what the dashboard’s “history” buttons link to.
  • q matches 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.

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.