Resume Sending Email Campaign
Resumes a paused campaign. Sending continues from the contact pagination cursor where it stopped, so recipients already sent to are not emailed twice. Requires sufficient project balance and an unblocked sender, the same as Send Email Campaign.
Authorization
Authorization In: header
Path Parameters
ID of the project that owns the campaign.
ID of the paused campaign to resume.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/projects/string/email-campaigns/string/resume"{ "id": "string", "createdAt": "string", "updatedAt": "string", "projectId": "string", "name": "string", "status": "DRAFT", "type": "STANDARD", "workflowId": "string", "workflowStepId": "string", "sentAt": "string", "contactListId": "string", "contactsFilterGroups": [], "lastSuccessContactId": "string", "lastSuccessContactCreatedAt": "string", "sendCursor": { "distinctId": "string", "sortValue": "string" }, "sendOrderByProperty": { "direction": "asc", "propertyKey": "string" }, "providerSendState": { "checkedAt": "string", "lanes": { "property1": { "deferred": true, "passed": 0, "slowed": { "at": "string", "finding": "string" } }, "property2": { "deferred": true, "passed": 0, "slowed": { "at": "string", "finding": "string" } } }, "pausedForProviders": true, "rescanFrom": { "cursor": { "distinctId": "string", "sortValue": "string" } }, "slowPass": true }, "abTestConfig": { "variable": "SUBJECT", "samplePercent": 20, "winnerMetric": "OPEN_RATE", "winnerWaitHours": 4, "winnerWaitUnit": "HOURS", "sendTimeDelayHours": 2, "sendTimeDelayUnit": "HOURS", "winnerMessageId": "string", "winnerSelectedAt": "string", "winnerRolloutAt": "string", "winnerWaitStartedAt": "string", "status": "AWAITING_SAMPLE", "samplePaginationEnd": 0 }, "utmConfig": { "enabled": true, "params": { "campaign": "", "content": "", "medium": "", "source": "", "term": "" } }, "sendCount": 0, "sendingTargetDurationMs": 0, "sendPaginationCount": 0, "messages": []}Send Email Campaign
Sends a campaign to its audience now, or schedules it. Pass `scheduledAt` (a future ISO 8601 timestamp with a timezone offset, at most one year ahead) to schedule a STANDARD campaign: it moves to SCHEDULED and starts sending at that time. Pass `scheduledAt: null` to send now. Omit it to use the message's stored `scheduledAt`: a future value schedules, and a value that has already passed sends now. A/B tests cannot be scheduled this way; they start now and the SEND_TIME variable times each variation. Only a DRAFT or SCHEDULED campaign can be sent. Calling this on a SCHEDULED campaign reschedules it, or sends it now with `scheduledAt: null`. A paused campaign continues with Resume Sending Email Campaign instead; any other status returns 400. The campaign is validated (missing subject, sender, or audience returns 400 with the specific problems listed) and the project must have an unblocked sender and enough balance. A scheduled send repeats those checks when it starts; if one fails, the campaign returns to DRAFT and nothing is sent. Sending runs in the background in batches, so a 200 means the send has started or been scheduled, not that it has finished; poll Get Email Campaign for progress. Emails already on their way cannot be recalled.
Stop Sending Email Campaign
Pauses a campaign that is currently sending. Any in-flight batch is cancelled and the campaign moves to PAUSED, keeping its pagination cursor so Resume Sending Email Campaign can pick up where it stopped. Emails already handed to the provider still go out.