Create a campaign
Campaigns
Create a campaign
Create a draft marketing campaign and its associated email message, with options for audience targeting, scheduling, and grouping in Loops.
POST
Create a campaign
This endpoint creates a draft campaign and an empty email message in one step.
Use the returned
emailMessageId with
Update an email message to set
subject, sender, preview text, and LMX content. The audience (mailing list,
segment, or filter), group, and scheduling can be set on create or later via
Update a campaign.
Request
Body
The campaign name.
The ID of the group to add this campaign to. Defaults to the team’s default
group when omitted.
The ID of the mailing list to send to.
The ID of an audience segment. Setting
this clears any
audienceFilter.An inline audience filter. See Get an audience segment for the filter structure.
When the campaign should send.
Response
Success
Returns201 Created.
The campaign ID.
The campaign name.
The initial campaign status (
Draft).ISO 8601 timestamp for when the campaign was created.
ISO 8601 timestamp for when the campaign was last updated.
The ID of the empty email message created for this campaign.
The initial content revision ID for the email message. Pass this as
expectedRevisionId on your first email message update.The ID of the campaign group this campaign belongs to.
The ID of the mailing list this campaign sends to, if set.
The ID of the audience segment this campaign targets, if set.
The inline audience filter, if set.
When the campaign is scheduled to send.
Error
If the request body is invalid, the campaign group is not found, or no sending domain is configured, a400 Bad Request is returned.
A 404 Not Found is returned if the referenced mailing list or audience segment
does not exist.
If the API key is invalid (or content API is not enabled for your team), a
401 Unauthorized is returned.
An error message describing what went wrong.
Last modified on June 29, 2026

