Organisation audit log
The hash-chained record of who changed your organisation's configuration, how to read and export it, and how to verify the chain yourself.
The organisation audit log records who changed what in your organisation: members, keys, apps and environments, workspaces, alert rules, audit records, archive settings, MCP tool calls and reads of private content. Every entry is appended to a per-organisation SHA-256 hash chain, so an edited, removed or reordered entry is detectable.
It is separate from the evidence ledger. The ledger seals the events your agents send; this log records actions taken on your organisation.
Where to read it
Open Settings → Audit log. The page lists entries newest first, with filters for action, resource type and source, and a banner that checks the chain on load: “Chain verified” with the entry count, or “Chain broken at sequence N” with the expected and actual hashes. Select an entry to see its details and its Hash chain block: previous hash, entry hash and the canonical payload.
Sessions only
GET /audit-logs and GET /audit-logs/verify are restricted to an owner or admin
signed in to the dashboard. API keys get 403 “admin role required”, even with
observe:read, although the API reference lists that scope. Other roles get 403
too.
What is recorded
| Resource type | Actions |
|---|---|
organization | organization.created, updated, ownership_transferred, telemetry_policy_updated, deleted |
member | invited, invitation_accepted, invitation_cancelled, role_changed, removed, left |
app, channel | created, updated (apps), deleted |
environment | created, promoted_default, deleted |
public_ingest_token | created, revoked |
| API keys | api_key.created, api_key.revoked, api_key.scopes_updated |
| SSO | auth.sso, sso_connection.created, sso_connection.deleted, sso_enforcement.changed |
alert_rule | created, updated, deleted, secret_rotated |
workspace | workspace.create, workspace.revision.save, workspace.activate, workspace.draft.activate, workspace.draft.discard, workspace.connect, workspace.connect.rotate, workspace.entity.delete, workspace.access_grant.save, workspace.access_grant.update, workspace.access_grant.delete, template.publish |
Audit records (agents, grants, packs, …) | audit.<kind>.<action>, for example audit.agents.saved, audit.agents.suspend, audit.packs.build, audit.requests.fulfill, and audit.<kind>.change_rejected for edits refused by an incident freeze |
evidence | evidence.retention.updated, evidence.hold.created, evidence.hold.release.requested, evidence.job.requested, evidence.job.recovered, evidence.governance.lift.requested, evidence.governance.reason.sealed, evidence.governance.lift.completed |
| MCP | mcp.tool_call |
event | content.read, a read of private interaction content |
| User | user.account_deleted |
Older entries may use earlier dotted names. Only these actions are captured; if a review depends on something else being logged, do not assume it is.
Entry shape
{
"id": "aud_8f3c1a902b7e4d51",
"organizationId": "org_01HZX9K2QF",
"actorId": "usr_01HZX9K3PA",
"actorEmail": "jane@example.com",
"action": "api_key.created",
"resourceType": "api_key",
"resourceId": "key_9f2c",
"metadata": { "name": "prod deploy" },
"ipAddress": "203.0.113.17",
"createdAt": "2026-10-21T18:03:11.742Z",
"source": "dashboard",
"seq": 1284,
"prevHash": "4be1...",
"entryHash": "9a07..."
}| Field | Notes |
|---|---|
actorId | The user, or for some archive actions the API key ID. null for system changes. |
actorEmail | Looked up at read time, so a removed user’s entries keep actorId but lose the email. |
metadata | Action-specific and unvalidated. Read the fields you need defensively. |
source | dashboard, apikey or mcp, depending on how the caller reached axonpush; this includes evidence.* entries. Background steps of evidence jobs (evidence.governance.reason.sealed, evidence.governance.lift.completed) are worker. null for other system changes; the dashboard shows it as system. |
seq, prevHash, entryHash | The chain position. Missing on entries not yet chained, see below. |
Query the log
GET /audit-logs?limit=50
Authorization: Bearer <session token>| Parameter | Default | Notes |
|---|---|---|
limit | 50 | 1 to 200 |
before | now | Upper bound on createdAt, RFC 3339. Exclusive on its own; see beforeId. Anything else is 422. |
beforeId | The id of the last entry on the previous page. With before, paging continues after that exact entry. | |
action | Exact match, such as api_key.created | |
resourceType | Exact match, such as environment | |
source | dashboard, apikey, mcp or worker |
The organisation comes from your session. The response is { "data": [...] }, newest
first. To page back, pass the last entry’s createdAt as before and its id as
beforeId. Entries that share the boundary timestamp are then neither skipped nor
repeated.
before=""
before_id=""
while :; do
page=$(curl -sS -G "https://api.axonpush.xyz/audit-logs" \
--data-urlencode "limit=200" \
${before:+--data-urlencode "before=$before"} \
${before_id:+--data-urlencode "beforeId=$before_id"} \
-H "Authorization: Bearer $AXONPUSH_SESSION_JWT")
echo "$page" | jq -c '.data[]' >> audit.jsonl
[ "$(echo "$page" | jq '.data | length')" -lt 200 ] && break
before=$(echo "$page" | jq -r '.data[-1].createdAt')
before_id=$(echo "$page" | jq -r '.data[-1].id')
doneHow the chain works
Each organisation has its own chain. Entries are numbered from seq 1, and each
entry’s hash covers the previous entry’s hash:
entryHash = hex( SHA-256( prevHash + canonical ) )prevHash is the previous entry’s entryHash as a lowercase hex string, or the
empty string for the first entry. The two strings are joined before hashing.
The canonical form is nine fields joined with |, in this order:
org_id|seq|actor|action|resource_type|resource_id|metadata|created_at|source| Field | Value |
|---|---|
org_id | organizationId |
seq | Decimal |
actor | actorId, or empty when null |
action, resource_type, resource_id | As stored |
metadata | Compact JSON with keys sorted, as Go’s encoding/json writes it (<, > and & escaped as <, >, &). Empty when the entry has no metadata. |
created_at | The createdAt string exactly as returned |
source | source, or empty when null |
A per-organisation head row stores the latest seq and hash, so removing entries
from the end is detected too.
Some entries are written first and chained a moment later: those from the
authentication service (organisation, API key and SSO changes) and those written in
the same transaction as an audit record or archive change. Until a sweep chains
them they have no seq or hashes and are not covered by verification.
Verify the chain
GET /audit-logs/verify walks every chained entry in seq order, checks each
prevHash link, recomputes each entryHash, and checks the last one against the
head row.
{ "ok": true, "count": 1284 }On failure it returns ok: false with brokenAtSeq, the first bad entry, and
expected and actual, the computed and stored values there.
Recompute it yourself
The verify endpoint runs on axonpush. To check the chain independently, export the log and recompute it:
import hashlib, json
def canonical_metadata(value):
if value is None:
return ""
text = json.dumps(value, sort_keys=True, separators=(",", ":"), ensure_ascii=False)
for raw, escaped in (("<", "\\u003c"), (">", "\\u003e"), ("&", "\\u0026"),
("
", "\\u2028"), ("
", "\\u2029")):
text = text.replace(raw, escaped)
return text
entries = [json.loads(line) for line in open("audit.jsonl")]
chained = sorted((e for e in entries if e.get("seq") is not None), key=lambda e: e["seq"])
prev = ""
for e in chained:
if (e.get("prevHash") or "") != prev:
raise SystemExit(f"link broken at seq {e['seq']}")
canonical = "|".join([
e["organizationId"], str(e["seq"]), e.get("actorId") or "", e["action"],
e["resourceType"], e["resourceId"], canonical_metadata(e.get("metadata")),
e["createdAt"], e.get("source") or "",
])
digest = hashlib.sha256((prev + canonical).encode()).hexdigest()
if digest != e["entryHash"]:
raise SystemExit(f"hash mismatch at seq {e['seq']}")
prev = digest
print(f"verified {len(chained)} entries, head {prev}")Keep the seq and hash you reached. In a later export, the entry at that seq must
still have the same hash; if it does not, history you already checked has changed.
Number formatting in metadata follows Go. Strings, integers, booleans and nested objects match the script above; if a mismatch appears on an entry whose metadata holds fractional numbers, check that entry’s formatting by hand.
Guarantees and limits
- Append-only and chained. There is no API to edit or delete an entry, and an edited, removed or reordered chained entry fails verification.
- Organisation-scoped. The organisation comes from the caller’s session. There is no cross-organisation query.
- Some writes are best-effort. Most configuration changes record their entry after the change; if that write fails, the failure is logged on the server and the change still succeeds. Audit record and archive changes write their entry in the same transaction instead, so the change fails if the entry cannot be written.
- Evidence, not a control. The chain is tamper-evident, not tamper-proof: it shows that history changed, it does not stop someone with database access from changing it.
API reference: audit.list,
audit.verify.