---
title: "Get a list of Market Segmentation Segments."
method: GET
path: "/market-segmentation/v1/segments/{enabled}"
tags: ["Market Segmentation"]
---

# Get a list of Market Segmentation Segments.

`GET /market-segmentation/v1/segments/{enabled}`

## Path parameters

- `enabled` boolean, required

## Query parameters

- `offset` integer
- `limit` integer
- `filters` QueryParameterDynamicFilterSchema
  - `filters` DynamicFilterSchema — Represents a logical group of filters with keys like 'and' or 'or'
    - `and` union[] — Logical operator grouping filters or nested logical groups
      - union
        - DynamicFilterFieldSchema — Represents a single filter condition
          - `field` string — The field to apply the filter on
          - `operator` 'greater_than_or_equal' | 'greater_than' | 'less_than_or_equal' | 'less_than' | 'equal' | 'in' | 'not_in' | 'is_null' | 'is_not_null' | 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'starts_with' | 'not_starts_with' | 'ends_with' | 'not_ends_with' | 'is_empty' | 'is_not_empty' — The operator to use for the filter
          - `value` union — The value for the filter
            - string
            - string, date-time
            - string, date
            - integer
            - boolean
            - string[]
            - integer[]
            - string[]
            - string[]
        - DynamicFilterSchema — recursive
    - `or` union[] — Logical operator grouping filters or nested logical groups
      - union
        - DynamicFilterFieldSchema — Represents a single filter condition
          - `field` string — The field to apply the filter on
          - `operator` 'greater_than_or_equal' | 'greater_than' | 'less_than_or_equal' | 'less_than' | 'equal' | 'in' | 'not_in' | 'is_null' | 'is_not_null' | 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'starts_with' | 'not_starts_with' | 'ends_with' | 'not_ends_with' | 'is_empty' | 'is_not_empty' — The operator to use for the filter
          - `value` union — The value for the filter
            - string
            - string, date-time
            - string, date
            - integer
            - boolean
            - string[]
            - integer[]
            - string[]
            - string[]
        - DynamicFilterSchema — recursive

## Headers

- `x-property-id` string, required

## Response `200`

List of Market Segmentation Segments.

- SegmentListResponseSchema
  - `limit` integer
  - `offset` integer
  - `data` SegmentResponseSchema[], nullable
    - `id` string
    - `groupId` string
    - `name` string
    - `code` string
    - `description` string
    - `isEnabled` boolean
    - `isDefault` boolean
    - `ratePlanIds` string[]
    - `createdAt` string, Y-m-d\TH:i:sP
    - `updatedAt` string, Y-m-d\TH:i:sP, nullable
    - `canEdit` string[]
    - `canDelete` boolean
    - `canDisable` boolean

## Other responses

- `400` — Bad request response.
- `403` — Forbidden response.
- `500` — Internal server error.

---

[API](https://skmtc.net/cloudbeds/apis/cloudbeds-api.md) · [All operations](https://skmtc.net/cloudbeds/apis/cloudbeds-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cloudbeds/cloudbeds-api/revisions/2faa857793e8/schema)
