---
title: List all Feature Flags.
slug: amberflo-api/list-all-feature-flags
docTags: 
createdAt: 2024-11-07T15:10:16.978Z
---

{
  "id": "7g2WwNwZyMSsBmofKO4dz",
  "type": "api-oas-v2",
  "data": {
    "method": "GET",
    "url": "https://app.amberflo.io/feature/flag",
    "servers": [
      {
        "url": "https://app.amberflo.io/feature/flag"
      }
    ],
    "name": "List all Feature Flags.",
    "description": "",
    "contentType": "application/json",
    "request": {
      "pathParameters": [],
      "headerParameters": [],
      "queryParameters": [],
      "bodyDataParameters": [],
      "formDataParameters": [],
      "oAuthParameters": [
        {
          "id": "apiKey",
          "name": "X-API-KEY",
          "kind": "optional",
          "type": "apiKey",
          "in": "header"
        }
      ]
    },
    "responses": [
      {
        "statusCode": "200",
        "description": "Successful request",
        "jsonExample": "",
        "isExpanded": true,
        "schema": [
          {
            "kind": "optional",
            "type": "array",
            "description": "",
            "customType": "metadata.feature_flag.FeatureFlag.out[]",
            "schema": [
              {
                "name": "id",
                "kind": "required",
                "type": "string",
                "description": "Id of the flag.",
                "example": ""
              },
              {
                "name": "label",
                "kind": "optional",
                "type": "string",
                "description": "Name of the flag.",
                "example": ""
              },
              {
                "name": "description",
                "kind": "optional",
                "type": "string",
                "description": "Description of the flag.",
                "example": ""
              },
              {
                "name": "defaultValue",
                "kind": "optional",
                "type": "object",
                "description": "Default value of the flag.",
                "modelRef": "#/components/schemas/metadata.feature_flag.flag_values.FlagValue.out",
                "customType": "metadata.feature_flag.flag_values.FlagValue.out",
                "schema": [],
                "complexType": "oneOf",
                "complexItems": [
                  {
                    "name": "metadata.feature_flag.flag_values.BooleanValue.out",
                    "description": "",
                    "modelRef": "#/components/schemas/metadata.feature_flag.flag_values.BooleanValue.out",
                    "schema": [
                      {
                        "name": "type",
                        "kind": "required",
                        "type": "string",
                        "description": "Type of the flag.",
                        "example": "",
                        "default": "bool"
                      },
                      {
                        "name": "value",
                        "kind": "required",
                        "type": "boolean",
                        "description": "Value of the flag.",
                        "example": ""
                      }
                    ]
                  },
                  {
                    "name": "metadata.feature_flag.flag_values.IntegerValue.out",
                    "description": "",
                    "modelRef": "#/components/schemas/metadata.feature_flag.flag_values.IntegerValue.out",
                    "schema": [
                      {
                        "name": "type",
                        "kind": "required",
                        "type": "string",
                        "description": "Type of the flag.",
                        "example": "",
                        "default": "int"
                      },
                      {
                        "name": "value",
                        "kind": "required",
                        "type": "integer<int32>",
                        "description": "Value of the flag.",
                        "example": 0
                      }
                    ]
                  }
                ]
              }
            ],
            "modelRef": "#/components/schemas/metadata.feature_flag.FeatureFlag.out",
            "isExpanded": true
          }
        ]
      }
    ],
    "examples": {
      "languages": [
        {
          "id": "CcUdGy0LE2bKqoFSO-_xJ",
          "language": "curl",
          "label": "cURL",
          "code": "curl --request GET \\\n     --url https://app.amberflo.io/feature/flag \\\n     --header 'accept: application/json'"
        },
        {
          "id": "rf-P6k5MDK7wDOLA96_hw",
          "language": "javascript",
          "label": "javascript",
          "code": "var myHeaders = new Headers();\nmyHeaders.append(\"accept\", \"application/json\");\nmyHeaders.append(\"content-type\", \"application/json\");\n\nvar requestOptions = {\n   method: 'GET',\n   headers: myHeaders,\n   redirect: 'follow'\n};\n\nfetch(\"https://app.amberflo.io/feature/flag\", requestOptions)\n   .then(response => response.text())\n   .then(result => console.log(result))\n   .catch(error => console.log('error', error));"
        },
        {
          "id": "cEY01OCJCaa1MPgx1TUt2",
          "language": "ruby",
          "label": "Ruby",
          "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://app.amberflo.io/feature/flag\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Get.new(url)\nrequest[\"accept\"] = \"application/json\"\nrequest[\"content-type\"] = \"application/json\"\n\nresponse = https.request(request)\nputs response.read_body\n"
        },
        {
          "id": "bklwlx3xrunrck_VaDBTf",
          "language": "python",
          "label": "Python",
          "code": "import requests\nimport json\n\nurl = \"https://app.amberflo.io/feature/flag\"\n\npayload = {}\nheaders = {\n   'accept': 'application/json',\n   'content-type': 'application/json'\n}\n\nresponse = requests.request(\"GET\", url, headers=headers, data=payload)\n\nprint(response.text)\n"
        }
      ],
      "selectedLanguageId": "CcUdGy0LE2bKqoFSO-_xJ"
    },
    "results": {
      "languages": [
        {
          "id": "LvTTmd_Q1sgqPFHzAoNNK",
          "language": "200",
          "code": "// Successful request\n[\n  {\n    \"id\": \"\",\n    \"label\": \"\",\n    \"description\": \"\",\n    \"defaultValue\": {}\n  }\n]"
        }
      ],
      "selectedLanguageId": "LvTTmd_Q1sgqPFHzAoNNK"
    }
  },
  "children": [
    {
      "text": ""
    }
  ]
}