List audience segments
GET /audiences/{audienceUuid}/list_segments
Deprecated
/audiences/{audienceUuid}/list_segmentsDeprecated: old segment that lives inside one audience; Customer App does not show it and no new work should use it. Lists the saved segments of one audience, newest first, each with its conditions and how many members match it. A segment is a saved filter whose members update by themselves as data changes.
When to use: To find a segment to use in a campaign or in a bulk action, or to see how an audience is sliced by rules.
When not to use: For the segments Customer App shows (global, over contacts), use list_contact_segments. For labels you assign by hand, use groups: list_audience_groups. To see the fields you can filter on, use list_audience_condition_fields.
Filters: name and description: partial match on the text. Sorting: order[field]=asc|desc with createdAt, updatedAt or name; default createdAt descending.
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.
Query Parameters
Page number, starting at 1.
1Items per page. Default 30, maximum 50.
0 <= value <= 5030Part of the segment name. Returns the segments whose name contains this text.
Part of the segment description. Returns the segments whose description contains this text.
UUID of an audience. Redundant here, because the audience is already in the path.
Response Body
application/problem+json
application/problem+json
curl -X GET "https://api.easymailing.com/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/list_segments?page=1&itemsPerPage=30&name=Spain&description=located&audience=0df14405-90ff-4287-b3e4-ef088901ee6f" \ -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" }]