> ## Documentation Index
> Fetch the complete documentation index at: https://docs.unleashx.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Segment Summary List

> Retrieve a lightweight, unpaginated list of every non-deleted segment in the workspace (id, name, variable count, contact count) for use in dropdowns and pickers.

Use this endpoint to **retrieve a lightweight, unpaginated list of segments** — id, name, and contact/variable counts — for use in dropdowns and pickers (e.g. attaching a segment to a campaign, or a workflow's `selectdynamic` field).

## Endpoint

**GET** `/segment/summary-list`

**Authentication:** Required (workspace auth)

This endpoint has no query parameters — it always returns every non-deleted segment in the caller's workspace.

## Response

```json theme={null}
[
  {
    "id": 501,
    "segment_name": "Mumbai Premium",
    "ID": 501,
    "OBJECT_NAME": "Mumbai Premium",
    "variable_count": 4,
    "contact_count": 128
  }
]
```

| Field                 | Description                                                                                                                       |
| --------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| `id` / `segment_name` | Segment identifier and name                                                                                                       |
| `ID` / `OBJECT_NAME`  | Same values, duplicated under these keys so this list can double as a generic `selectdynamic` picker                              |
| `variable_count`      | Number of input variables saved on the segment's parent audience (`0` for campaign-sourced segments, which have no `audience_id`) |
| `contact_count`       | Cached `total_contacts` on the segment                                                                                            |

## Example cURL

```bash theme={null}
curl -X GET https://www.tryunleashx.com/api/v1/global/segment/summary-list \
  -H "token: <api_key>"
```


## OpenAPI

````yaml api-reference/openapi.json GET /segment/summary-list
openapi: 3.1.0
info:
  title: >-
    UnleashX - Build human like conversations | Voice Agents | Automations | AI
    Workforce
  version: 1.0.0
  description: UnleashX - Your home for human like conversations
servers:
  - url: https://www.tryunleashx.com/api/v1/global/
security:
  - bearerAuth: []
paths:
  /segment/summary-list:
    get:
      tags:
        - Segment
      summary: Segment summary list
      description: >-
        Retrieve a lightweight, unpaginated list of every non-deleted segment in
        the workspace (id, name, variable count, contact count) for use in
        dropdowns and pickers.
      parameters:
        - name: token
          in: header
          required: true
          description: API token for authentication
          schema:
            type: string
      responses:
        '200':
          description: Segment summary list retrieved successfully
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: integer
                    segment_name:
                      type: string
                    ID:
                      type: integer
                    OBJECT_NAME:
                      type: string
                    variable_count:
                      type: integer
                    contact_count:
                      type: integer
        '401':
          description: Unauthorized
      security: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````