Easymailing
Email composing

Check recipients before sending

POST /email_recipient_checks

POST/email_recipient_checks

Tells which of the given addresses would not show up in the email history of the company or opportunity the email is written from, and which belong to people who opted out of CRM email. It informs only; it never blocks a send and saves nothing.

When to use: Before send_email, schedule_email or send_email_batch, to warn the user that a recipient asked not to be emailed or that the email will not be recorded on the deal.

When not to use: To see the opt-out of one contact, use get_contact_email_opt_out. To send, use send_email.

Side effects: None: read-only calculation that uses POST so that addresses do not travel in the URL.

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

Request Body

The new EmailRecipientCheck resource

TypeScript Definitions

Use the request body type in TypeScript.

check_email_recipients (fase 5): which addresses will not show the email on the record, and which opted out. Generated from the proposal by fase-5/tools/gen_email_sending_api.py; the texts are the proposal's. Read-only.

Response Body

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://api.easymailing.com/email_recipient_checks" \  -H "X-Auth-Token: YOUR_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "record": "/entity/1",    "addresses": [      "string"    ]  }'
{  "record": "/entity/1",  "record_type": "contact",  "excluded": [    {}  ],  "opted_out": [    {}  ]}