跳到正文
Won.dev
冷邮件 API

Webhook 列表

列出你的 Webhook 及其启用状态。免费。

GET https://api.won.dev/v1/webhooks

列出你的 Webhook,按时间正序,以及各自是否仍在启用。如果已被停用,disabled_reason 会说明原因。免费。

  • 计费: 免费。

参数

此接口没有参数。

响应

错误说明见错误码。

字段类型说明(API 原文)
dataobject[]
data[].idstringWebhook ID, such as whk_2m9x7p1q8w3e5r4k.
data[].urlstring
data[].eventsstring[]
data[].campaign_idstring | null
data[].statusenabled | disabled
data[].disabled_reasonstring | null
data[].metadataobjectYour own keys and values, as you gave them. Empty when none were.
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/webhooks" \
  -H "Authorization: Bearer $WON_API_KEY"
{
  "data": [
    {
      "id": "whk_2m9x7p1q8w3e5r4k",
      "url": "https://agent.example/hooks/won",
      "events": [
        "*"
      ],
      "campaign_id": null,
      "status": "enabled",
      "disabled_reason": null,
      "metadata": {},
      "created_at": "2026-11-18T13:58:00.000Z"
    }
  ],
  "notice": null,
  "usage": {
    "cost": 0,
    "balance": 48.08,
    "replayed": false
  }
}

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

本页内容