Skip to Content
Segments

Get Segment

GET
/v0/projects/{idOrSlug}/segments/{segmentId}

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
segmentId*string
Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|[fF]{8}-[fF]{4}-[fF]{4}-[fF]{4}-[fF]{12})$
Formatuuid

Response Body

SegmentRecord

application/json
  1. response
id*string
projectId*string
key*string
name*string
description*string|null
type*string
Value in"dynamic""static"
definition*
members*array<>
flagCompatible*boolean
usedBy*
createdAt*string
updatedAt*string
Example Request
curl -X GET 'https://api.faststats.dev/v0/projects/string/segments/497f6eca-6276-4993-bfeb-53cbbbba6f08'
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"
}