Retrieve a segment
GET/api/v1/segments/{id}
GET /segments/{id}
curl -X GET 'https://www.unitpost.com/api/v1/segments/seg_123' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'User-Agent: my-app/1.0'Response · 200
{
"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 single segment by id, including its name and member count. To page through the contacts inside it, use List segment members. Requires the segments:read capability.
Parameters1 field
| Field | Type | Description |
|---|---|---|
idrequired | string · path | — |
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 | — |
200401404