Skip to Content
Won.dev
DocumentationAPI reference
Cold email API

Buy sending domains

Buy sending domains for a sender: 3 warmed-up mailboxes and 45 emails a day each, $27 a month.

Buys sending domains for one sender: each comes with 3 mailboxes that are already warmed up, sends for that sender alone, and adds 45 emails a day to what it can send. Nothing to set up: no DNS, no mailbox to sign in to, and replies are read for you. A domain costs $0.9 a day, 30 days at a time from the renewal date on. All domains renew on the same day of the month, so the first period runs from today to that day: 15 to 45 days, paid now. Each renews by itself from your balance 3 days before period_end; if the balance cannot cover it, it is tried again until the day before, and the domain is then given up. Without confirm: true this only quotes the price, the date and how many are in stock, and changes nothing. A new domain is ready within minutes (domain.ready) and sends 15 emails on its first day, reaching full speed in 5 days. Campaigns of the sender that were paused for no_domains go on by themselves once it is. Fails with out_of_stock when not enough are for sale, before anything is charged. Up to 10 at once. A test key only gets the quote: in the sandbox every sender has a simulated domain already. Each call that confirms buys again: send an Idempotency-Key to make a retry safe.

  • Billing: email_domain_day $0.9: one sending domain for one day. With confirm: true the days up to period_end are charged at once, then 30 at a time, 3 days before each renewal. Without it the call only quotes, for free.

A test key (won_test_...) runs this in the sandbox: nothing is sent and nothing is charged.

POST
/email/domains

Authorization

apiKey
headerAuthorizationBearer <API key>

Authorization: Bearer won_live_..., a key from the console.

Header Parameters

Idempotency-Key?string

Any unique string. A retry with the same key and the same body returns the first response and is not charged again.

Lengthlength <= 255

Request Body

application/json
  1. body
sender_id*string

The sender to buy them for, such as snd_4k2m9x7p1q8w3e5r. They never send for another.

Lengthlength <= 40
count?integer

How many domains, 1 to 10.

Range1 <= value <= 10
Default1
confirm?boolean

True buys them and charges this period. False, the default, only quotes it.

Defaultfalse
max_cost?number

Spending cap for this call in US dollars. If the call could cost more, it fails with budget_exceeded before anything is charged.

Range0 < value

Response Body

The result.

application/json
  1. response
data*

The domains and their price.

notice*|

A plain sentence when there is something to know about this answer. Null otherwise.

usage*

What this call was charged, and the balance left.

Example Request
curl -X POST 'https://api.won.dev/v1/email/domains' \  -H 'Content-Type: application/json' \  -d '{  "sender_id": "snd_4k2m9x7p1q8w3e5r",  "count": 1,  "confirm": true,  "max_cost": 30}'
Example Response
{  "data": {    "confirmed": true,    "sender_id": "snd_4k2m9x7p1q8w3e5r",    "count": 1,    "price": 28.8,    "price_per_domain": 28.8,    "days": 32,    "period_end": "2026-12-28T00:00:00.000Z",    "price_per_month": 27,    "daily_limit": 45,    "first_day_limit": 15,    "days_to_full_speed": 5,    "in_stock": 24,    "domains": [      {        "id": "dom_5r4k2m9x7p1q8w3e",        "sender_id": "snd_4k2m9x7p1q8w3e5r",        "domain": null,        "status": "setting_up",        "end_reason": null,        "mailboxes": [],        "daily_limit": 0,        "full_daily_limit": 45,        "sent_today": 0,        "full_speed_at": null,        "price_per_month": 27,        "period_end": "2026-12-28T00:00:00.000Z",        "renews": true,        "ends_at": null,        "renewal_failed_at": null,        "stats": {          "sent": 0,          "bounced": 0,          "bounce_rate": 0,          "complaints": 0        },        "test": false,        "created_at": "2026-11-26T10:15:02.000Z",        "ready_at": null,        "ended_at": null      }    ]  },  "notice": null,  "usage": {    "cost": 28.8,    "breakdown": [      {        "unit": "email_domain_day",        "records": 32,        "already_paid": 0,        "cost": 28.8      }    ],    "balance": 19.28,    "replayed": false  }}

Last updated on