GET
/
api
/
v1
/
namespaces
/
{namespaceKey}
/
flags
/
{key}
curl --url https://try.flipt.io/api/v1/namespaces/default/flags/{key} \
  --header 'Accept: application/json'
{
  "namespaceKey": "<string>",
  "key": "<string>",
  "name": "<string>",
  "description": "<string>",
  "enabled": true,
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "variants": [
    {
      "id": "<string>",
      "namespaceKey": "<string>",
      "flagKey": "<string>",
      "key": "<string>",
      "name": "<string>",
      "description": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "attachment": "<string>"
    }
  ],
  "type": "VARIANT_FLAG_TYPE"
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

namespaceKey
string
required
key
string
required

Query Parameters

reference
string

Response

200 - application/json
namespaceKey
string
required
key
string
required
name
string
required
description
string
required
enabled
boolean
required
createdAt
string
required
updatedAt
string
required
variants
object[]
required
type
enum<string>
required
Available options:
VARIANT_FLAG_TYPE,
BOOLEAN_FLAG_TYPE