Hanzo
OpenapiFlags

Returns every flag definition in the caller's (org, project) store, by key,…

Returns every flag definition in the caller's (org, project) store, by key, with its version and who last changed it.

GET /v1/flags/defs

Addresshttps://api.hanzo.ai/v1/flags/defs
MethodGET
Operationget_flags_defs
AuthAuthorization: Bearer $HANZO_API_KEY

Returns every flag definition in the caller's (org, project) store, by key, with its version and who last changed it.

Request

GET /v1/flags/defs takes no parameters and no body — the credential is the whole request.

Response

StatusBodyMeaning
200defsOutok

200 body — 6 fields.

FieldInTypeAlwaysDescription
databodyDefRow[]Data is every definition in the caller's (org, project) store, by key.
data[].definitionbodyanyDefinition is the flag-definition document the evaluator consumes, kept BYTE-FOR-BYTE as it was written.
data[].keybodystringKey is the flag's primary key in the caller's (org, project) store, and the name evaluation looks it up by.
data[].updated_atbodystringUpdatedAt is when the definition was last written, RFC 3339 UTC.
data[].updated_bybodystringUpdatedBy is the email of the principal who last wrote it.
data[].versionbodyintegerVersion is 1 when the key was created and rises by one on every overwrite.

Failure carries the platform error shape — see Errors.

Examples

hanzo flags defs list

Flags API · All Hanzo APIs · Interactive reference

How is this guide?

On this page