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_sequence

Endpoint

POST https://dispatch.nshipyard.com/api/mcp

Call it with method tools/call and name dispatch_enroll_sequence.

Parameters

NameTypeRequiredDescription
publicationIdstringRequired—
sequenceIdstringRequired—
subscriber_idstringOptionalSubscriber id
emailstringOptionalSubscriber email (alternative to subscriber_id)

Returns

enrollment.id string
The enrolment id.
enrollment.status string
The enrolment state.
enrollment.nextRunAt string
When the next email is due.
reenrolled boolean
True when a finished enrolment was rewound to step one.

Errors

ErrorWhen it happensFix
Not authorized for this publicationThe key belongs to a different publication.Use the publication key shown on that publication's Overview page, or the master key.
Subscriber not foundThe email is not on this publication's list.Add the subscriber first, or check the spelling of the address.
Sequence not foundThe sequenceId does not belong to this publication.List the publication's sequences to get the right id.
subscriber_id or email is requiredNeither 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.

All tools