Skip to content
beekeepbeekeepbeekeep docs

Email templates

MCP tool reference: email templates.

Reusable email templates, their images and the workspace email theme.

List email templates · Read · every plan

List this workspace’s email templates, newest first: id, name, subject and Drone slots. Use get_email_template for a template’s body.

Name Type Required Description
limit integer minimum 1 maximum 200
cursor string nextCursor from the previous page.
Field Type Description
templates object[]
templates[].id string
templates[].name string
templates[].description string
templates[].version number
templates[].subject string
templates[].slots object[]
templates[].updatedAt string
nextCursor string | null

Get email template · Read · every plan

Read one email template, by id or name, with its body and Drone slots. Body syntax: paragraphs separated by a blank line; lists with ’- ’ or ’1. ’ on every line; bold, italic, link text; a button is a paragraph holding only Label{.button}. Merge fields: {{contact.name}}, {{contact.firstName}}, {{contact.email}}, {{contact.role}}, {{engagement.name}}, {{engagement.clientName}}, {{engagement.stageName}}, {{workspace.name}}, {{sender.name}}, {{sender.firstName}}, {{sender.email}}. Add a fallback with {{contact.firstName | default: “there”}}. The subject takes merge fields but no Markdown. Drone slots: declare a slot in slots (name, label, guidance for Drone, maxLength) and use it as {{drone.}}; Drone fills it with plain text when it sends. Merge fields can’t go inside link addresses. Images: a block of its own, ![description](asset:), or linked ![description](asset:). Add {.header} to make it the email’s header: it must be the first block and takes the place of the workspace’s name at the top. Image ids come from list_email_images; people upload images in the app. A template with no header of its own shows the workspace’s default header, if it has one.

Name Type Required Description
templateId string The template’s id, from list_email_templates. at most 200 characters
templateName string Or the template’s name (case-insensitive), when you don’t have its id. at most 120 characters
Field Type Description
template object
template.id string
template.name string
template.description string
template.version number
template.subject string
template.slots object[]
template.updatedAt string
template.body string
template.theme object | null

List email images · Read · every plan

List the images in this workspace’s email image library, newest first: id, file name, type and size in pixels, plus the workspace’s default email header. Use an id in a template body as description. Images are uploaded in the app.

Name Type Required Description
limit integer minimum 1 maximum 200
cursor string nextCursor from the previous page.
Field Type Description
images object[]
images[].id string
images[].name string
images[].contentType string
images[].width number
images[].height number
images[].createdAt string
images[].palette string[] Its main colors, then its vivid accents: use them to match an email theme to it.
nextCursor string | null
defaultHeader object | null Shown at the top of templates without a header of their own; null when the workspace has none.

Get email theme · Read · every plan

Read the workspace’s email theme, a template’s own theme (with templateId), and the theme emails actually render with. An email theme sets the button color (accent), text and background colors, the header band, an email-safe font and the button shape, with light and dark versions. Text colors are worked out to stay readable unless set; a set color that doesn’t reach 4.5:1 contrast is refused with one that would. To match a header image, use the colors list_email_images gives for it (headerPalette here).

Name Type Required Description
templateId string at most 200 characters
Field Type Description
workspace object | null What the workspace sets; null when nothing.
template object | null What the template sets over the workspace’s; null when nothing.
effective object What emails render with: the template’s over the workspace’s over the built-in look.
effective.font "sans" | "serif" | "helvetica" | "rounded" | "mono"
effective.buttonShape "square" | "rounded" | "pill"
effective.light object
effective.dark object
headerPalette string[] | null The colors of the workspace’s default header image; null without one.

Update workspace email theme · Write · paid plans and the trial (mcp:write) · Asks you to confirm before it runs · Hard to undo: it removes data or reaches people outside beekeep

Change the workspace’s email theme, which every template email uses unless the template sets its own. Leave a field out to keep it; null clears it; theme null clears the whole theme. Only the workspace’s owner can do this, and it needs their approval. An email theme sets the button color (accent), text and background colors, the header band, an email-safe font and the button shape, with light and dark versions. Text colors are worked out to stay readable unless set; a set color that doesn’t reach 4.5:1 contrast is refused with one that would. To match a header image, use the colors list_email_images gives for it (headerPalette here).

Name Type Required Description
theme object | null yes
Field Type Description
workspace object | null
effective object
effective.font "sans" | "serif" | "helvetica" | "rounded" | "mono"
effective.buttonShape "square" | "rounded" | "pill"
effective.light object
effective.dark object

Create email template · Write · paid plans and the trial (mcp:write)

Create a reusable email template for sending to contacts. Names are unique in the workspace. Body syntax: paragraphs separated by a blank line; lists with ’- ’ or ’1. ’ on every line; bold, italic, link text; a button is a paragraph holding only Label{.button}. Merge fields: {{contact.name}}, {{contact.firstName}}, {{contact.email}}, {{contact.role}}, {{engagement.name}}, {{engagement.clientName}}, {{engagement.stageName}}, {{workspace.name}}, {{sender.name}}, {{sender.firstName}}, {{sender.email}}. Add a fallback with {{contact.firstName | default: “there”}}. The subject takes merge fields but no Markdown. Drone slots: declare a slot in slots (name, label, guidance for Drone, maxLength) and use it as {{drone.}}; Drone fills it with plain text when it sends. Merge fields can’t go inside link addresses. Images: a block of its own, ![description](asset:), or linked ![description](asset:). Add {.header} to make it the email’s header: it must be the first block and takes the place of the workspace’s name at the top. Image ids come from list_email_images; people upload images in the app. A template with no header of its own shows the workspace’s default header, if it has one.

Name Type Required Description
name string yes at most 120 characters
description string When to use it. at most 500 characters
subject string yes at most 200 characters
body string yes at most 20000 characters
slots object[] at most 10 items
slots[].name string yes
slots[].label string yes at most 120 characters
slots[].guidance string Tells Drone what to write in this slot. at most 500 characters
slots[].maxLength integer Default 500. minimum 1 maximum 2000
slots[].multiline boolean Default false: line breaks become spaces.
theme object This template’s own look over the workspace’s email theme (see get_email_theme).
theme.font "sans" | "serif" | "helvetica" | "rounded" | "mono" Email-safe font: sans (Modern sans), serif (Classic serif), helvetica (Helvetica / Arial), rounded (Rounded), mono (Monospace).
theme.buttonShape "square" | "rounded" | "pill"
theme.light object Colors for mail apps in light mode.
theme.dark object Colors for mail apps in dark mode. Worked out from the light colors unless set.
Field Type Description
template object
template.id string
template.name string
template.description string
template.version number
template.subject string
template.slots object[]
template.updatedAt string
template.body string
template.theme object | null

Update email template · Write · paid plans and the trial (mcp:write)

Change an email template’s name, description, subject, body or Drone slots. Leave a field out to keep it; slots replaces the whole list; description null clears it. Content changes make a new version; a theme change doesn’t. Body syntax: paragraphs separated by a blank line; lists with ’- ’ or ’1. ’ on every line; bold, italic, link text; a button is a paragraph holding only Label{.button}. Merge fields: {{contact.name}}, {{contact.firstName}}, {{contact.email}}, {{contact.role}}, {{engagement.name}}, {{engagement.clientName}}, {{engagement.stageName}}, {{workspace.name}}, {{sender.name}}, {{sender.firstName}}, {{sender.email}}. Add a fallback with {{contact.firstName | default: “there”}}. The subject takes merge fields but no Markdown. Drone slots: declare a slot in slots (name, label, guidance for Drone, maxLength) and use it as {{drone.}}; Drone fills it with plain text when it sends. Merge fields can’t go inside link addresses. Images: a block of its own, ![description](asset:), or linked ![description](asset:). Add {.header} to make it the email’s header: it must be the first block and takes the place of the workspace’s name at the top. Image ids come from list_email_images; people upload images in the app. A template with no header of its own shows the workspace’s default header, if it has one.

Name Type Required Description
templateId string yes at most 200 characters
name string at most 120 characters
description string | null at most 500 characters
subject string at most 200 characters
body string at most 20000 characters
slots object[] at most 10 items
slots[].name string yes
slots[].label string yes at most 120 characters
slots[].guidance string Tells Drone what to write in this slot. at most 500 characters
slots[].maxLength integer Default 500. minimum 1 maximum 2000
slots[].multiline boolean Default false: line breaks become spaces.
theme object | null Changes to this template’s own look over the workspace’s email theme: leave a field out to keep it, null to clear it; theme null drops the template’s own theme.
Field Type Description
template object
template.id string
template.name string
template.description string
template.version number
template.subject string
template.slots object[]
template.updatedAt string
template.body string
template.theme object | null

Delete email template · Write · paid plans and the trial (mcp:write) · Asks you to confirm before it runs · Hard to undo: it removes data or reaches people outside beekeep

Delete an email template. Emails already sent from it stay in the log. Needs the person’s approval.

Name Type Required Description
templateId string yes at most 200 characters
Field Type Description
templateId string
deleted true

Preview email template · Read · every plan

Render an email template as plain text without sending it, optionally for a contact and engagement. Values that would be missing show as [field] and are listed in missing: a send would be refused until they’re filled or given a default.

Name Type Required Description
templateId string The template’s id, from list_email_templates. at most 200 characters
templateName string Or the template’s name (case-insensitive), when you don’t have its id. at most 120 characters
contactId string at most 200 characters
engagementId string at most 200 characters
slots object Drone slot values by slot name: plain text, within each slot’s maxLength.
Field Type Description
notice string
subject string
text string
missing string[]