Audit routes expose the tenant-scoped, tamper-evident event history used by
wallet/action history, account history, and compliance review views.Base path:/auditAuth: Tenant owner/admin browser session with recent MFA verification
Audit routes do not accept tenant API keys or platform keys. Use a user
bearer session for a tenant owner or admin, and complete MFA again if the
recent-MFA window has expired.
List Audit Events
GET /audit/events
Returns raw audit-chain events for the authenticated tenant. Results are sorted
newest first by audit sequence.
Exact audit action match, for example wallet.action.signed.
actionPrefix
Prefix match for action families, for example wallet.action..
actorType
Exact actor type, such as user, agent, or system.
actorId
Exact actor ID.
resourceType
Exact resource type, such as wallet, account, or adapter.
resourceId
Exact resource ID.
requestId
Exact request ID mirrored into audit metadata.
metadata.<path>
Exact JSON metadata value match at a dot-separated path.
dateFrom
Inclusive ISO date-time lower bound.
dateTo
Inclusive ISO date-time upper bound.
page
Page number, default 1, max 5000.
limit
Page size, default 50, max 200.
action and actionPrefix accept letters, numbers, _, ., :, and -,
up to 128 characters. You can combine actionPrefix with resource and metadata
filters to build narrow action-history views without fetching unrelated rows.Metadata filters use query keys in the form metadata.<path>, where <path> is
up to five dot-separated path segments. Each path segment may contain letters,
numbers, and _; __proto__, prototype, and constructor are rejected. Up
to five metadata filters are accepted per request, and values must be
1-256 characters. Matching is exact after the metadata value is read as text.
Use page and limit for incremental review. Large exports should use the
bounded audit export endpoint instead of walking unbounded event pages.
Signed evidence bundles
GET /audit/bundle
When STEWARD_AUDIT_SIGNING_KEY is configured, this endpoint exports a bounded
event range with an Ed25519-signed checkpoint over the tenant audit-chain head.
The repository includes an offline verifier:
The verifier checks the signature against the public key carried in the bundle.
Separately compare that key with an out-of-band trusted Steward signing key or
fingerprint. After that trust-root check, a valid bundle shows that its exported
content matches the signed checkpoint. It does not prove that an operator who
controls all relevant audit and signing keys could not fabricate a
self-consistent history. A partial export also does not prove completeness
outside the exported range.Deployments can opt into RFC 3161 third-party checkpoint timestamps. Verify an
included proof with auditor-supplied TSA trust material:
The verified timestamp shows that the checkpoint existed no later than the TSA
time, narrowing the pre-anchor rewrite window. It is not a tamper-proof or
operator-proof guarantee. See third-party audit-checkpoint anchoring.