Skip to main content
POST
Create a campaign

Authorizations

Authorization
string
header
required

API key for authentication

Headers

Idempotency-Key
string

A unique key, such as a UUID, that makes retrying this request safe: a retry with the same key and body returns the original response without running the operation again. Keys are kept for 24 hours after the request completes.

Maximum string length: 255
Example:

"8e03978e-40d5-43e8-bc93-6894a57f9324"

Body

application/json
target
enum<string>
required

What to do once the campaign is created. draft stores it, to be finished in the app or edited later. review also generates the message of every recipient, to read and edit once the campaign is in_review. launch is not supported yet.

Available options:
draft,
review,
launch
Example:

"draft"

recipients
object
required

Who receives the campaign: a list of contacts, or the contacts of its group. Between 1 and 5,000 recipients, all people or all companies.

steps
object[]
required

The steps of the campaign: the first email, then its follow-ups. More than one step needs sequences on your plan, and a sender that supports them (not Gmail).

Required array length: 1 - 100 elements
groupId
string

The group to create the campaign in. Its text and numeric custom fields can be used as variables. Leave it out to send to a list of contacts.

Required string length: 40
Example:

"grp_bc984b3f-0386-434d-82d7-a91eb6badd71"

sender
object

The sender of every step. Set either a root sender for every step, or a sender on every step, not both. Without any, every step is sent from the sender you last used.

Example:
stopOnReply
boolean

Whether the remaining steps stop for a recipient who replied. Defaults to true.

Example:

true

scheduledAt
string<date-time>

When to send, with launch. Not supported yet.

Maximum string length: 64
messages
object[]

Personalized messages, with review and launch. Not supported yet.

Maximum array length: 10000

Response

The campaign created, with its steps.

data
object
required

A campaign: one or more emails, each a step, sent to a list of people or companies.

Example:
deprecations
string[]
Example: