Skip to main content
brevo.createEmailCampaign create email campaign through the Brevo API.

Example

Inputs and output

Inputs:
IDs are positive integers; scheduledAt is an ISO 8601 timestamp with an offset; email and URL fields must be valid. splitRule is 1–50, winnerDelay is 1–168 hours, initialQuota is at least 2, and increaseRate is 0–100. Expiration is limited to 3,600 days, 480 weeks, or 120 months. Optional fields have no implicit default. Returns { id } for the draft campaign. name, sender, and one of htmlContent, htmlUrl, or templateId are required. Standard campaigns require subject. A/B campaigns require different subjectA and subjectB values; campaigns with recipients also require splitRule, and rules below 50 require winnerCriteria and winnerDelay. Scheduled campaigns require recipient list or segment IDs. IP warmup requires initialQuota of at least 2 and increaseRate. Pass { account } as the second argument to select a named Brevo account binding.