Publication keyGenerated from lib/mcp.ts
dispatch_enroll_sequence
Puts one subscriber into a drip sequence. They then get its emails on schedule, starting from step one.
Enroll one subscriber (by id or email) into an active drip sequence. The subscriber must be active. Idempotent: already-enrolled subscribers are returned as-is.
- Use it when: To start one reader on a course, or to re-start someone who finished.
- Don't use it when: Do not use it for a sequence that is still a draft. Activate it first.
Link and endpoint
Page link
https://dispatch.nshipyard.com/support/mcp/dispatch_enroll_sequenceEndpoint
POST https://dispatch.nshipyard.com/api/mcpCall it with method tools/call and name dispatch_enroll_sequence.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
publicationId | string | Required | — |
sequenceId | string | Required | — |
subscriber_id | string | Optional | Subscriber id |
email | string | Optional | Subscriber email (alternative to subscriber_id) |
Returns
enrollment.idstring- The enrolment id.
enrollment.statusstring- The enrolment state.
enrollment.nextRunAtstring- When the next email is due.
reenrolledboolean- True when a finished enrolment was rewound to step one.
Errors
| Error | When it happens | Fix |
|---|---|---|
Not authorized for this publication | The key belongs to a different publication. | Use the publication key shown on that publication's Overview page, or the master key. |
Subscriber not found | The email is not on this publication's list. | Add the subscriber first, or check the spelling of the address. |
Sequence not found | The sequenceId does not belong to this publication. | List the publication's sequences to get the right id. |
subscriber_id or email is required | Neither was given. | Pass one: the subscriber id or their email. |
Related
Reference generated from web/lib/mcp.ts. If this page and your agent disagree, the code wins.