List segment members
GET/api/v1/segments/{id}/contacts
GET /segments/{id}/contacts
curl -X GET 'https://www.unitpost.com/api/v1/segments/seg_123/contacts' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'User-Agent: my-app/1.0'Response · 200
{
"object": "list",
"has_more": false,
"data": [
{
"object": "segment_member",
"contact_id": "contact_123",
"subscribed": false,
"unsubscribed_at": "2026-01-01T00:00:00.000Z"
}
]
}Retrieve the contacts in a segment, cursor-paginated. Add a contact with Add a member or take one out with Remove a member. Requires the segments:read capability.
Parameters4 fields
| Field | Type | Description |
|---|---|---|
idrequired | string · path | — |
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 fields4 fields
| Field | Type | Description |
|---|---|---|
objectrequired | string | — |
contact_idrequired | string | — |
subscribedrequired | boolean | — |
unsubscribed_atrequired | object | — |
200401404422