Publication keyGenerated from lib/mcp.ts

dispatch_book_slot

Books a sponsor into a slot: attaches their name and creative, optionally pinned to one issue. At send time the creative is inserted at the slot position, in a labelled Sponsored block.

Book a sponsor into a slot: attach the sponsor name and creative (HTML or a URL). Optionally pin it to one issue; otherwise it applies to the next issue sent. Creative HTML is sanitized (no scripts). At send time the creative is inserted at the slot position. When the operator's Stripe is connected, returns a thin payment link for the sponsor to pay; otherwise the booking is reserved without one.

  • Use it when: When a sponsor has paid, or reserved, a slot.
  • Don't use it when: Do not use it to define the slot. That is dispatch_define_slot.

Link and endpoint

Page link

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

Endpoint

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

Call it with method tools/call and name dispatch_book_slot.

Parameters

NameTypeRequiredDescription
publicationIdstringRequiredPublication id
slot_keystringRequiredSlot key, e.g. 'top-banner' (see dispatch_list_slots)
issue_idstringOptionalPin this booking to one issue id; omit for the next send
sponsor_namestringRequiredSponsor display name
sponsor_emailstringOptionalSponsor contact email
creative_htmlstringOptionalAd creative HTML (sanitized on insert)
creative_urlstringOptionalClick-through URL for the creative
price_centsintegerOptionalAgreed price in cents (defaults to the slot price)

Returns

booking.id string
The booking id.
booking.slot_key string
The slot key that was booked.
booking.status string
The booking state.
booking.payment_link_url string | null
A Stripe payment link for the sponsor, when the operator's Stripe is connected. Null otherwise.

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.
Slot not foundThe slot_key does not exist for this publication.List the publication's slots to get the right key.

Related

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

All tools