Audits API
Audit routes expose the tenant-scoped, tamper-evident event history used by
wallet/action history, account history, and compliance review views.
Base path: /audit
Auth: 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
Returns raw audit-chain events for the authenticated tenant. Results are sorted
newest first by audit sequence.
Query Parameters
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.
Responses include page/limit pagination metadata:
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
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.
Common Filters