List groups
GET /audiences/{audienceUuid}/groups
/audiences/{audienceUuid}/groupsLists the groups of one audience, newest first, each with its colour, whether it is public and how many members it has.
When to use: To find the group the user means (to read its UUID) or to see how an audience is organised by hand.
When not to use: For groups that are filters computed automatically, use segments: list_audience_segments. To see who is in a group, use list_audience_members with the groups filter.
Filters: title: partial match on the title. Sorting: order[field]=asc|desc with createdAt, updatedAt or title; 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 group 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 group title. Returns the groups whose title 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/groups?page=1&itemsPerPage=30&title=VIP&audience=0df14405-90ff-4287-b3e4-ef088901ee6f" \ -H "X-Auth-Token: YOUR_API_KEY"[ { "id": 0, "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "title": "string", "description": "string", "suscriber_count": 0, "color": "string", "public": true, "audience": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" }]