---
title: "GET /api/v4/customers/segments"
method: GET
path: "/api/v4/customers/segments"
---

# GET /api/v4/customers/segments

`GET /api/v4/customers/segments`

Get segments list.

## Response `200`

The request has succeeded.

- union
  - CustomerSegmentListResponse
    - `_links` object
    - `_embedded` object
      - `segments` CustomerSegment[]
        - `id` integer
        - `name` string
        - `color` string
        - `created_at` integer
        - `updated_at` integer
        - `customers_count` integer
        - `custom_fields_values` CustomFieldValue[], nullable
          - `field_id` integer — Use either field_id or field_code (e.g. PHONE/EMAIL)
          - `field_code` string — Field code (e.g. PHONE/EMAIL)
          - `values` CustomFieldValueItem[], required — Values for the field (multiple values allowed)
            - `value` union, required
              - …
            - `enum_id` integer — Option id for list/select custom fields (one of predefined options)
            - `enum_code` string — Option code for list/select custom fields (if you use code instead of id)
  - Problem
    - `title` string
    - `status` integer
    - `detail` string
    - `type` string

---

[API](https://skmtc.net/hexlet/apis/amocrm-api.md) · [All operations](https://skmtc.net/hexlet/apis/amocrm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hexlet/amocrm-api/versions/800f4ed7083b/schema)
