Easymailing
Members

Search members by email

GET /members/search

GET/members/search

Finds a person by email across all audiences and returns one member record for each audience they belong to. The result is not paginated.

When to use: When you have an email and do not know the audience or the member UUID: to check whether the person is already subscribed, in which audiences and with which status.

When not to use: To list or filter the members of one audience, use list_audience_members. To add the person, use create_audience_member. To find a person by name or phone, or to see their company and tags, use list_contacts with search; to list the audiences of a contact you already have, use list_contact_audience_memberships.

Filters: Only email works (partial match). The other query parameters listed for this operation are accepted but ignored.

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

Query Parameters

email?string

Part of an email address. Returns every member of every audience whose contact email contains this text (partial match). Without it the result is empty.

status?string

Ignored by this operation (it only uses email).

phone?string

Ignored by this operation (it only uses email).

sms_status?string

Ignored by this operation (it only uses email).

email_opt_in_source?string

Ignored by this operation (it only uses email).

sms_opt_in_source?string

Ignored by this operation (it only uses email).

source?string

Ignored by this operation (it only uses email).

groups?string

Ignored by this operation (it only uses email).

suscription_form?string

Ignored by this operation (it only uses email).

Response Body

application/problem+json

application/problem+json

curl -X GET "https://api.easymailing.com/members/search?email=ana%40example.com" \  -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"  }]