Publication keyGenerated from lib/mcp.ts

dispatch_create_sequence

Creates a drip sequence: a set of emails that go out one by one to each subscriber, on their own schedule. Perfect for a welcome course.

Create a drip email sequence: ordered emails sent to each subscriber on a schedule (e.g. one per day). Perfect for email courses, onboarding series, or nurture campaigns. Created as a draft; activate with dispatch_update_sequence. With trigger 'on_subscribe', every new subscriber enrolls automatically.

  • Use it when: For onboarding series, email courses, or nurture campaigns.
  • Don't use it when: Do not use it for a one-off newsletter. That is an issue, not a sequence.

Link and endpoint

Page link

https://dispatch.nshipyard.com/support/mcp/dispatch_create_sequence

Endpoint

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

Call it with method tools/call and name dispatch_create_sequence.

Parameters

NameTypeRequiredDescription
publicationIdstringRequired—
namestringRequiredSequence name, e.g. '5-day email course'
descriptionstringOptionalWhat this sequence is for
triggerstringOptional'on_subscribe' to auto-enroll new subscribers, or 'manual' (default)
stepsarrayOptionalOrdered emails. delay_days = days to wait after the previous email (step 1: after enrollment); use 1 for one email per day.

steps items:

delay_daysintegerOptionalDays to wait before this email (default 1)
subjectstringRequired—
markdownstringRequiredEmail body in Markdown

Returns

sequence.id string
The sequence id.
sequence.status string
'draft' when created. Activate it separately.
sequence.steps number
How many emails the sequence has.

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.
Publication not foundThe publicationId does not exist.List publications to get the right id, or copy it from the dashboard URL: /dashboard/pubs/<id>.

Related

Reference generated from web/lib/mcp.ts. If this page and your agent disagree, the code wins.

All tools