Delivery API
Evaluate Flag
Evaluates a single feature flag for the provided context.
POST
Returns the resolved flag value and evaluation reason from the edge bundle cache.
Auth: API key only (
Authorization: Bearer <key>).
Body
string
required
The flag key to evaluate.
object
required
Evaluation context.
string
Stable user identifier.
string
Anonymous identifier when
userId is not available.Record<string, string | number | boolean>
Additional attributes used by flag rules.
Response
string
required
boolean | string | number | null
required
"DISABLED" | "RULE_MATCH" | "ROLLOUT" | "DEFAULT" | "FLAG_NOT_FOUND" | "ERROR"
required
string
string
string
required
Client keys (
pk_...) cannot evaluate non-clientSafe flags. Those evaluations are masked as
FLAG_NOT_FOUND.