Get an audience segment
GET /audiences/{audienceUuid}/list_segments/{uuid}
Deprecated
/audiences/{audienceUuid}/list_segments/{uuid}Deprecated: old segment that lives inside one audience; Customer App does not show it and no new work should use it. Returns one segment with its conditions (field, operator and value) and the number of members that match.
When to use: To read the rules of a segment you already know before using or changing it.
When not to use: For a contact segment, use get_contact_segment. To find a segment by name, use list_audience_segments with the name filter. To see the matching people, use the segment in a campaign or export it with async_task_segment_export.
Permissions: Requires the manager role or higher, or the marketing.audiences.read capability.
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
UUID of the audience the segment belongs to. Get it from list_audiences.
UUID of the segment. Get it from list_audience_segments.
Response Body
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://api.easymailing.com/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_segments/b2d1c9a4-6e7f-4a35-8d10-5c9e3f7a1b62" \ -H "X-Auth-Token: YOUR_API_KEY"{ "id": 0, "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "name": "string", "description": "string", "operator_match": "all", "subscriber_count": 0, "custom": true, "conditions": [ { "field": "/entity/1", "operator": "string", "operator_to_string": "string", "value": null, "value_to_string": "string" } ], "audience": "/entity/1", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}