Home / Servers / Brevo API / create_email_campaign

Create an email campaign

An MCP tool from the Brevo API server, hosted on mcp.hjlabs.in.

Create an email campaign Create a new email campaign. The campaign requires at minimum a name and sender details, and is created in draft status by default. You must provide email content via one of three mutually exclusive… [POST /emailCampaigns]

Name on the gateway: brevo_api__create_email_campaign · may change things.

Parameters

NameTypeDescription
abTestingbooleanStatus of A/B Test. abTesting = false means it is disabled & abTesting = true…
attachmentUrlstringAbsolute url of the attachment (no local file). Extension allowed: #### xlsx…
emailExpirationDateobjectTo reduce your carbon footprint, set an expiration date for your email. If…
footerstringFooter of the email campaign
headerstringHeader of the email campaign
htmlContentstring**Mandatory if htmlUrl and templateId are empty.** Body of the message (HTML).…
htmlUrlstring**Mandatory if htmlContent and templateId are empty.** URL to the message…
increaseRateinteger**Mandatory if ipWarmupEnable is set to true**. Set a percentage increase rate…
initialQuotainteger**Mandatory if ipWarmupEnable is set to true**. Set an initial quota greater…
inlineImageActivationbooleanUse true to embedded the images in your email. Final size of the email should…
ipWarmupEnableboolean**Available for dedicated ip clients**. Set this to true if you wish to warm…
mirrorActivebooleanUse true to enable the mirror link
name requiredstringName of the campaign
paramsobjectPass the set of attributes to customize the type classic campaign. For…
previewTextstringPreview text or preheader of the email campaign
recipientsobjectSegment ids and List ids to include/exclude from campaign
replyTostringEmail on which the campaign recipients will be able to reply to
scheduledAtstringSending UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). **Prefer to pass your…
sendAtBestTimebooleanSet this to true if you want to send your campaign at best time.
sender requiredobjectSender details including id or email and name (optional). Only one of either…
splitRuleintegerAdd the size of your test groups. **Mandatory if abTesting = true &…
subjectstringSubject of the campaign. **Mandatory if abTesting is false**. Ignored if…
subjectAstringSubject A of the campaign. **Mandatory if abTesting = true**. subjectA &…
subjectBstringSubject B of the campaign. **Mandatory if abTesting = true**. subjectA &…
tagstringTag of the campaign
templateIdinteger**Mandatory if htmlContent and htmlUrl are empty.** Id of the transactional…
toFieldstringTo personalize the **To** Field. If you want to include the first name and…
unsubscriptionPageIdstringEnter an unsubscription page id. The page id is a 24 digit alphanumeric id…
updateFormIdstring**Mandatory if templateId is used containing the {{ update_profile }} tag**.…
utmCampaignstringCustomize the utm_campaign value. If this field is empty, the campaign name…
utmContentstringCustomize the utm_content value. Appears on outgoing tracking links alongside…
utmIdstringCustomize the utm_id value. Appears on outgoing tracking links alongside…
utmMediumstringCustomize the utm_medium value. When omitted or empty, the utm_medium entry…
utmSourcestringCustomize the utm_source value. When omitted or empty, the utm_source entry…
utmTermstringCustomize the utm_term value. Appears on outgoing tracking links alongside…
winnerCriteriaopen | clickChoose the metrics that will determinate the winning version. **Mandatory if…
winnerDelayintegerChoose the duration of the test in hours. Maximum is 7 days, pass 24*7 = 168…

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "brevo_api__create_email_campaign",
  "arguments": {
    "name": "…",
    "sender": "…"
  }
}

Or connect the Brevo API server directly, which lists 291 tools including this one:

Run in your terminal
claude mcp add --transport http hj-brevo-api https://mcp.hjlabs.in/mcp/brevo-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the create an email campaign tool with abTesting set to ….

More from Brevo API