List the contacts in a segment
Cursor-paginated members of a segment. For a STATIC segment these are the rows of its membership list; for a DYNAMIC one the saved condition is evaluated against contacts as the page is read, so the result always reflects the contacts as they are now.
Cursors from this endpoint are not interchangeable with cursors from other list endpoints — the ordering differs — and pairing one with the wrong endpoint answers 422 rather than silently paging a different set.
Requires the segments:read scope — View your segments and who belongs to them.
AuthorizationBearer <API Key>API key authentication. Use a sk_* (FULL) or pk_* (SENDING_ONLY) key as the bearer token. Public keys (pk_*) are restricted to the email-send endpoints and the self-serve list subscribe/unsubscribe pair; every other endpoint — event tracking included — answers 403 for them. In scope terms (used by /api/v1/* operations): FULL keys hold every scope; SENDING_ONLY keys hold only emails:send.
id*stringResource id.
uuidlimit?integer1 <= value <= 10020after?stringOpaque cursor from a previous response's next_cursor.
1 <= lengthSegment member list
application/json- response
Cursor-paginated list of the contacts belonging to a segment.
data*array<>has_more*booleannext_cursor*|Pass as after to fetch the next page. null on the last page.
curl -X GET 'https://api.sendly.now/api/v1/segments/497f6eca-6276-4993-bfeb-53cbbbba6f08/contacts'{ "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "email": "string", "subscribed": true, "custom_fields": { "property1": null, "property2": null }, "created_at": "2019-08-24T14:15:22Z" } ], "has_more": true, "next_cursor": "string"}