List segments
GET/api/v1/api/v1/segments
curl -X GET 'https://www.unitpost.com/api/v1/api/v1/segments' \
-H 'Authorization: Bearer YOUR_API_KEY'{
"object": "list",
"has_more": false,
"data": [
{
"object": "segment",
"id": "id_123",
"name": "Example",
"description": "string",
"type": "static",
"filter": "string",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z"
}
]
}Retrieve a list of the segments in your workspace, cursor-paginated. A segment is a saved group of contacts you can target when sending a campaign. Create one with Create a segment, or list a segment's members with List segment members. Requires the segments:read capability.
Parameters3 fields
| Field | Type | Description |
|---|---|---|
limit | integer · query | Max rows to return (default 20, max 100). |
after | string · query | Return rows after this id (forward paging). |
before | string · query | Return rows before this id (backward paging). |
Response · 200 fields8 fields
| Field | Type | Description |
|---|---|---|
objectrequired | string | — |
idrequired | string | — |
namerequired | string | — |
descriptionrequired | object | — |
typerequired | enumstatic | dynamic | — |
filterrequired | object | — |
created_atrequired | string | — |
updated_atrequired | string | — |