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_slotEndpoint
POST https://dispatch.nshipyard.com/api/mcpCall it with method tools/call and name dispatch_book_slot.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
publicationId | string | Required | Publication id |
slot_key | string | Required | Slot key, e.g. 'top-banner' (see dispatch_list_slots) |
issue_id | string | Optional | Pin this booking to one issue id; omit for the next send |
sponsor_name | string | Required | Sponsor display name |
sponsor_email | string | Optional | Sponsor contact email |
creative_html | string | Optional | Ad creative HTML (sanitized on insert) |
creative_url | string | Optional | Click-through URL for the creative |
price_cents | integer | Optional | Agreed price in cents (defaults to the slot price) |
Returns
booking.idstring- The booking id.
booking.slot_keystring- The slot key that was booked.
booking.statusstring- The booking state.
booking.payment_link_urlstring | null- A Stripe payment link for the sponsor, when the operator's Stripe is connected. Null otherwise.
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. |
Slot not found | The 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.