Easymailing
Email composing

List email recipients of a company or opportunity

GET /email_recipient_candidates

GET/email_recipient_candidates

Lists the contacts with an email address that could receive an email written from a company or an opportunity: the company's contacts and, for an opportunity, also those assigned to it, without repeats and with where each comes from.

When to use: When the user wants to email 'the company' or 'the deal' and you need the people and addresses to put in to.

When not to use: To write from a contact you already know, put their email directly. To find contacts in general, use list_contacts.

Filters: Send exactly one of company or opportunity. search looks in name and email (case-insensitive). Opportunity results come first when a contact is assigned to it. Pagination: page and itemsPerPage (default 30, maximum 100); the total is in hydra:totalItems.

Permissions: Requires a CRM seat and the crm.contacts_companies.write capability. Writing from an opportunity also requires crm.opportunities.read and the Work level on its pipeline.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Query Parameters

company?string

UUID of the company whose contacts are offered.

Formatuuid
opportunity?string

UUID of the opportunity whose contacts (and those of its company) are offered.

Formatuuid
search?string

Text to look for in name and email.

Lengthlength <= 120
page?integer

Page number, starting at 1.

Range1 <= value
Default1
itemsPerPage?integer

Contacts per page. Default 30, maximum 100.

Range1 <= value <= 100
Default30

Response Body

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://api.easymailing.com/email_recipient_candidates?company=3a9e1f58-0000-4000-8000-6c474d08b1a9&opportunity=3a9e1f59-0000-4000-8000-6c474d08b1aa&search=ana&page=1&itemsPerPage=30" \  -H "X-Auth-Token: YOUR_API_KEY"
[  {    "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",    "name": "string",    "email": "string",    "sources": [      "company"    ]  }]