Hanzo
OpenapiRisk

Your organisation's decision-regime history, and which version is in force

Policy reports the caller organisation's own decision-regime history: every distinct regime it has adopted, which version is in force, and what retention…

GET /v1/risk/policy

Addresshttps://api.hanzo.ai/v1/risk/policy
MethodGET
OperationriskPolicy
AuthAuthorization: Bearer $HANZO_API_KEY

Policy reports the caller organisation's own decision-regime history: every distinct regime it has adopted, which version is in force, and what retention has taken.

WHY IT EXISTS. Every score cites the version it was decided under ([riskScoreOut.Policy]), and the threshold that score was measured against is derived from the appetite that version states. Restate the appetite and, without this record, every earlier decision becomes unreconstructible — the cut it was judged by no longer exists anywhere. An adverse decision that cannot be explained against the policy in force when it was taken cannot be defended.

It covers ONE organisation. The history is on that organisation's own shelf, so another's versions are not filtered out of the answer — they are not in the file the answer is read from.

Request

GET /v1/risk/policy takes no parameters and no body — the credential is the whole request.

Response

StatusBodyMeaning
200riskPolicyOutok

200 body — 12 fields.

FieldInTypeAlwaysDescription
changesbodyintegerChanges is how many DISTINCT regimes may be adopted per Window.
disposedbodyintegerDisposed is how many versions retention has taken.
historybodyriskPolicyVersion[]History is the retained versions, newest first.
history[].atbodystringAt is when it entered force, RFC 3339, from the server clock.
history[].bybodystringBy is the identity that stated it, stamped server-side from the validated principal at the moment it entered force.
history[].livebodybooleanLive is whether the model was permitted to change an outcome under it.
history[].reviewbodynumberReview is the share of the stream the regime states may be examined.
history[].samplebodynumberSample is the share of below-the-line events the regime retains for review.
history[].versionbodyintegerVersion names this regime in this organisation's history.
retainedbodyintegerRetained is how many versions this organisation's history holds at most, derived from the byte budget its rows are a multiple of.
versionbodyintegerVersion is the version in force — the one every score currently cites.
windowbodystringWindow is the period Changes is measured over.

Failure carries the platform error shape — see Errors.

Examples

hanzo risk policy get

Risk API · All Hanzo APIs · Interactive reference

How is this guide?

On this page