Get One List Segment
Retrieve the full details of a single segment, including conditions, match type, subscriber count, and creation timestamp. Ideal for viewing dynamic list filters configured for targeted sending.
🔍 Get One List Segment
Fetch detailed information about a specific segment within a subscriber list using its unique segment UID.
🔹 HTTP Request
GET API-URL/segments/SEGMENT-UNIQUE-ID
🔸 URL Segments
Segment
Required
Description
SEGMENT-UNIQUE-ID
Yes
Unique identifier of the list segment.
🔐 Authorization Header
X-API-KEY: your-api-key-here
💻 PHP Example
// GET ONE ITEM
$response = $endpoint->getSegment('SEGMENT-UNIQUE-ID');
// DISPLAY RESPONSE
echo '<pre>';
print_r($response->body);
echo '</pre>';
📦 Sample JSON Response
{
"status": "success",
"data": {
"record": {
"segment_uid": " da862njvwxc05",
"segment_id": "15",
"name": "My USA Segment",
"operator_match": "any",
"date_added": "10/23/23, 2:36 PM",
"subscribers_count": 0,
"conditions": [
{
"field_id": "96",
"operator_id": "3",
"value": "keyword"
}
],
"campaign_conditions": []
}
}
}
Last updated