List the enrollments of an email sequence
GET /email_sequences/{uuid}/enrollments
/email_sequences/{uuid}/enrollmentsLists the contacts enrolled in a sequence, newest first, with the state of each enrollment, its next email and send time and, when finished, why.
When to use: To see who is in a sequence and how each is going, to find the uuid of an enrollment before pausing, resuming, excluding or retrying it, or to check that enroll_contacts_in_email_sequence worked.
When not to use: For the history of events (emails sent, replies, pauses) use list_email_sequence_activity. For totals use get_email_sequence_statistics. This lists one sequence at a time: there is no operation that lists the sequences a given contact is in.
Filters: - search: part of the name or address of the recipient, case-insensitive (up to 200 characters). Ignored without the contacts.read capability, because it would reveal who is enrolled.
Sorting: fixed, newest first.
Pagination: page and itemsPerPage (default 25, maximum 100); the response gives the total in hydra:totalItems.
Permissions: Requires the automations.read capability. Names and addresses of recipients are returned only to users who also have the contacts.read capability; without it privacy is aggregate and they are null.
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
UUID of the email sequence. Get it from list_email_sequences.
uuidQuery Parameters
Part of the name or address of the recipient. Ignored without the contacts.read capability.
length <= 200Page number, starting at 1.
1 <= value1Enrollments per page. Default 25, maximum 100.
1 <= value <= 10025Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://api.easymailing.com/email_sequences/b3f1c8a2-5d47-4e90-9a16-7c2e0d4f8b35/enrollments?search=ana&page=1&itemsPerPage=25" \ -H "X-Auth-Token: YOUR_API_KEY"[ { "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "sequence": "/entity/1", "contact": "/entity/1", "contact_name": "string", "recipient_email": "string", "sender": { "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "mailbox_address": "string" }, "revision": 1, "status": "scheduled", "current_email": 1, "next_send_at": "2019-08-24T14:15:22Z", "requested_start_at": "2019-08-24T14:15:22Z", "effective_start_at": "2019-08-24T14:15:22Z", "exit_reason": "completed", "exited_at": "2019-08-24T14:15:22Z", "privacy": "full", "actionable": true, "emails_sent": 0, "next_email": { "position": 1, "subject": "string" } }]