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

Authorizations

Authorization
string
headerrequired

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

Path Parameters

namespaceKey
string
required

Query Parameters

limit
integer
offset
integer
pageToken
string
reference
string

Response

200 - application/json
segments
object[]
required
nextPageToken
string
required
totalCount
integer
required