跳到正文
Won.dev
文档API 参考
冷邮件 API

发信域名列表

列出你的发信域名,附带各自的邮箱和续费时间。免费。

列出你的发信域名,按时间倒序,附带各自的邮箱、今天可发和已发的数量,以及续费时间。一个发件方所有域名今天合计还能发多少封,见 GET /email/senders/{id} 中的 sending。已释放或未能购买的域名默认不返回,除非 ended 为 true。测试 key 看到的是每个沙箱发件方的模拟域名。免费。

  • 计费: 免费。

用测试 key(won_test_...)发送这个请求,会在沙箱中运行:不发信,不收费。

GET
/email/domains

鉴权

apiKey
headerAuthorizationBearer <API key>

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

查询参数

sender_id?string

Only the domains of this sender.

长度length <= 40
ended?boolean

Also the domains that were released or failed.

默认值false
limit?integer

How many to return, 1 to 100.

范围1 <= value <= 100
默认值25
cursor?string

To get the next page, pass next_cursor of the previous response back unchanged, with the same parameters.

长度length <= 200

响应体

The result.

application/json
  1. response
data*array<>

The domains of this page.

has_more*boolean

Whether more follow this page.

next_cursor*|

Pass it as cursor to get the next page. Null on the last page.

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 GET 'https://api.won.dev/v1/email/domains?sender_id=snd_4k2m9x7p1q8w3e5r'
响应示例
{  "data": [    {      "id": "dom_8w3e5r4k2m9x7p1q",      "sender_id": "snd_4k2m9x7p1q8w3e5r",      "domain": "northwind-chairs.example",      "status": "ramping",      "end_reason": null,      "mailboxes": [        {          "address": "alex@northwind-chairs.example",          "name": "Alex Morgan"        },        {          "address": "alex.m@northwind-chairs.example",          "name": "Alex Morgan"        },        {          "address": "morgan@northwind-chairs.example",          "name": "Alex Morgan"        }      ],      "daily_limit": 21,      "full_daily_limit": 45,      "sent_today": 9,      "full_speed_at": "2026-11-29T00:00:00.000Z",      "price_per_month": 27,      "period_end": "2026-12-28T00:00:00.000Z",      "renews": true,      "ends_at": null,      "renewal_failed_at": null,      "stats": {        "sent": 33,        "bounced": 0,        "bounce_rate": 0,        "complaints": 0      },      "test": false,      "created_at": "2026-11-24T10:02:00.000Z",      "ready_at": "2026-11-24T10:07:12.000Z",      "ended_at": null    },    {      "id": "dom_5r4k2m9x7p1q8w3e",      "sender_id": "snd_4k2m9x7p1q8w3e5r",      "domain": "northwindseating.example",      "status": "active",      "end_reason": null,      "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": true,      "ends_at": null,      "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    }  ],  "has_more": false,  "next_cursor": null,  "notice": null,  "usage": {    "cost": 0,    "balance": 48.08,    "replayed": false  }}

最后更新于