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
| Name | Type | Description |
|---|---|---|
abTesting | boolean | Status of A/B Test. abTesting = false means it is disabled & abTesting = true… |
attachmentUrl | string | Absolute url of the attachment (no local file). Extension allowed: #### xlsx… |
emailExpirationDate | object | To reduce your carbon footprint, set an expiration date for your email. If… |
footer | string | Footer of the email campaign |
header | string | Header of the email campaign |
htmlContent | string | **Mandatory if htmlUrl and templateId are empty.** Body of the message (HTML).… |
htmlUrl | string | **Mandatory if htmlContent and templateId are empty.** URL to the message… |
increaseRate | integer | **Mandatory if ipWarmupEnable is set to true**. Set a percentage increase rate… |
initialQuota | integer | **Mandatory if ipWarmupEnable is set to true**. Set an initial quota greater… |
inlineImageActivation | boolean | Use true to embedded the images in your email. Final size of the email should… |
ipWarmupEnable | boolean | **Available for dedicated ip clients**. Set this to true if you wish to warm… |
mirrorActive | boolean | Use true to enable the mirror link |
name required | string | Name of the campaign |
params | object | Pass the set of attributes to customize the type classic campaign. For… |
previewText | string | Preview text or preheader of the email campaign |
recipients | object | Segment ids and List ids to include/exclude from campaign |
replyTo | string | Email on which the campaign recipients will be able to reply to |
scheduledAt | string | Sending UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). **Prefer to pass your… |
sendAtBestTime | boolean | Set this to true if you want to send your campaign at best time. |
sender required | object | Sender details including id or email and name (optional). Only one of either… |
splitRule | integer | Add the size of your test groups. **Mandatory if abTesting = true &… |
subject | string | Subject of the campaign. **Mandatory if abTesting is false**. Ignored if… |
subjectA | string | Subject A of the campaign. **Mandatory if abTesting = true**. subjectA &… |
subjectB | string | Subject B of the campaign. **Mandatory if abTesting = true**. subjectA &… |
tag | string | Tag of the campaign |
templateId | integer | **Mandatory if htmlContent and htmlUrl are empty.** Id of the transactional… |
toField | string | To personalize the **To** Field. If you want to include the first name and… |
unsubscriptionPageId | string | Enter an unsubscription page id. The page id is a 24 digit alphanumeric id… |
updateFormId | string | **Mandatory if templateId is used containing the {{ update_profile }} tag**.… |
utmCampaign | string | Customize the utm_campaign value. If this field is empty, the campaign name… |
utmContent | string | Customize the utm_content value. Appears on outgoing tracking links alongside… |
utmId | string | Customize the utm_id value. Appears on outgoing tracking links alongside… |
utmMedium | string | Customize the utm_medium value. When omitted or empty, the utm_medium entry… |
utmSource | string | Customize the utm_source value. When omitted or empty, the utm_source entry… |
utmTerm | string | Customize the utm_term value. Appears on outgoing tracking links alongside… |
winnerCriteria | open | click | Choose the metrics that will determinate the winning version. **Mandatory if… |
winnerDelay | integer | Choose 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:
{
"name": "brevo_api__create_email_campaign",
"arguments": {
"name": "…",
"sender": "…"
}
}Or connect the Brevo API server directly, which lists 291 tools including this one:
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 ….