Email campaign API
Create an email campaign in draft status with POST /v3/emailCampaigns, then send it immediately with POST /v3/emailCampaigns/{campaignId}/sendNow.

How it works
# sender and one of htmlContent, htmlUrl or templateId are also required.
curl --request POST \
--url https://api.brevo.com/v3/emailCampaigns \
--header 'accept: application/json' \
--header 'api-key: YOUR_API_KEY' \
--header 'content-type: application/json' \
--data '{
"name": "Newsletter - May 2017"
}'
Draft an email campaign to my Customers list announcing our new pricing, with a subject line and preview text. Send a test to my own address only. Do not send the campaign.
# Left empty, emailTo sends the test to your whole test list, so always pass it.
curl --request POST \
--url https://api.brevo.com/v3/emailCampaigns/{campaignId}/sendTest \
--header 'accept: application/json' \
--header 'api-key: YOUR_API_KEY' \
--header 'content-type: application/json' \
--data '{
"emailTo": ["[email protected]"]
}'
# Filter with the status, statistics and limit parameters.
curl --request GET \
--url 'https://api.brevo.com/v3/emailCampaigns?status=sent&statistics=globalStats&limit=5' \
--header 'accept: application/json' \
--header 'api-key: YOUR_API_KEY'
List my last five sent email campaigns with open and click rates and write a three-line summary.
The draft prompt creates a draft and sends a test only, never the campaign.
Campaign steps
Create the draft
POST to /v3/emailCampaigns with a name, sender details and one of htmlContent, htmlUrl or templateId, which are mutually exclusive. Pass list or segment ids in recipients. The campaign is created in draft status by default.
Send a test
Call POST /v3/emailCampaigns/{campaignId}/sendTest with the addresses to test in emailTo. If emailTo is empty, the test goes to your entire test list. You can send a maximum of 50 test emails per day.
Send or schedule
Send an existing email campaign immediately with POST /v3/emailCampaigns/{campaignId}/sendNow. Set sendAtBestTime to true to send your campaign at best time.
Read the results
GET /v3/emailCampaigns with the statistics parameter (globalStats, linksStats or statsByDomain) returns data for events in the last 6 months. For older campaigns, use the Get Campaign Report endpoint.



