GET
/
api
/
v1
/
namespaces
/
{namespaceKey}
/
segments
/
{key}
curl --url https://try.flipt.io/api/v1/namespaces/default/segments/{key} \
  --header 'Accept: application/json'
{
  "constraints": [
    {
      "createdAt": "2023-11-07T05:31:56Z",
      "description": "<string>",
      "id": "<string>",
      "namespaceKey": "<string>",
      "operator": "<string>",
      "property": "<string>",
      "segmentKey": "<string>",
      "type": "UNKNOWN_COMPARISON_TYPE",
      "updatedAt": "2023-11-07T05:31:56Z",
      "value": "<string>"
    }
  ],
  "createdAt": "2023-11-07T05:31:56Z",
  "description": "<string>",
  "key": "<string>",
  "matchType": "ALL_MATCH_TYPE",
  "name": "<string>",
  "namespaceKey": "<string>",
  "updatedAt": "2023-11-07T05:31:56Z"
}

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
constraints
object[]
required
createdAt
string
required
description
string
required
key
string
required
matchType
enum<string>
required
Available options:
ALL_MATCH_TYPE,
ANY_MATCH_TYPE
name
string
required
namespaceKey
string
required
updatedAt
string
required