---
title: "List a contact's segments"
description: "The segments the contact is in: static segments by membership, with its per-segment opt-out (subscribed), and dynamic segments whose filter it matches now. `GET /api/v1/contacts/{id}/segments`"
url: https://www.unitpost.com/docs/platform/get-contacts-id-segments
section: "Platform API reference"
updated: 2026-10-13
---
# List a contact's segments

`GET /api/v1/contacts/{id}/segments`

The segments the contact is in: static segments by membership, with its per-segment opt-out (`subscribed`), and dynamic segments whose filter it matches now. Not paginated. From the segment's side, see [List segment members](https://www.unitpost.com/docs/platform/get-segments-id-contacts). The `{id}` accepts a contact id or email. Requires the `contacts:read` capability.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | — |

## Response fields (200)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `object` | string | yes | — |
| `segment_id` | string | yes | — |
| `name` | string | yes | — |
| `type` | enum | yes | A dynamic segment's members come from its filter; they can't be added or removed by hand. One of: `static`, `dynamic`. |
| `subscribed` | boolean | yes | Whether this segment's sends reach the contact (a static segment can be opted out of on its own). |
| `unsubscribed_at` | string \| null | yes | — |

## Responses

| Status | Description |
| --- | --- |
| 200 | The contact's segments (`has_more` is always false). |
| 401 | Missing or invalid API key. |
| 403 | Insufficient scope. |
| 404 | Contact not found. |

## Example request

```bash
curl -X GET 'https://www.unitpost.com/api/v1/contacts/con_123/segments' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'User-Agent: my-app/1.0'
```

## Example response (200)

```json
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "object": "contact_segment",
      "segment_id": "segment_123",
      "name": "Example",
      "type": "static",
      "subscribed": false,
      "unsubscribed_at": "2026-01-01T00:00:00.000Z"
    }
  ]
}
```

## Links

- HTML reference (with Node.js, Python, Ruby, PHP, Laravel, Go, Java, Rust, .NET and CLI examples): https://www.unitpost.com/docs/platform/get-contacts-id-segments
- OpenAPI 3.1 (full schemas): https://www.unitpost.com/api/v1/openapi.json
