Hanzo AI
OpenapiFlag

List defs

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

GET /v1/flag/defs

Addresshttps://api.hanzo.ai/v1/flag/defs
MethodGET
Operationget_flag_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/flag/defs takes no parameters and no body — the credential is the whole request.

Response

StatusBodyMeaning
200flag.defsOutok
defaultproblem-detailsrefused

200 body — 6 fields.

FieldInTypeAlwaysDescription
databodyflag.DefRow[]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[].versionbodyinteger (int64)Version is 1 when the key was created and rises by one on every overwrite.

Failure carries the platform error shape — see Errors.

Examples

hanzo flag defs list

Flag API · All Hanzo APIs · Interactive reference

How is this guide?

On this page