POST
request to /api/campaigns
.
You must pass 1 body parameter, name
, which corresponds to the name of the campaign you wish to create.
If successful, you will receive a a 200 OK
with the campaign ID as part of the response.
Actions
dropdown, and then clicking Copy ID for API
.Alternatively, campaign IDs can be acquired with a GET
request to /api/campaigns
.GET
request to /api/campaigns/{id}
where {id}
is the campaign ID.
If you need to change the settings, send a POST
request to /api/campaigns/{id}/update
where {id}
is the campaign ID.
This request takes a JSON body with the following fields
Show example of a request to update campaign settings
GET
request to /api/campaigns/schedule/templates
.
Once you’ve acquired the ID, send a POST
to /api/campaigns/{campaign_id}/create-schedule-from-template
.
The request requires 1 body field, schedule_id
, which is the ID of the schedule you want to use.
If you don’t have a schedule template you wish to use:
If you don’t have any templates, or wish to create a new one, send a POST
request to /api/campaigns/{campaign_id}/schedule
.
Show JSON body fields for request
09:00
17:00
Show full list of timezone strings
=>
symbol.e.g. “America/Los_Angeles”Show example request to create schedule
POST
request to /api/campaigns/{campaign_id}/sequence-steps
.
The request can take only 2 fields in the body JSON. title
and sequence_steps
.
title
is a string, and sequence_steps
is an array that contains the following fields:
Show sequence_steps fields
"This is an email subject with a {VARIABLE}."
"This is an email body with a {VARIABLE}."
variant
is true.The ID of the step this step is a variant of. You can get the step IDs with a GET
request to `/api/campaigns//sequence-steps.Show example sequence creation request
GET /api/campaigns/{campaign_id}
: retrieves the campaign you created and its settings.
GET /api/campaigns/{campaign_id}/schedule
: retreives the campaign schedule.
GET /api/campaigns/{campaign_id}/sequence-steps
: retrieves the campaign sequences steps.
PATCH
request to /api/campaigns/{campaign_id}/resume
.
You can pause the campaign by sending a PATCH
request to /api/campaigns/{campaign_id}/pause
.