Audiences
List audiences
GET /audiences
GET
/audiencesLists the audiences of the account, newest first, each with its subscriber totals, groups, segments, custom fields, sender defaults and GDPR settings.
When to use: At the start of almost any task: most other operations need an audienceUuid, so call this to find the audience the user means.
When not to use: To read one audience you already know, use get_audience. To list the people inside an audience, use list_audience_members.
Permissions: Requires the viewer role or higher, or the marketing.audiences.read capability.
X-Auth-Token<token>
Value for the X-Auth-Token header parameter.
In: header
Query Parameters
page?integer
Page number, starting at 1.
Default
1itemsPerPage?integer
Items per page. Default 30, maximum 50.
Range
0 <= value <= 50Default
30Response Body
application/problem+json
application/problem+json
curl -X GET "https://api.easymailing.com/audiences?page=1&itemsPerPage=30" \ -H "X-Auth-Token: YOUR_API_KEY"[ { "id": 0, "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "title": "string", "description": "string", "currency": "string", "timezone": "string", "audience_stats": { "score": 0, "sms_score": 0, "total": 0, "active": 0, "canceled": 0 }, "audience_resources": { "campaigns": 0, "automations": 0, "subscription_forms": 0, "landing_pages": 0 }, "preferences": { "from_name": "string", "from_email": { "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "email": "user@example.com", "confirmed": true }, "reply_to": { "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "email": "user@example.com", "confirmed": true } }, "company": { "company_name": "string", "address": "string", "postal_code": "string", "city": "string", "state": "string", "country": "string", "phone": "string", "website_url": "http://example.com", "logo_url": "string" }, "notifications": { "opt_in": "string", "opt_out": "string", "opt_in_notify_email": "user@example.com", "opt_out_notify_email": "user@example.com", "welcome_email": true, "unsubscribe_hard_bounces": true, "unsubscribe_soft_bounces": true, "sms_sender": "/entity/1" }, "list_segments": [ { "name": "string", "description": "string", "operator_match": "all", "subscriber_count": 0, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" } ], "list_fields": [ { "tag": "string", "template_tag": "string", "public": true, "required": true, "type": "list.field.type.text", "translations": [ { "label": "string", "default_value": "string", "help_text": "string", "locale": "string" } ], "options": { "property1": "string", "property2": "string" }, "list_field_options": [ { "value": "string", "translations": [ { "name": "string", "locale": "string" } ] } ], "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" } ], "groups": [ { "title": "string", "description": "string", "suscriber_count": 0, "color": "string", "public": true } ], "list_gdpr": { "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "enabled": true, "privacy_url": "http://example.com", "list_gdpr_treatment_purposes": [], "treatment_purposes": [ { "translations": [ { "title": "string", "locale": "string" } ], "name": "string", "description": "string", "custom": true } ], "data_manager": { "name": "string", "email": "user@example.com" } }, "total_suscribers": 0, "active_suscribers": 0, "unsuscribed": 0, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" }]