Campaign flows are built in the dashboard UI — creating and editing flows via API is not available currently. The REST API provides operational control: triggering a run, pausing it, and resuming after a pause.
Endpoints
List campaigns
{id} for the routes below in code instead of copying it from the dashboard. Campaigns are ordered by their last change, most recent first.
The endpoint takes no query parameters.
Campaign id, a UUID. Use it as
{id} in the routes below. See Identifiers.DRAFT, SCHEDULED, RUNNING, PAUSED, PAUSED_ERROR, PAUSED_BALANCE, PAUSED_BUDGET or COMPLETED. The list does not count failed executions, so it never reports COMPLETED_PARTIAL — read that from GET /v1/campaigns/{id}/status below.How the campaign starts:
scheduled, event, manual or api. Only api campaigns can be started with the trigger route; for the others it answers 409.For
event campaigns, the event name that starts it — the name to send to POST /v1/events. null for every other trigger.
All codes are listed in the error code catalogue.
POST /v1/campaigns/{id}/trigger
Starts a run for a campaign configured with an API trigger in the dashboard. A campaign with a scheduled, event or manual trigger answers 409 conflict.
Optional. Prevents duplicate runs on retry — the same key within 24 hours returns the original run id instead of starting a new run.
A run is worked through in batches, shared with the other campaigns on the platform: with a large audience the last messages can leave minutes to hours after the
202. There is no fixed throughput; follow progress with GET /v1/campaigns/{id}/status and the delivery webhooks.
POST /v1/campaigns/{id}/pause
Stops enqueuing new contact executions. Executions already in progress complete their current node before stopping.
Responses
POST /v1/campaigns/{id}/resume
Resumes pending executions after a PAUSED, PAUSED_ERROR, PAUSED_BALANCE or PAUSED_BUDGET state.
Behavior
- Enqueues tasks only for executions still pending — contacts already completed or failed are not re-run.
- Per-contact idempotency keys prevent double sends if the worker crashes between resume and execution.
- Validates balance vs. estimated cost for remaining audience before accepting.
Responses
GET /v1/campaigns/{id}/status
Returns the current campaign state and a breakdown of per-contact execution counts.
Campaign-level state:
DRAFT, SCHEDULED, RUNNING, PAUSED, PAUSED_ERROR, PAUSED_BALANCE, PAUSED_BUDGET, COMPLETED, COMPLETED_PARTIAL.Contacts a step did not apply to — for example no consent, an opt-out, no address for the channel, or a step the engine can’t run yet.
Related
Campaigns in depth
Node types, execution states, triggers, and idempotency.
Billing API
Balance and usage — check before triggering large runs.
Webhooks
Receive campaign events in real time.