Feature Flags

Get a feature flag

GET
/api/v1/envs/{envId}/feature-flags/{key}

Get a single feature flag by key.

Authorization

AccessToken
Authorization<token>

Use access token to access this API. Example: "Authorization: api-MzQ..."

In: header

Path Parameters

envId*string
Formatuuid
key*string

Header Parameters

Organization?string

The organization ID associated with the request. Some APIs require this header to identify the organization context. When authenticating with an Access Token, this header is automatically populated from the token and does not need to be provided manually.

Workspace?string

The workspace ID associated with the request. Some APIs require this header to identify the workspace context. When authenticating with an Access Token, this header is automatically populated from the token and does not need to be provided manually.

Response Body

application/json

curl -X GET "https://example.com/api/v1/envs/497f6eca-6276-4993-bfeb-53cbbbba6f08/feature-flags/string"
{  "success": true,  "errors": [    "string"  ],  "data": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "creatorId": "688ebf54-d343-4104-8711-82c2feac534a",    "updatorId": "fc043005-5ba8-4693-8a1f-4e3f6d7d45fd",    "envId": "d85839b9-a5c7-44cb-bab9-87315a911e73",    "revision": "b587a570-d9a5-40c2-87da-edba28b3005f",    "name": "string",    "description": "string",    "key": "string",    "variationType": "string",    "variations": [      {        "id": "string",        "name": "string",        "value": "string"      }    ],    "targetUsers": [      {        "keyIds": [          "string"        ],        "variationId": "string"      }    ],    "rules": [      {        "id": "string",        "name": "string",        "dispatchKey": "string",        "includedInExpt": true,        "conditions": [          {            "id": "string",            "property": "string",            "op": "string",            "value": "string"          }        ],        "variations": [          {            "id": "string",            "rollout": [              0.1            ],            "exptRollout": 0.1          }        ]      }    ],    "isEnabled": true,    "disabledVariationId": "string",    "fallthrough": {      "dispatchKey": "string",      "includedInExpt": true,      "variations": [        {          "id": "string",          "rollout": [            0.1          ],          "exptRollout": 0.1        }      ]    },    "exptIncludeAllTargets": true,    "tags": [      "string"    ],    "isArchived": true  }}