API delle campagne email
Crea una campagna email in stato di bozza con POST /v3/emailCampaigns, poi inviala subito con POST /v3/emailCampaigns/{campaignId}/sendNow.

Come funziona
# 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.
Il prompt della bozza crea una bozza e invia solo un test, mai la campagna.
API delle campagne email: i fatti
Campagne. Crea una campagna email con POST /v3/emailCampaigns.
API. Invia un'email transazionale con POST https://api.brevo.com/v3/smtp/email e la tua chiave API nell'header api-key.
Webhook. Brevo invia con POST gli eventi email all'URL del tuo webhook. Il numero di webhook, di marketing e transazionali, è limitato a 40.
Hosting in UE. I server di hosting su cui Brevo elabora e archivia i propri database si trovano tutti nell'Unione Europea. Brevo utilizza OVH in Francia e Germania e i dati sono archiviati su Google Cloud in Belgio.