跳到正文
Won.dev
冷邮件 API

发件方详情

查看单个发件方及其状态。免费。

GET https://api.won.dev/v1/email/senders/{id}

查看单个发件方及其状态。如果我们停用了它,review_note 会说明原因。免费。

  • 计费: 免费。

参数

id 放在路径中,其余参数放在查询字符串里,多个值用英文逗号分隔。

参数类型必填说明(API 原文)
idstring是Sender ID, such as snd_4k2m9x7p1q8w3e5r.

响应

错误说明见错误码。

字段类型说明(API 原文)
dataobject
data.idstringSender ID, such as snd_4k2m9x7p1q8w3e5r.
data.company_namestringThe company the emails are sent for. Every email names it.
data.addressstringThe company's postal address. Every email carries it.
data.websitestringThe company's website.
data.purposestringWhat the company sends and to whom, as it was described to us.
data.tenant_idstring | nullThe customer of yours the sender writes for, as you named it when you registered the sender. Null: the account itself.
data.statusactive | rejected | suspendedactive: it can send, from the moment it is registered. rejected or suspended when we stopped it, with the reason in review_note.
data.review_notestring | nullWhy we stopped the sender, when we did.
data.regionsobject[]Regions the sender declared a lawful basis for: eu, uk, ca.
data.regions[].regioneu | uk | ca
data.regions[].basisstring
data.regions[].declared_atstring
data.testbooleanMade with a test key: approved at once, never sends.
data.created_atstringWhen it was created, as an ISO 8601 time in UTC.
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/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_...)发送这个请求,会在沙箱中运行:不发信,不收费。

本页内容