冷邮件 API
取消发信域名
让发信域名不再续费,它会一直发到当前周期结束。免费。
停止续订一个发信域名。它会继续发信,直到 period_end 前 1 天(ends_at),之后被释放:它的邮箱和邮箱地址都不再保留。它已发出的邮件和收到的回复会保留。已付费用不退,操作无法撤销:如需新的域名,请用 POST /email/domains 购买。如果这是该发件方的最后一个域名,届时它的发送活动会以 no_domains 暂停。重复取消不会产生变化。测试 key 不能取消沙箱的模拟域名。免费。
- 计费: 免费。
用测试 key(won_test_...)发送这个请求,会在沙箱中运行:不发信,不收费。
DELETE
apiKeyheader
AuthorizationBearer <API key>Authorization: Bearer won_live_..., a key from the console.
id*stringDomain ID, such as dom_5r4k2m9x7p1q8w3e.
长度
length <= 40Idempotency-Key?stringAny unique string. A retry with the same key returns the first response, instead of not_found for what is already gone.
长度
length <= 255The result.
application/json- response
data*notice*|A plain sentence when there is something to know about this answer. Null otherwise.
usage*Nothing is charged here. The balance, for reference.
curl -X DELETE 'https://api.won.dev/v1/email/domains/dom_5r4k2m9x7p1q8w3e'响应示例
{ "data": { "id": "dom_5r4k2m9x7p1q8w3e", "sender_id": "snd_4k2m9x7p1q8w3e5r", "domain": "northwindseating.example", "status": "ending", "end_reason": "canceled", "mailboxes": [ { "address": "alex@northwindseating.example", "name": "Alex Morgan" }, { "address": "alex.morgan@northwindseating.example", "name": "Alex Morgan" }, { "address": "a.morgan@northwindseating.example", "name": "Alex Morgan" } ], "daily_limit": 45, "full_daily_limit": 45, "sent_today": 31, "full_speed_at": null, "price_per_month": 27, "period_end": "2026-12-28T00:00:00.000Z", "renews": false, "ends_at": "2026-12-27T00:00:00.000Z", "renewal_failed_at": null, "stats": { "sent": 812, "bounced": 9, "bounce_rate": 0.0111, "complaints": 0 }, "test": false, "created_at": "2026-11-17T09:20:03.000Z", "ready_at": "2026-11-17T09:24:41.000Z", "ended_at": null }, "notice": null, "usage": { "cost": 0, "balance": 48.08, "replayed": false }}最后更新于