跳到正文
Won.dev
冷邮件 API

禁发名单

永远不会收到你邮件的地址和域名。免费。

GET https://api.won.dev/v1/email/suppressions

列出永远不会收到你邮件的地址和域名,按时间倒序:退订的人、退信的地址、投诉过的人,以及你手动添加的条目。你的所有发送活动都会排除它们。带 tenant_id 的条目只对该租户的发送活动生效:有人退订某个租户的邮件,只会进入该租户的名单,不影响其他租户。垃圾邮件投诉和不存在的地址则对你的所有邮件生效。测试 key 有独立的名单:沙箱中模拟产生的条目只出现在那份名单上,永远不会出现在这里。免费。

  • 计费: 免费。

参数

参数放在查询字符串里,多个值用英文逗号分隔。

参数类型必填说明(API 原文)
reasonunsubscribed | bounced | complained | manual否Only entries with this reason, such as unsubscribed.
tenant_idstring否Only the entries of this tenant. Entries without a tenant_id hold for it too, and are not among them.
limitinteger否How many to return, 1 to 100. Default: 25.
cursorstring否To get the next page, pass next_cursor of the previous response back unchanged, with the same parameters.

响应

错误说明见错误码。

字段类型说明(API 原文)
dataobject[]The suppressions of this page.
data[].idstringSuppression ID, such as sup_8w3e5r4k2m9x7p1q.
data[].typeemail | domain
data[].valuestring
data[].reasonunsubscribed | bounced | complained | manual
data[].campaign_idstring | null
data[].tenant_idstring | nullThe tenant whose emails it holds back. Null: all of the account's emails.
data[].created_atstringWhen it was added, as an ISO 8601 time in UTC.
has_morebooleanWhether more follow this page.
next_cursorstring | nullPass it as cursor to get the next page. Null on the last page.
noticestring | nullA plain sentence when there is something to know about this answer. Null otherwise.
usageobjectNothing is charged here. The balance, for reference.
usage.costnumberWhat this call cost, in US dollars.
usage.balancenumberThe balance left after this call, in US dollars.
usage.replayedbooleanTrue 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_...)发送这个请求,会在沙箱中运行:不发信,不收费。

本页内容