09f2abcea0b5

latestOpenAPI 3.0.32026-07-22177397578.0 KB
FeatureFlag

Get a feature flag configuration

Get a feature flag configuration belonging to the given site code and feature key. To use optionalFields check out this guide.

get/feature-flags/{siteCode}/{featureKey}

Path parameters

siteCodestring required
featureKeystring required

Query parameters

optionalFieldsstring[]

Response

OK

archivedboolean
attributionWindowinteger

Attribution window

createdByIdinteger

Created by id

dateContentModifiedstring date-time

Date and time when the feature flag configuration content was last modified

dateCreatedstring date-time

Date and time when the feature flag configuration was created

dateModifiedstring date-time

Date and time when the feature flag configuration was last modified

descriptionstring

Description of the feature

featureKeystring required

Key used to identify the feature flag

health'PERMANENT' | 'HEALTHY' | 'STALE' | 'SMELLY'

Health of the feature flag (for temporary ones)

idinteger required

System-generated unique string of integers to identify a feature flag

isArchivedboolean
namestring required

Name of the feature flag

primaryGoalIdinteger

Primary goal of the feature flag

secondaryGoalIdsinteger[]

Secondary goals associated with the feature flag

siteCodestring required

Unique Id for the project in the Kameleoon app. This is an optional field to be included as query parameters

tagsstring[]

List of tags associated with the feature flag. This is an optional field to be included as query parameters

teamIdinteger

Team id

Example response

{
  "environmentConfigurations": [
    {
      "rolloutRules": [
        {
          "release": {
            "timeZone": "Europe/Paris"
          },
          "rollbackConditions": [
            {
              "matchValue": 50,
              "visitors": 1000
            }
          ]
        }
      ]
    }
  ]
}