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_publicationEndpoint
POST https://dispatch.nshipyard.com/api/mcpCall it with method tools/call and name dispatch_create_publication.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Required | Publication name, e.g. 'Toronto Housing Brief' |
fromName | string | Required | Sender name shown on emails, e.g. 'Housing Bot' |
tagline | string | Optional | One-line pitch shown under the name |
description | string | Optional | Longer about text |
resend_api_key | string | Optional | Optional: the operator's own Resend API key (re_...) for BYOK sending |
timezone | string | Optional | IANA timezone for the home city, e.g. 'America/Toronto'. Wall-clock scheduled_at values are interpreted in it. |
sending_subdomain | string | Optional | Sending subdomain for reputation isolation, e.g. 'toronto' sends from toronto.<sending domain> |
autonomy | string | Optional | 'draft' (agent composes, never sends), 'review' (agent sends queue for human approval), or 'auto' (default) |
cadence | string | Optional | Send rhythm, e.g. 'daily' |
send_time_local | string | Optional | Local send moment as HH:MM, e.g. '06:00' |
Returns
idstring- The publication id. Use it in every later call.
api_keystring- The scoped key (dp_…). Shown once only. Save it now.
publication_urlstring- The public page, e.g. dispatch.nshipyard.com/<slug>.
embed_snippetstring- The signup form script to paste on any site.
sending_providerstring- 'managed' (Dispatch sends) or 'byok' (your Resend key).
Errors
| Error | When it happens | Fix |
|---|---|---|
Master key required | A 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.