冷邮件 API
停止给某人发信
结束某个收件人的邮件序列。免费。
POST https://api.won.dev/v1/email/recipients/{id}/stop
结束某个收件人的邮件序列,此人不会再收到这个活动的邮件。适用于你已经通过其他途径联系上对方的情况。它不会把对方加入禁发名单;如需加入,请用 POST /email/suppressions。对序列已结束的人调用不会产生任何变化。免费。
- 计费: 免费。
参数
id 放在路径中,其余参数放在 JSON 请求体里。POST 请求还支持 Idempotency-Key 请求头,见重复请求。
| 参数 | 类型 | 必填 | 说明(API 原文) |
|---|---|---|---|
id | string | 是 | Recipient ID, such as rcp_9x7p1q8w3e5r4k2m. |
响应
错误说明见错误码。
| 字段 | 类型 | 说明(API 原文) |
|---|---|---|
data | object | |
data.id | string | Recipient ID, such as rcp_9x7p1q8w3e5r4k2m. |
data.campaign_id | string | |
data.email | string | |
data.first_name | string | null | |
data.last_name | string | null | |
data.company | string | null | |
data.country | string | null | ISO 3166-1 alpha-2, as given or as read off the address. |
data.contact_id | string | null | The person ID it was added by. |
data.status | verifying | scheduled | active | replied | completed | bounced | unsubscribed | suppressed | invalid | stopped | verifying while the address is checked, scheduled before the first email, active between emails. Final: replied, completed (every email sent, no answer), bounced, unsubscribed, suppressed, invalid, stopped. |
data.reason | string | null | Why, for invalid, stopped, bounced and suppressed. |
data.risky | boolean | The address could not be confirmed: its domain accepts mail for any name. |
data.emails_sent | integer | |
data.next_send_at | string | null | When the next email is due at the earliest. |
data.last_sent_at | 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 added, 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/email/recipients/rcp_9x7p1q8w3e5r4k2m/stop \
-H "Authorization: Bearer $WON_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'{
"data": {
"id": "rcp_9x7p1q8w3e5r4k2m",
"campaign_id": "cmp_7p1q8w3e5r4k2m9x",
"email": "dana.whitfield@harborline-imports.example",
"first_name": "Dana",
"last_name": "Whitfield",
"company": "Harborline Imports",
"country": "US",
"contact_id": null,
"status": "stopped",
"reason": "manual",
"risky": false,
"emails_sent": 1,
"next_send_at": null,
"last_sent_at": "2026-11-19T15:07:31.000Z",
"metadata": {
"crm_id": "lead_4471"
},
"created_at": "2026-11-18T14:03:10.000Z"
},
"notice": null,
"usage": {
"cost": 0,
"balance": 48.08,
"replayed": false
}
}用测试 key(won_test_...)发送这个请求,会在沙箱中运行:不发信,不收费。