v1

latestOpenAPI 3.0.3MIT2026-07-26104113247.1 KB
Get Variant Assignments

Evaluate Feature Flags (GET)

Evaluate all enabled feature flags for a user with the provided context. Returns selected variants for flags the user is eligible for.

get/flags

Path parameters

project_idinteger required

Query parameters

tokenstring

Your project token

contextstring required

URL-encoded JSON object containing evaluation context with distinct_id (required) and optional device_id and custom_properties object

Response

Success

flagsobject required

Map of flag keys to their selected variants

Example response

{
  "flags": {
    "new_checkout_flow": {
      "variant_key": "treatment",
      "variant_value": true,
      "experiment_id": "exp_123",
      "is_experiment_active": true
    }
  }
}