Skip to Content
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]?
Example Request
curl -X GET 'https://api.faststats.dev/v0/projects/string/segments'
Example Response
[
  {
    "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"
  }
]