Get All List Segments
Retrieve all segments created within a specific subscriber list. Each segment includes a unique identifier, name, and the number of subscribers it contains.
๐งฉ Get All List Segments
๐น HTTP Request
GET API-URL/lists/LIST-UNIQUE-ID/segments๐ธ URL Segments
Segment
Required
Description
๐ธ Query Parameters
Parameter
Default
Description
๐ Authorization Header
X-API-KEY: your-api-key-here๐ป PHP Example
// GET ALL ITEMS
$response = $endpoint->getSegments('LIST-UNIQUE-ID');
// DISPLAY RESPONSE
echo '<pre>';
print_r($response->body);
echo '</pre>';๐ฆ Sample JSON Response
Last updated