Easymailing
Email sequences

Take a contact out of a sequence

PUT /email_sequences/{uuid}/enrollments/{enrollmentUuid}/actions/exclude

PUT/email_sequences/{uuid}/enrollments/{enrollmentUuid}/actions/exclude

Ends one live enrollment for good (exit reason manual_exclusion): the contact gets no more emails from this sequence and a queued email is canceled.

When to use: To remove a contact from a sequence, for example because they asked, a deal closed or the emails no longer apply. Also for an enrollment in technical-error that you do not want to retry.

When not to use: To hold the emails for a while without ending it use pause_email_sequence_enrollment. To stop everybody use pause_email_sequence. It cannot be undone, but the contact can be enrolled again with enroll_contacts_in_email_sequence (it counts as a re-entry). It does not unsubscribe the contact from anything else.

Side effects: The enrollment finishes as excluded and its queued email is canceled; an email being sent at that very moment is not cut (you get 409 enrollment_effect_in_flight: retry in a minute). The contact and their other sequences, audiences and activity are not touched. An exited entry with reason manual_exclusion and the person who acted is added to the activity.

Permissions: Requires the automations.work capability. Only the sender of the enrollment (the owner of the sequence's mailbox) or a user with the automations.manage capability can act on it; anyone else gets 403. A manager acts without access to the mailbox or to the contact.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Path Parameters

uuid*string

UUID of the email sequence. Get it from list_email_sequences.

Formatuuid
enrollmentUuid*string

UUID of the enrollment. Get it from list_email_sequence_enrollments.

Formatuuid

Response Body

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X PUT "https://api.easymailing.com/email_sequences/b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35/enrollments/1f7a3c9e-8b25-4d60-a4c1-5e2b9d6f0a78/actions/exclude" \  -H "X-Auth-Token: YOUR_API_KEY"
null