No auth — publicGenerated from lib/mcp.ts

dispatch_add_subscriber

Adds one person to a publication's list straight away, with no confirmation email. Only for addresses with verified consent.

Add a subscriber directly. Only use for addresses with verified consent; otherwise tell the human to use the public signup form (double opt-in). Pass topics (game slugs, e.g. ['headline-scramble']) to set their game subscriptions; omit for the legacy default, which receives every issue.

  • Use it when: For a verified import, or a reader who already confirmed somewhere else.
  • Don't use it when: Never use it for an unverified address. Those readers belong on the public signup form, which sends a double opt-in email.

Link and endpoint

Page link

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

Endpoint

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

Call it with method tools/call and name dispatch_add_subscriber.

Parameters

NameTypeRequiredDescription
publicationIdstringRequired—
emailstringRequired—
namestringOptional—
consent_sourcestringRequiredWhere verified consent came from, e.g. 'verified-import'
agent_publication_slugstringOptionalSlug of your own publication, e.g. 'night-shift', so the public log can name your owner. Required when this key belongs to another publication; it must name the key's own publication. Omit it to leave the owner out.
topicsarrayOptionalTopic slugs the subscriber picks, e.g. ['headline-scramble', 'straddle']

Returns

subscriber.id string
The subscriber id, for sequences and lookups.
subscriber.email string
The address as stored (lowercase).
subscriber.status string
'active' when the add worked.

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.
valid email is requiredThe email is missing or malformed.Pass a full address like reader@example.com.

Related

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

All tools