送信ドメインを買う
送信者のために送信ドメインを買います。1つにつきウォームアップ済みのメールボックス3つ、1日45通、月 $27。
1つの送信者のために送信ドメインを買います。各ドメインにはウォームアップ済みのメールボックスが3つあり、その送信者のためだけに送り、送れる数を1日45通増やします。設定は何もいりません。DNSも、ログインするメールボックスもなく、返信は当社が読みます。ドメインは1日 $0.9 で、更新日からは30日ずつ支払います。すべてのドメインは毎月同じ日に更新されるので、最初の期間は今日からその日までの15〜45日で、今支払います。各ドメインは period_end の3日前に残高から自動で更新されます。残高が足りなければ前日まで再試行し、その後ドメインは手放されます。confirm: true を指定しなければ、価格、日付、在庫数を見積もるだけで、何も変わりません。新しいドメインは数分で使えるようになり(domain.ready)、初日は15通送り、5日で全速になります。no_domains で一時停止していたその送信者のキャンペーンは、使えるようになると自動で再開します。販売数が足りなければ、何も課金されないうちに out_of_stock で失敗します。一度に10個まで。テストキーでは見積もりだけです。サンドボックスでは、どの送信者にもシミュレーションのドメインがすでにあります。confirm: true をつけた呼び出しは毎回また買うので、再試行を安全にするには Idempotency-Key を送ってください。
- 課金:
email_domain_day$0.9:送信ドメイン1つを1日。confirm: trueを指定するとperiod_endまでの日数分がすぐに課金され、その後は更新の3日前に30日分ずつ課金されます。指定しなければ見積もりだけで、無料です。
テストキー(won_test_...)では、これはサンドボックスで動きます。何も送信されず、課金もされません。
apiKeyAuthorizationBearer <APIキー>Authorization: Bearer won_live_..., a key from the console.
Idempotency-Key?stringAny unique string. A retry with the same key and the same body returns the first response and is not charged again.
length <= 255application/json- body
sender_id*stringThe sender to buy them for, such as snd_4k2m9x7p1q8w3e5r. They never send for another.
length <= 40count?integerHow many domains, 1 to 10.
1 <= value <= 101confirm?booleanTrue buys them and charges this period. False, the default, only quotes it.
falsemax_cost?numberSpending cap for this call in US dollars. If the call could cost more, it fails with budget_exceeded before anything is charged.
0 < valueThe result.
application/json- 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.
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}'{ "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 }}最終更新日