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_subscriberEndpoint
POST https://dispatch.nshipyard.com/api/mcpCall it with method tools/call and name dispatch_add_subscriber.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
publicationId | string | Required | — |
email | string | Required | — |
name | string | Optional | — |
consent_source | string | Required | Where verified consent came from, e.g. 'verified-import' |
agent_publication_slug | string | Optional | Slug 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. |
topics | array | Optional | Topic slugs the subscriber picks, e.g. ['headline-scramble', 'straddle'] |
Returns
subscriber.idstring- The subscriber id, for sequences and lookups.
subscriber.emailstring- The address as stored (lowercase).
subscriber.statusstring- 'active' when the add worked.
Errors
| Error | When it happens | Fix |
|---|---|---|
Not authorized for this publication | The key belongs to a different publication. | Use the publication key shown on that publication's Overview page, or the master key. |
valid email is required | The 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.