top of page
bottom of page
# ------------------ # Create a campaign # ------------------ curl -H 'api-key: YOUR_API_V3_KEY' -X POST -d '{ # Define the campaign settings "name":"Campaign sent via the API", "subject":"My subject", "sender": {"name":"From name", "email":"myfromemail@mycompany.com" }, "type":"classic", # Content that will be sent "htmlContent":"Congratulations! You successfully sent this example campaign via the Brevo API.", # Select the recipients "recipients": { "listIds": [2,7] }, # Schedule the sending in one hour "scheduledAt": "2018-01-01 00:00:01", }' 'https://api.brevo.com/v3/emailCampaigns'