冷邮件 API
Webhook 列表
列出你的 Webhook 及其启用状态。免费。
GET https://api.won.dev/v1/webhooks
列出你的 Webhook,按时间正序,以及各自是否仍在启用。如果已被停用,disabled_reason 会说明原因。免费。
- 计费: 免费。
参数
此接口没有参数。
响应
错误说明见错误码。
| 字段 | 类型 | 说明(API 原文) |
|---|---|---|
data | object[] | |
data[].id | string | Webhook ID, such as whk_2m9x7p1q8w3e5r4k. |
data[].url | string | |
data[].events | string[] | |
data[].campaign_id | string | null | |
data[].status | enabled | disabled | |
data[].disabled_reason | string | null | |
data[].metadata | object | Your own keys and values, as you gave them. Empty when none were. |
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/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_...)发送这个请求,会在沙箱中运行:不发信,不收费。