Skip to content

Audit log

Read, filter and verify your Workspace audit log, and understand its retention and coverage.

The audit log records who acted, what changed, when it happened and the outcome. Entries are append-only and linked by a per-Workspace hash chain so you can check their integrity. Selected sensitive changes are saved atomically with their audit entry; other actions use best-effort recording.

Use these records together when investigating an action.

Record Answers Delivery
Audit log Who acted, what changed and the outcome Append-only; sensitive changes commit with their entry
Events What is happening right now Best-effort
Agent runs and logs What a run did, what it cost and why it failed Best-effort

Every action has a stable resource.verb name — project.created, secret.config.updated, task.executed — and each name maps to one of seven categories you can filter on.

Category What lands here
create New projects, tasks, cycles, members, portal clients, customer accounts, invoices, secrets, environments, agents, packs, skills, memories, deployments, connectors, and a deliverable approval being requested
update Changes to any of the above, plus settings, billing, provider keys, AI settings, DNA, and every deliverable transition — publishing, unpublishing, approval and changes-requested are all recorded as updates
delete Removal of any of the above
execute Work being run: task and cycle runs, dispatch, deploys, approvals resolved, policy decisions, Cloud Machine actions, connector runs
auth Sign-in, sign-out, API key created, API key revoked, passkey added
read Billing and secret access
export Data leaving the Workspace: invoice exports and data exports

Read events cover billing and secret access.

Each entry carries the actor (a person, an agent, or the system, with the acting user attributed where an agent acted on someone’s behalf), the resource and its parent, the change itself, the source and calling IP and user agent, the outcome and severity, an optional reason, and the correlation ids below.

Before an entry is written, its change and metadata are redacted:

  • Any field whose name looks like a credential — anything matching secret, token, password, API key, authorization, cookie or credential — becomes [redacted].
  • Any value that looks like a credential is replaced by shape, not by name: provider key prefixes, JSON web tokens, bearer tokens, connection strings carrying a password, private-key blocks, and labelled key/value pairs.
  • Long strings are truncated.

Keep credential values in project secrets rather than audit metadata.

Terminal window
curl -sS "$HLIX_BASE_URL/v1/api/audit-log?category=delete&limit=25" \
-H "x-api-key: $HLIX_API_KEY" \
-H "X-Organization-Id: $HLIX_WORKSPACE_ID"

Expected result: {"items": [...], "nextCursor": "…"} — entries newest-first, and a cursor that is null on the last page.

Filter on actorType, actorId, action, category, resourceType, resourceId, outcome, severity, source, requestId, traceId, and a from/to time range. limit defaults to 50 and is capped at 200.

Use an action name from the API reference; unrecognized action filters are ignored.

Pass the previous page’s nextCursor unchanged to fetch the next page.

A project-scoped listing is available at /v1/api/audit-log/projects/{projectId}, and it is still owner/admin only. The project filter does not change the required role.

Terminal window
curl -sS "$HLIX_BASE_URL/v1/api/audit-log/$ENTRY_ID" \
-H "x-api-key: $HLIX_API_KEY" \
-H "X-Organization-Id: $HLIX_WORKSPACE_ID"

Expected result: the entry plus a correlated object holding the events, agent runs and logs that share its trace.

Three correlation ids make that join possible. requestId identifies one API call. traceId identifies one unit of work across all three records. spanId identifies a step within it. An entry with no trace comes back with an empty correlated object rather than an error.

Two mechanisms protect recorded entries.

Append-only storage. Stored entries cannot be edited through the application. Retention rules prevent normal deletion before 24 months; expired entries are removed automatically. Removing expired entries at the end of the retention period never rewrites current ones.

A per-Workspace hash chain. Each entry is hashed together with the hash of the previous entry in that Workspace. Removing an entry breaks the chain; altering one changes its hash. Check it:

Terminal window
curl -sS "$HLIX_BASE_URL/v1/api/audit-log/verify" \
-H "x-api-key: $HLIX_API_KEY" \
-H "X-Organization-Id: $HLIX_WORKSPACE_ID"

Expected result on an intact chain:

{"ok": true, "checked": 1842, "total": 1842, "firstBadId": null}

A complete verification returns ok: true and matching checked and total counts. Save any other result and contact support.

Compliance-critical changes commit with their record

Section titled “Compliance-critical changes commit with their record”

For the subset of mutations where the record matters as much as the change — provider key changes, secret configuration, environment configuration, and archiving, unarchiving or deleting a project — the change and its audit entry are saved together, atomically. The record cannot exist without the change, or the change without the record.

For every other action the entry is written as part of handling the request, but a failure to write it does not fail the request.

Record Kept for
Audit log 24 months
Events (the activity record) 6 months
Run records (what each agent did) 90 days after the run ends
Agent runs and usage Run history and usage totals are retained; older detailed model requests may be compacted into usage summaries

Expired entries are removed daily. Retention periods are the same for every Workspace.

If the audit log does not answer what you expect

Section titled “If the audit log does not answer what you expect”
  • 403. Use an account with the owner or admin role.
  • {"error": "Audit entry not found"} with 404. The id does not exist in this Workspace. Confirm the X-Organization-Id header matches the Workspace the entry came from — an entry from another Workspace is not-found, not forbidden.
  • {"ok": false, ...} with a firstBadId. An entry does not hash to its recorded value. Save the response and contact support to investigate the integrity failure.
  • ok is true but checked is less than total. The walk ran out of chain before it ran out of entries. Treat it exactly as the case above.
  • A filtered query returned everything. An action the server does not know is ignored rather than rejected. Check the spelling against the API reference.
  • A change you made is not in the log. Check the category first — general reads are not recorded by design, and only billing and secret access are. If it was a write, look for it under the resource’s own action name rather than the screen you made it from.
  • An entry has no correlated events or logs. Those two records are best-effort and are pruned sooner (6 months and 30 days). An older audit entry outliving its correlated records is expected.
  • An agent appears as the actor and you want the person behind it. Read the attributed user on the entry; an agent acting on someone’s behalf records both.