Master key onlyGenerated from lib/mcp.ts

dispatch_create_publication

Creates a whole new newsletter: name, sender, schedule, and its own API key. The key it returns is the agent's login for that publication, so save it immediately.

Create a new newsletter publication. Returns the publication id, a scoped API key, the public URL, and the embed snippet for the signup form. Pass resend_api_key to send through the operator's own Resend account (BYOK, zero sending cost to us); omit it for Dispatch managed sending. Requires the master key.

  • Use it when: When an operator asks for a new newsletter, or an agent is setting one up from scratch.
  • Don't use it when: Do not use it to make a second copy of a publication that already exists. List publications first.

Link and endpoint

Page link

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

Endpoint

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

Call it with method tools/call and name dispatch_create_publication.

Parameters

NameTypeRequiredDescription
namestringRequiredPublication name, e.g. 'Toronto Housing Brief'
fromNamestringRequiredSender name shown on emails, e.g. 'Housing Bot'
taglinestringOptionalOne-line pitch shown under the name
descriptionstringOptionalLonger about text
resend_api_keystringOptionalOptional: the operator's own Resend API key (re_...) for BYOK sending
timezonestringOptionalIANA timezone for the home city, e.g. 'America/Toronto'. Wall-clock scheduled_at values are interpreted in it.
sending_subdomainstringOptionalSending subdomain for reputation isolation, e.g. 'toronto' sends from toronto.<sending domain>
autonomystringOptional'draft' (agent composes, never sends), 'review' (agent sends queue for human approval), or 'auto' (default)
cadencestringOptionalSend rhythm, e.g. 'daily'
send_time_localstringOptionalLocal send moment as HH:MM, e.g. '06:00'

Returns

id string
The publication id. Use it in every later call.
api_key string
The scoped key (dp_…). Shown once only. Save it now.
publication_url string
The public page, e.g. dispatch.nshipyard.com/<slug>.
embed_snippet string
The signup form script to paste on any site.
sending_provider string
'managed' (Dispatch sends) or 'byok' (your Resend key).

Errors

ErrorWhen it happensFix
Master key requiredA publication key (dp_…) was used for a master-only tool.Use the master key. If you do not have it, ask the Dispatch operator; a publication key cannot do this.
Invalid timezone: …The timezone is not a real IANA name.Use a name like America/Toronto, not an abbreviation like EST.
autonomy must be 'draft', 'review', or 'auto'An autonomy value outside those three was passed.Pick draft (never sends), review (human approves), or auto (sends normally).

Related

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

All tools