POST /campaigns/:id/schedule
Schedule a draft campaign. This populates the send queue with all subscribed contacts from the target contact book.Authentication
JWT Bearer token (dashboard auth)Request Body
| Field | Type | Required | Description |
|---|---|---|---|
scheduledAt | string | No | ISO 8601 datetime to schedule for |
batchSize | number | No | Emails per batch (1-100000, default 100) |
sendNow | boolean | No | Start sending immediately |
scheduledAt nor sendNow is provided, the campaign is scheduled for immediate processing.
Response
Example
Errors
| Status | Error | Cause |
|---|---|---|
400 | Can only schedule draft campaigns | Campaign is not in draft status |
404 | Campaign not found | Invalid ID or not owned by user |