Audit log

emma records the actions taken on your infrastructure — who did what, and when — so you can answer "what happened?" long after it did.

Safety & confirmations decides whether a change happens. The audit log is the durable record of what did. Together they answer the two questions every security and compliance review asks: can someone change this without approval, and can we see who did what after the fact.

In a nutshell:

  • State-changing actions are recorded — creates, modifications, deletes, and the approvals behind them
  • Sensitive reads too — some read actions, such as accessing stored credentials, are recorded on purpose
  • Scoped to your company — you only ever see your own tenant's events
  • Kept for 365 days by default — operator-tunable
  • Admin-only — owners and admins can read the log

What gets recorded

Each entry captures who did what, to which resource, and when:

FieldWhat it is
actionthe event, e.g. deploy_repo.success — dotted, so related events share a prefix
userIdwho performed it
resourceType / resourceIdwhat it acted on
detailsoptional structured context for the event
ipAddresswhere the request came from
createdAtwhen it happened

Every event also carries the company it belongs to, so the log is always tenant-scoped.

Who can read it

Reading the audit log requires an owner or admin role. It is tenant-isolated by design: the company is always taken from your session, never from a request parameter, so one company can never read another's log.

Reading the log in the console

Page navigation — click Settings → Audit log

The screen lists events newest-first, 50 at a time, with Load older events to page back. Each row shows when it happened, who did it (by name where emma can resolve the user), the action, the resource, and the details. You can:

  • Filter by action group — the Action menu narrows the list to one family of events, such as destructive tool runs, approved destructive intents, Autonomous auto-approvals, plan executions, cloud credentials, model provider keys, API keys, members, or billing
  • Search — the search box matches actor, action, resource, or details in the loaded events

Reading the log through the API

The same log is available over the API:

GET /api/audit-log

All filters are optional and combine:

Query paramEffect
actionexact match on a single event
actionPrefixevery event under a prefix, e.g. deploy_repo. (mutually exclusive with action)
userIdevents by one actor
workspaceIdevents in one workspace
resourceType / resourceIdevents touching a specific resource
from / toa time window (Unix milliseconds, or an ISO date); from is inclusive, to is exclusive
limitpage size, 1–200 (default 50); a value outside that range is rejected
cursorthe nextCursor from the previous page

Events come back newest-first with a nextCursor for paging; when nextCursor is null, you've reached the end.

To call it from a script, send an admin-role key from Settings → RBAC Keys as a Bearer token (Authorization: Bearer emma_ak_…). Keys with the Deployer or Viewer role are refused.

Retention

Entries are kept for 365 days by default and pruned on a rolling schedule. Retention is a single global setting an operator can tune; there is no per-tenant retention override in this version.

What's next

How is this guide?

Last updated on 24 Sept 2026

On this page