logo
SegmentsList Segments

List Segments

Retrieve all segments

curl -X GET "https://app.nashra.ai/api/v1/segments" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "data": [
    {
      "uuid": "4e8d9c6b-2a1f-3e5d-7c9b-7b2d4c1e3f5a",
      "name": "Active Users",
      "subscribers_count": 1234,
      "stored_conditions": [
        {}
      ],
      "created_at": "2025-01-15T10:30:00+00:00"
    }
  ],
  "meta": {}
}
GET
/segments
GET
Bearer Token
Bearer Tokenstring
Required

API token generated in Settings > API Tokens

API token generated in Settings > API Tokens
Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. API token generated in Settings > API Tokens

Responses

dataarray
metaobject