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
Request
- Base URLhttps://mixpanel.com/api/query
- Auth
- HTTP basic
- or HTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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
Example response
{
"flags": {
"new_checkout_flow": {
"variant_key": "treatment",
"variant_value": true,
"experiment_id": "exp_123",
"is_experiment_active": true
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.