冷邮件 API
发件方详情
查看单个发件方及其状态。免费。
GET https://api.won.dev/v1/email/senders/{id}
查看单个发件方及其状态。如果我们停用了它,review_note 会说明原因。免费。
- 计费: 免费。
参数
id 放在路径中,其余参数放在查询字符串里,多个值用英文逗号分隔。
| 参数 | 类型 | 必填 | 说明(API 原文) |
|---|---|---|---|
id | string | 是 | Sender ID, such as snd_4k2m9x7p1q8w3e5r. |
响应
错误说明见错误码。
| 字段 | 类型 | 说明(API 原文) |
|---|---|---|
data | object | |
data.id | string | Sender ID, such as snd_4k2m9x7p1q8w3e5r. |
data.company_name | string | The company the emails are sent for. Every email names it. |
data.address | string | The company's postal address. Every email carries it. |
data.website | string | The company's website. |
data.purpose | string | What the company sends and to whom, as it was described to us. |
data.tenant_id | string | null | The customer of yours the sender writes for, as you named it when you registered the sender. Null: the account itself. |
data.status | active | rejected | suspended | active: it can send, from the moment it is registered. rejected or suspended when we stopped it, with the reason in review_note. |
data.review_note | string | null | Why we stopped the sender, when we did. |
data.regions | object[] | Regions the sender declared a lawful basis for: eu, uk, ca. |
data.regions[].region | eu | uk | ca | |
data.regions[].basis | string | |
data.regions[].declared_at | string | |
data.test | boolean | Made with a test key: approved at once, never sends. |
data.created_at | string | When it was created, as an ISO 8601 time in UTC. |
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. |
示例
curl "https://api.won.dev/v1/email/senders/snd_4k2m9x7p1q8w3e5r" \
-H "Authorization: Bearer $WON_API_KEY"{
"data": {
"id": "snd_4k2m9x7p1q8w3e5r",
"company_name": "Northwind Seating Ltd",
"address": "18 Harbour Road, Leeds LS1 4AP, United Kingdom",
"website": "https://northwind-seating.example",
"purpose": "We make office chairs and write to furniture importers and distributors about our new catalogue.",
"status": "active",
"tenant_id": null,
"review_note": null,
"regions": [],
"test": false,
"created_at": "2026-11-17T09:12:44.000Z"
},
"notice": null,
"usage": {
"cost": 0,
"balance": 48.08,
"replayed": false
}
}用测试 key(won_test_...)发送这个请求,会在沙箱中运行:不发信,不收费。