# Segments · Management API

> Management API reference for segments: GET /sites/{id}/segments.

> Markdown version of https://kanorio.com/en/developers/management-api/segments. Append `.md` to any developer docs URL for this format. Index: https://kanorio.com/llms.txt · MCP: https://app.kanorio.com/api/mcp

Base URL: `https://app.kanorio.com/api/v1` · [Errors](https://kanorio.com/en/developers/basics/errors) · [Pagination](https://kanorio.com/en/developers/basics/pagination)

### List segments

`GET /sites/{id}/segments`

- Stability: beta
- Permission: `customers:view`
- Rate limit: default (120/minute per token)
- MCP tool: `segments_list`

List contact segments with their rules and live audience counts. Use a segment id as campaigns.* audience. Errors: FORBIDDEN, INVALID_CURSOR.

**Parameters**

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | Website id. Get it from sites.list or from sites.create. |
| `limit` | query | integer | no | Maximum number of items to return, 1–100. Defaults to 20. |
| `cursor` | query | string | no | Opaque cursor from the previous page's nextCursor. Omit for the first page. |

**Response** (200)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | object[] | yes | — |
| `data[].id` | string | yes | — |
| `data[].name` | string | yes | — |
| `data[].description` | string \| null | yes | — |
| `data[].isSystem` | boolean | yes | System segments (e.g. all subscribers) are read-only. |
| `data[].systemKey` | string \| null | yes | — |
| `data[].rules` | object | yes | — |
| `data[].counts` | object | yes | Live audience counts: matched = all contacts matching the rules; sendable = with valid email consent. |
| `data[].counts.matched` | integer | yes | — |
| `data[].counts.sendable` | integer | yes | — |
| `hasMore` | boolean | yes | True when another page exists; pass nextCursor to fetch it. |
| `nextCursor` | string \| null | yes | Cursor for the next page, or null on the last page. |

**Errors**

| Code | Status | When |
| --- | --- | --- |
| `FORBIDDEN` | 403 | — |
| `INVALID_CURSOR` | 400 | — |

```bash
curl -X GET "https://app.kanorio.com/api/v1/sites/{id}/segments" \
  -H "Authorization: Bearer $KANORIO_TOKEN"
```

```json
{
  "data": [
    {
      "id": "seg_example01",
      "name": "Ordered in the last 90 days",
      "description": null,
      "isSystem": false,
      "systemKey": null,
      "rules": {
        "lastOrderWithinDays": 90
      },
      "counts": {
        "matched": 340,
        "sendable": 320
      }
    }
  ],
  "hasMore": false,
  "nextCursor": null
}
```
