Easymailing
Email sequences

Enroll contacts in an email sequence

POST /email_sequences/{uuid}/actions/enroll

POST/email_sequences/{uuid}/actions/enroll

Enrolls up to 25 contacts in an active sequence. Each one starts receiving the emails of the published version from the mailbox of the sequence, at their primary email address.

When to use: When the user wants specific contacts to receive a sequence, right now or from a future date.

When not to use: It only works on an active sequence with a sound sender (can_enroll in get_email_sequence): publish a draft with publish_email_sequence, or resume_email_sequence a paused one. To enroll many contacts split them in calls of 25. To take someone out, use exclude_email_sequence_enrollment. This is not a campaign: it does not subscribe anybody to an audience.

Side effects: THIS REACHES PEOPLE. Each enrolled contact gets an enrollment and its first email is planned for the first slot the schedule allows from start (the schedule window, the mailbox limits and the account queue still apply: now does not mean this second). The request does not send anything itself: the emails are sent afterwards by Easymailing's background workers through the connected Gmail of the sender, as that person, from their address and with their signature, always with the unsubscribe footer; the next emails follow after each wait until the contact replies, books a meeting, bounces, unsubscribes or the sequence ends. An enrolled entry (with the person who enrolled) is added to the sequence activity. Contacts that unsubscribed or are already in another live sequence are skipped, never forced. Repeating a request is safe: a contact already enrolled comes back as skipped with enrollment_conflict, so nobody gets duplicate emails.

Permissions: Requires the automations.work and contacts.read capabilities. The account must also have the CRM Pro plan. The user who owns the token must own the mailbox the sequence sends from, or hold the send permission on it when it is shared; otherwise the answer is 403 sender_not_allowed. The user who enrolls and the owner of that mailbox also need a CRM seat and the crm.contacts_companies.write capability, which the engine checks while enrolling; without them the answer is 403 without code.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Path Parameters

uuid*string

UUID of the email sequence the contacts enter. Get it from list_email_sequences.

Formatuuid

Request Body

The new EmailSequenceEnrollmentRun resource

TypeScript Definitions

Use the request body type in TypeScript.

enroll_contacts_in_email_sequence (fase 5, decision 36): the outcome of enrolling up to 25 contacts, one entry per contact. Generated from the proposal by fase-5/tools/gen_email_sequences_api.py; the texts are the proposal's. A POST that answers 200: it creates enrollments, not a resource with a reading of its own. uuid is only the path.

Response Body

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://api.easymailing.com/email_sequences/b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35/actions/enroll" \  -H "X-Auth-Token: YOUR_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "contacts": [      "string"    ],    "start": "now"  }'
{  "sequence": "/entity/1",  "enrolled": 0,  "skipped": 0,  "failed": 0,  "results": [    {      "contact": "/entity/1",      "outcome": "enrolled",      "reason": "reentered",      "enrollment": "a520e15d-bb50-4cbd-bf35-9d2cb1df7235"    }  ]}