v7

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-013764062.2 MB
Features

Get variants for a feature in an environment

Returns the variants for a feature in a specific environment. If the feature has no variants it will return an empty array of variants

get/api/admin/projects/{projectId}/features/{featureName}/environments/{environment}/variants

Path parameters

projectIdstring required
featureNamestring required
environmentstring required

Response

featureVariantsSchema

versioninteger required

The version of the feature variants schema.

Example response

{
  "version": 1,
  "variants": [
    {
      "name": "blue_group",
      "weightType": "variable",
      "stickiness": "custom.context.field",
      "payload": {
        "type": "json",
        "value": "{\"color\": \"red\"}"
      },
      "overrides": [
        {
          "contextName": "userId",
          "values": [
            "red",
            "blue"
          ]
        }
      ]
    }
  ]
}