Endpoint
Authentication
Requires your publishable widget key in theAuthorization header:
Request Body
The action to perform. Must be
"enroll" or "remove".The user’s external ID (the same ID used with
/users/identify).The UUID of the series automation. Found in the dashboard URL when viewing a series (
/dashboard/automation/{series_id}).JWT signed with your Identity Secret (HS256). Required when identity verification is enabled for your workspace. The token’s
user_id claim must match the user_id field above. See Identity Verification.Enroll a User
Enrolling a user adds them to the first step of the series. The system respects:- Send windows and business day constraints configured on the series
- Per-user timezone when available
- Re-enrollment rules (if enabled on the series, users can re-enter after completing it)
- Duplicate prevention via unique constraints
Example
Remove a User
Removing a user deletes all their pending recipient rows from the series, effectively stopping them from receiving any further emails. Emails that have already been sent are not affected.Example
Error Responses
| Status | Error | Description |
|---|---|---|
| 400 | action, user_id, and series_id are required | Missing required fields |
| 400 | action must be "enroll" or "remove" | Invalid action value |
| 400 | Series must be active to enroll users | Cannot enroll into a draft, paused, or completed series |
| 400 | The specified automation is not a series | The ID points to a broadcast or other automation type |
| 404 | User not found | The user_id has not been identified yet. Call /users/identify first. |
| 404 | Series not found | No series with that ID exists for this organization |
Notes
- The user must be identified via the
/users/identifyendpoint before they can be enrolled in a series. Theuser_idmust match the external ID used during identification. - Enrollment respects the series’ scheduling rules. The
scheduled_fortimestamp in the response shows when the first email will be sent. - Removing a user only cancels pending (unsent) emails. Previously sent emails are unaffected.
- If the series has re-enrollment disabled and the user has already completed it, the enroll action returns a success response with a message explaining why re-enrollment is not possible.