Skip to content
Start here

Evaluate

Evaluate flag from query context
GET/accounts/{account_id}/flagship/apps/{app_id}/evaluate
ModelsExpand Collapse
EvaluateGetResponse object { flagKey, reason, variant, 2 more }
flagKey: string

Key of the evaluated flag.

reason: "STATIC" or "TARGETING_MATCH" or "DEFAULT" or 2 more

Reason the evaluator selected this variation.

One of the following:
"STATIC"
"TARGETING_MATCH"
"DEFAULT"
"DISABLED"
"SPLIT"
variant: string

Name of the variation that supplied the resolved value.

metadata: optional map[boolean or string or number]

Key-value metadata associated with the flag. Returned only when the flag has metadata.

One of the following:
boolean
string
number
value: optional string or number or boolean or 2 more
One of the following:
string
number
boolean
map[unknown]
array of unknown