Get All Subscribers
Retrieve paginated subscribers from a specific segment within a list. This endpoint is helpful for filtering contacts based on segment rules and viewing their status and metadata.
๐ฅ Get All Subscribers (From List Segment)
๐น HTTP Request
GET API-URL/lists/LIST-UNIQUE-ID/segments/SEGMENT-UNIQUE-ID/subscribers๐ธ URL Segments
Segment
Required
Description
๐ธ Query Parameters
Parameter
Default
Description
๐ Authorization Header
X-API-KEY: your-api-key-here๐ป PHP Example
// GET ALL SUBSCRIBERS OF A LIST SEGMENT
$response = $endpoint->getSubscribers('LIST-UNIQUE-ID', 'SEGMENT-UNIQUE-ID', $pageNumber = 1, $perPage = 10);
// DISPLAY RESPONSE
echo '<pre>';
print_r($response->body);
echo '</pre>';๐ฆ Sample JSON Response
Last updated