Segments

List Segments

GET
/v0/projects/{idOrSlug}/segments

Authorization

apiKeyAuth
headerx-api-key<token>

FastStats API key. Pass it in the x-api-key header or as a Bearer token in the Authorization header.

Path Parameters

idOrSlug*string

Response Body

Success

application/json
  1. response
[index: integer]?
curl -X GET "https://example.com/v0/projects/string/segments"
[  {    "id": "string",    "projectId": "string",    "key": "string",    "name": "string",    "description": "string",    "type": "dynamic",    "definition": {      "type": "group",      "match": "all",      "negate": true,      "children": [        {}      ]    },    "members": [      {        "kind": "identifier",        "value": "string",        "excluded": true      }    ],    "flagCompatible": true,    "usedBy": {      "segments": [        "string"      ],      "flags": [        "string"      ]    },    "createdAt": "string",    "updatedAt": "string"  }]