Start a campaign
Start a draft. Emails then go out by themselves. Free.
POST https://api.won.dev/v1/email/campaigns/{id}/start
Starts a draft. From then on emails go out by themselves, in the recipients' office hours. The campaign sets aside the cost of about a week of sending; when the balance cannot cover even the first email, the call fails with insufficient_balance and the campaign stays a draft. Calling it again on a campaign that already runs changes nothing. Free.
- Billing: The call is free. Each email the campaign sends costs $0.03 (
email_sent), see Billing.
Parameters
id is part of the path. The others go in the JSON body. POST requests also take an Idempotency-Key header, see Sending a request twice.
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | yes | Campaign ID, such as cmp_7p1q8w3e5r4k2m9x. |
Response
Errors are described in Errors.
| Field | Type | Description |
|---|---|---|
data | object | |
data.id | string | Campaign ID, such as cmp_7p1q8w3e5r4k2m9x. |
data.name | string | |
data.sender_id | string | |
data.tenant_id | string | null | Its sender's tenant_id. Null: the account itself. |
data.status | draft | in_review | active | paused | completed | canceled | suspended | draft until started. active sends. paused waits for resume. completed, canceled and suspended are final. in_review is no longer given: a campaign left waiting for a review from before starts by itself within minutes. |
data.pause_reason | manual | insufficient_balance | max_cost | list_quality | sending_suspended | null | Why it is paused: manual, insufficient_balance (top up, then resume), max_cost (the campaign's own cap is reached), list_quality (too many invalid addresses; resuming accepts the list as it is), sending_suspended. |
data.steps | object[] | The sequence, in order. |
data.steps[].delay_days | integer | Sending days to wait after the email before. 0 on the first step. |
data.steps[].versions | object[] | The text of the step. More than one when versions are tested against each other. |
data.steps[].versions[].subject | string | null | Null on a follow-up that goes out as a reply in the thread of the first email. |
data.steps[].versions[].body | string | |
data.steps[].versions[].weight | integer | Its share of the recipients, relative to the other versions. |
data.steps[].versions[].stats | object | How this version did. |
data.steps[].versions[].stats.sent | integer | |
data.steps[].versions[].stats.opened | integer | Emails opened at least once. Counted only when track_opens is on. |
data.steps[].versions[].stats.clicked | integer | |
data.steps[].versions[].stats.replied | integer | Replies that came after this email and before the next one. |
data.schedule | object | When emails go out: on these days, between these hours, in the recipient's time. |
data.schedule.timezone | string | IANA time zone the hours are read in when a recipient's own is not known. |
data.schedule.days | (sun | mon | tue | wed | thu | fri | sat)[] | |
data.schedule.start_hour | integer | |
data.schedule.end_hour | integer | |
data.daily_limit | integer | The most emails the campaign sends on one day. |
data.stop_on_company_reply | boolean | One person at a company answers: nobody else at that company gets another email. |
data.track_opens | boolean | |
data.track_clicks | boolean | |
data.max_cost | number | null | The most the campaign may spend in its life, in US dollars. Null when not set. |
data.metadata | object | Your own keys and values, as you gave them. Empty when none were. |
data.stats | object | Where the campaign stands. |
data.stats.recipients | integer | People in the campaign. |
data.stats.waiting | integer | Still being checked, or waiting for their first email. |
data.stats.in_sequence | integer | Got at least one email and have more to come. |
data.stats.finished | integer | Got every email and did not answer. |
data.stats.replied | integer | |
data.stats.bounced | integer | |
data.stats.unsubscribed | integer | |
data.stats.excluded | integer | Left out or stopped: invalid address, suppressed, or stopped by you. |
data.stats.emails_sent | integer | |
data.stats.emails_opened | integer | |
data.stats.emails_clicked | integer | |
data.stats.spent | number | What the campaign has cost so far, in US dollars. |
data.stats.reserved | number | Set aside from the balance for the emails of the next days, in US dollars. |
data.test | boolean | Made with a test key: sending and replies are simulated. |
data.created_at | string | When it was created, as an ISO 8601 time in UTC. |
data.started_at | string | null | |
data.completed_at | string | null | |
data.next_check_after | integer | null | Seconds until something is likely to have changed. Asking sooner tells you nothing new. Null when the campaign is not running. |
notice | string | null | A plain sentence when there is something to know about this answer. Null otherwise. |
usage | object | Nothing is charged here. The balance, for reference. |
usage.cost | number | What this call cost, in US dollars. |
usage.balance | number | The balance left after this call, in US dollars. |
usage.replayed | boolean | True when this is a repeat of a request from the last 24 hours. Repeats are free. |
Example
curl https://api.won.dev/v1/email/campaigns/cmp_7p1q8w3e5r4k2m9x/start \
-H "Authorization: Bearer $WON_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'{
"data": {
"id": "cmp_7p1q8w3e5r4k2m9x",
"name": "US chair importers, November",
"sender_id": "snd_4k2m9x7p1q8w3e5r",
"tenant_id": null,
"status": "active",
"pause_reason": null,
"steps": [
{
"delay_days": 0,
"versions": [
{
"subject": "Office chairs for {{company}}",
"body": "Hi {{first_name|there}},\n\nI saw that {{company}} imports office seating. We make mesh task chairs in Leeds and ship to the US in four weeks.\n\nWould a price list be useful?\n\n{{sender_first_name}}",
"weight": 1,
"stats": {
"sent": 42,
"opened": 0,
"clicked": 0,
"replied": 3
}
}
]
},
{
"delay_days": 3,
"versions": [
{
"subject": null,
"body": "Hi {{first_name|there}},\n\nJust checking that my note reached the right person. Who looks after seating suppliers at {{company}}?\n\n{{sender_first_name}}",
"weight": 1,
"stats": {
"sent": 17,
"opened": 0,
"clicked": 0,
"replied": 1
}
}
]
}
],
"schedule": {
"timezone": "America/New_York",
"days": [
"mon",
"tue",
"wed",
"thu",
"fri"
],
"start_hour": 9,
"end_hour": 17
},
"daily_limit": 30,
"stop_on_company_reply": true,
"track_opens": false,
"track_clicks": false,
"max_cost": 25,
"metadata": {
"customer_id": "c_812"
},
"stats": {
"recipients": 120,
"waiting": 74,
"in_sequence": 38,
"finished": 0,
"replied": 4,
"bounced": 1,
"unsubscribed": 1,
"excluded": 2,
"emails_sent": 59,
"emails_opened": 0,
"emails_clicked": 0,
"spent": 1.74,
"reserved": 5.46
},
"test": false,
"created_at": "2026-11-18T14:03:10.000Z",
"started_at": "2026-11-18T14:03:11.000Z",
"completed_at": null,
"next_check_after": 300
},
"notice": null,
"usage": {
"cost": 0,
"balance": 48.08,
"replayed": false
}
}A test key (won_test_...) runs this in the sandbox: nothing is sent and nothing is charged.