冷邮件 API
禁发名单
永远不会收到你邮件的地址和域名。免费。
GET https://api.won.dev/v1/email/suppressions
列出永远不会收到你邮件的地址和域名,按时间倒序:退订的人、退信的地址、投诉过的人,以及你手动添加的条目。你的所有发送活动都会排除它们。带 tenant_id 的条目只对该租户的发送活动生效:有人退订某个租户的邮件,只会进入该租户的名单,不影响其他租户。垃圾邮件投诉和不存在的地址则对你的所有邮件生效。测试 key 有独立的名单:沙箱中模拟产生的条目只出现在那份名单上,永远不会出现在这里。免费。
- 计费: 免费。
参数
参数放在查询字符串里,多个值用英文逗号分隔。
| 参数 | 类型 | 必填 | 说明(API 原文) |
|---|---|---|---|
reason | unsubscribed | bounced | complained | manual | 否 | Only entries with this reason, such as unsubscribed. |
tenant_id | string | 否 | Only the entries of this tenant. Entries without a tenant_id hold for it too, and are not among them. |
limit | integer | 否 | How many to return, 1 to 100. Default: 25. |
cursor | string | 否 | To get the next page, pass next_cursor of the previous response back unchanged, with the same parameters. |
响应
错误说明见错误码。
| 字段 | 类型 | 说明(API 原文) |
|---|---|---|
data | object[] | The suppressions of this page. |
data[].id | string | Suppression ID, such as sup_8w3e5r4k2m9x7p1q. |
data[].type | email | domain | |
data[].value | string | |
data[].reason | unsubscribed | bounced | complained | manual | |
data[].campaign_id | string | null | |
data[].tenant_id | string | null | The tenant whose emails it holds back. Null: all of the account's emails. |
data[].created_at | string | When it was added, as an ISO 8601 time in UTC. |
has_more | boolean | Whether more follow this page. |
next_cursor | string | null | Pass it as cursor to get the next page. Null on the last page. |
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/suppressions?reason=unsubscribed&limit=1" \
-H "Authorization: Bearer $WON_API_KEY"{
"data": [
{
"id": "sup_8w3e5r4k2m9x7p1q",
"type": "email",
"value": "lee.park@coastal-office.example",
"reason": "unsubscribed",
"campaign_id": "cmp_7p1q8w3e5r4k2m9x",
"tenant_id": null,
"created_at": "2026-11-20T08:15:09.000Z"
}
],
"has_more": false,
"next_cursor": null,
"notice": null,
"usage": {
"cost": 0,
"balance": 48.08,
"replayed": false
}
}用测试 key(won_test_...)发送这个请求,会在沙箱中运行:不发信,不收费。