Easymailing
Members

List members

GET /audiences/{audienceUuid}/members

GET/audiences/{audienceUuid}/members

Lists the members of one audience, most recently updated first, with their status, groups, custom field values and engagement stats. A member is one person's subscription to this audience. Each member carries its contact, the IRI of the person.

When to use: To browse or export the people of an audience, or to find members by status, source, group or form. To look a person up by email in this audience, filter with email.

When not to use: To find out in which audiences a person is, whatever the audience, use search_member. To read one member whose UUID you know, use get_audience_member. To list the people of the account whatever their audiences, with their company, tags and attributes, use list_contacts.

Filters: All filters are optional and combine with AND.

  • email: partial match on the email address.
  • phone: exact match, E.164.
  • status / sms_status: exact subscription status of the email / SMS channel.
  • source and email_opt_in_source: how the member entered the audience (both filter the same column).
  • sms_opt_in_source: how the member opted in to SMS.
  • groups: comma-separated group UUIDs; only members in all of them.
  • suscription_form: members who signed up through that form. Sorting: order[field]=asc|desc with createdAt, updatedAt, status, source, contact.email, uniqueOpens, uniqueClicks, deliveredEmails, orders, revenue or rating. Default: updatedAt descending.

Permissions: Requires the manager role or higher, or the contacts.read and marketing.audiences.read capabilities.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Path Parameters

audienceUuid*string

UUID of the audience the member belongs to. Get it from list_audiences.

Query Parameters

page?integer

Page number, starting at 1.

Default1
itemsPerPage?integer

Items per page. Default 30, maximum 50.

Range0 <= value <= 50
Default30
email?string

Part of an email address. Returns the members whose email contains this text (partial match).

status?string

Email subscription status. Exact value: suscriber.status.confirmed, suscriber.status.unconfirmed (waiting for confirmation), suscriber.status.unsuscribed (the person unsubscribed) or suscriber.status.unsuscribed.admin (unsubscribed by an administrative action or by the system, for example after bounces). The API spells it unsuscribed.

phone?string

Phone number in E.164 format. Exact match.

sms_status?string

SMS subscription status. Exact value: suscriber.status.confirmed, suscriber.status.unconfirmed (waiting for confirmation), suscriber.status.unsuscribed (the person unsubscribed) or suscriber.status.unsuscribed.admin (unsubscribed by an administrative action or by the system, for example after bounces). The API spells it unsuscribed.

email_opt_in_source?string

How the member entered the audience, exact value: suscriber.source.manual, suscriber.source.api, suscriber.source.webform or suscriber.source.imported. It filters the same column as source.

sms_opt_in_source?string

How the member opted in to SMS, exact stored value (for example suscriber.source.api).

source?string

How the member entered the audience, exact value: suscriber.source.manual, suscriber.source.api, suscriber.source.webform or suscriber.source.imported.

groups?string

UUIDs of groups, separated by commas. Only members who belong to all of the listed groups are returned.

suscription_form?string

UUID of a subscription form. Only members who signed up through that form are returned.

Response Body

application/problem+json

application/problem+json

curl -X GET "https://api.easymailing.com/audiences/0df14405-90ff-4287-b3e4-ef088901ee6f/members?page=1&itemsPerPage=30&email=ana%40example.com&status=suscriber.status.confirmed&phone=%2B34612345678&sms_status=suscriber.status.confirmed&email_opt_in_source=suscriber.source.api&sms_opt_in_source=suscriber.source.api&source=suscriber.source.webform&groups=419eb38e-62fd-454e-98a7-c8dd5e9752dd%2Cf8412e0b-4250-4db0-abee-ac7136379f3a&suscription_form=3c7e9b12-84d0-4a6f-b1e5-0d9a2f6c8e47" \  -H "X-Auth-Token: YOUR_API_KEY"
[  {    "id": 0,    "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",    "email": "user@example.com",    "phone": "string",    "first_name": "string",    "last_name": "string",    "client_ip": "192.168.0.1",    "locale": "string",    "location": {      "city": "string",      "postal_code": "string",      "timezone": "string",      "country_code": "string",      "country": "string",      "lat": 0.1,      "lng": 0.1    },    "status": "suscriber.status.confirmed",    "email_opt_in_source": "suscriber.source.manual",    "email_opt_in_at": "2019-08-24T14:15:22Z",    "email_opt_out_at": "2019-08-24T14:15:22Z",    "sms_status": "suscriber.status.confirmed",    "sms_opt_in_at": "2019-08-24T14:15:22Z",    "sms_opt_out_at": "2019-08-24T14:15:22Z",    "sms_opt_in_source": "api",    "source": "suscriber.source.manual",    "rating": 0.1,    "audience": "string",    "contact": "/entity/1",    "groups": [      {        "title": "string",        "description": "string",        "color": "string",        "public": true      }    ],    "member_consent": {      "ip": "192.168.0.1",      "consent_at": "2019-08-24T14:15:22Z",      "treatment_purposes": [        {          "translations": [            {              "title": "string",              "locale": "string"            }          ],          "description": "string"        }      ]    },    "custom_fields": [      {        "list_field": {          "tag": "string",          "template_tag": "string",          "public": true,          "required": true,          "type": "list.field.type.text"        },        "value": "string"      }    ],    "suscription_form": {      "url": "http://example.com",      "domain": "string",      "title": "string",      "type": "popup",      "double_opt_in": true,      "active": true,      "paused": true    },    "stats": {      "sent": 0,      "delivered_emails": 0,      "unique_opens": 0,      "unique_clicks": 0,      "open_rate": 0,      "click_rate": 0,      "orders": 0,      "revenue": 0,      "order_rate": 0,      "avg_revenue": 0    },    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z"  }]