Hanzo
OpenapiFlags

Evaluate runs the caller's flag definitions for one identity and returns the… — POST /v1/flags/decide

Evaluate runs the caller's flag definitions for one identity and returns the flag verdict: which flags are on (or which variant), their payloads, and…

POST /v1/flags/decide

Addresshttps://api.hanzo.ai/v1/flags/decide
MethodPOST
Operationpost_flags_decide
AuthAuthorization: Bearer $HANZO_API_KEY

Evaluate runs the caller's flag definitions for one identity and returns the flag verdict: which flags are on (or which variant), their payloads, and whether any definition failed to compute. Evaluation is in-process over the caller's own (org, project) definitions — no network hop, no shared KV — so a tenant can only ever evaluate its own flags.

Request

3 fields, body application/json (required).

FieldInTypeRequiredDescription
distinct_idbodystringDistinctID is the identity the flags are evaluated for.
groupsbodyanyGroups are the group-level properties, keyed by group type index.
person_propertiesbodyanyPersonProperties are the person-level properties conditions match against.

Response

StatusBodyMeaning
200ok

200 body — 1 field.

FieldInTypeAlwaysDescription
(body)bodyanyyes

Failure carries the platform error shape — see Errors.

Examples

hanzo flags decide

Flags API · All Hanzo APIs · Interactive reference

How is this guide?

On this page