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
The flag key to evaluate.
Evaluation context.
Stable user identifier.
Anonymous identifier when
userId is not available.Additional attributes used by flag rules.
Response
Client keys (
pk_...) cannot evaluate non-clientSafe flags. Those evaluations are masked as
FLAG_NOT_FOUND.Status codes
| Status | Meaning |
|---|---|
200 | Evaluation succeeded |
400 | Invalid JSON body (INVALID_JSON) |
401 | Missing/invalid API key (UNAUTHORIZED, INVALID_API_KEY) |
422 | Validation failed (VALIDATION_ERROR) |
429 | Rate-limited (RATE_LIMITED) |
503 | Bundle unavailable; returns reason: "ERROR" |