Hanzo
OpenapiCompliance

AuditRead is the compliance read of the SHARED tamper-evident audit plane — the…

AuditRead is the compliance read of the SHARED tamper-evident audit plane — the SOC 2 posture surface (privileged actions: who started/decided what,…

GET /v1/compliance/audit

Addresshttps://api.hanzo.ai/v1/compliance/audit
MethodGET
Operationget_compliance_audit
AuthAuthorization: Bearer $HANZO_API_KEY

AuditRead is the compliance read of the SHARED tamper-evident audit plane — the SOC 2 posture surface (privileged actions: who started/decided what, when). The org is PINNED to the caller's validated org and the rows are narrowed to compliance.* actions. Fail-closed: no principal is a 403, no configured audit store a 501.

Request

1 field.

FieldInTypeRequiredDescription
resultquerystringResult filters rows by outcome result: success, deny, or error; empty means all.

Response

StatusBodyMeaning
200auditListok

200 body — 23 fields.

FieldInTypeAlwaysDescription
databodyWire[]Data is the org's compliance.* audit rows, newest first.
data[].actionbodystringAction is the verb that was performed. It is the event's name, not the HTTP method — a request-sourced record carries both, and the pair is what makes a row…
data[].authMethodbodystringAuth is the credential the actor presented: "jwt", "api-key", or "none".
data[].emailbodystringEmail is the actor's validated address, absent when the credential carried none.
data[].hashbodystringHash is this record's SHA-256 over its own canonical JSON with both hash fields cleared, folded with prevHash.
data[].homebodystringHome is present ONLY on a cross-org action: the org the actor came FROM, while Org is the org they acted IN.
data[].isAdminbodybooleanIsAdmin is the VALIDATED platform-SuperAdmin bit at decision time (membership of the reserved admin org), never the client's own claim to be one.
data[].methodbodystringMethod is the HTTP verb, on a record a request produced.
data[].orgbodystringOrg is the tenant the action was taken IN — the effective org, which for everyone but an impersonating SuperAdmin is also the actor's own.
data[].pathbodystringPath is the request's route. Any segment shaped like a credential is replaced before the record is written, so a key that rides in a path is not preserved here…
data[].prevHashbodystringPrevHash is the hash of record seq-1, which is what links the rows into a chain: a deleted or reordered record breaks the recomputation at that point.
data[].reasonbodystringReason is a short explanation for a deny or an error ("SuperAdmin required", "insufficient_balance").
data[].requestIdbodystringRequestID ties this row to the request-line log and any downstream trace — the X-Request-Id the pipeline minted for that request.
data[].resourcebodystringResource is the KIND of thing acted upon ("org", "role", "secret", "provider-config", "credit").
data[].resourceIdbodystringResourceID is the specific instance, absent when the kind alone identifies it.
data[].resultbodystringResult is how the action ended: "success", "deny" or "error".
data[].seqbodyintegerSeq is the record's position in the chain, 0-based and gapless.
data[].sourceIpbodystringSourceIP is the client address the edge resolved for the request, after the proxy chain — the address a responder would act on, not the socket peer.
data[].statusbodyintegerStatus is the HTTP status the caller received.
data[].subbodystringSub is the acting user (the IAM subject).
data[].timebodystringTime is when the action happened, RFC3339Nano in UTC.
data[].userAgentbodystringUserAgent is the client the request announced itself as.
disclaimerbodystringDisclaimer states that statuses are provider-reported or tracked, never a platform assertion of legal or regulatory compliance.

Failure carries the platform error shape — see Errors.

Examples

hanzo compliance audit

Compliance API · All Hanzo APIs · Interactive reference

How is this guide?

On this page