---
title: "Retrieve the segments a customer belongs to"
method: GET
path: "/customers/{id}/segments"
tags: ["Customers"]
---

# Retrieve the segments a customer belongs to

`GET /customers/{id}/segments`

## Path parameters

- `id` string, required

## Response `200`

The segments the customer belongs to

- object
  - `segments` Segment[], required — The segments the customer belongs to
    - `id` string, required — The ID of the segment
    - `name` string, required — The name of the segment
    - `filter` string, nullable, required — The filter for this segment
    - `description` string, nullable, required — A Markdown description of the filter
    - `metadata` object — Metadata attached to this segment
    - `static_customers` string[] — The customers that are always included in this segment

---

[API](https://skmtc.dev/pocketflows/apis/pocketflows-api.md) · [All operations](https://skmtc.dev/pocketflows/apis/pocketflows-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pocketflows/pocketflows-api/revisions/26723490b96f/schema)
