冷邮件 API
回复详情
查看单条回复,附带附件和下载链接。免费。
GET https://api.won.dev/v1/email/replies/{id}
查看单条回复及其附件。每个已保存的附件都有 download_url,无需 API key,一小时内有效;过期后重新查询即可获得新链接。可执行程序、脚本以及超过 15 MB 的文件不会保存。附件通常在回复出现后一两分钟内就绪;如果查询时还没就绪,会当场获取。免费。
- 计费: 免费。
参数
id 放在路径中,其余参数放在查询字符串里,多个值用英文逗号分隔。
| 参数 | 类型 | 必填 | 说明(API 原文) |
|---|---|---|---|
id | string | 是 | Reply ID, such as rpl_1q8w3e5r4k2m9x7p. |
响应
错误说明见错误码。
| 字段 | 类型 | 说明(API 原文) |
|---|---|---|
data | object | |
data.id | string | Reply ID, such as rpl_1q8w3e5r4k2m9x7p. |
data.campaign_id | string | |
data.recipient_id | string | |
data.from_email | string | |
data.from_name | string | null | |
data.subject | string | |
data.text | string | What the person wrote, without the quoted email underneath. |
data.intent | interested | question | not_interested | wrong_person | unsubscribe | out_of_office | other | What the reply means: interested, question, not_interested, wrong_person, unsubscribe, out_of_office or other. |
data.confidence | number | How sure the intent is, 0 to 1. Read the text when it is low. |
data.automated | boolean | An automatic answer, such as an out-of-office note. |
data.matched_by | thread | address | domain | How it was tied to the recipient: it answers our email, it comes from their address, or from a colleague at the same company. |
data.has_attachments | boolean | The email came with files. They are listed in attachments within a minute or two of the reply showing up. |
data.attachments | object[] | The files it came with, in their order. |
data.attachments[].id | string | Attachment ID, such as att_6m2k9x7p1q8w3e5r. |
data.attachments[].filename | string | |
data.attachments[].content_type | string | As the sender's mail program declared it. |
data.attachments[].size | integer | In bytes. |
data.attachments[].status | pending | stored | failed | skipped | stored once we have a copy, pending for the minute or two before. skipped files are not copied: programs and scripts (reason: blocked_type) and files over 15 MB (too_large). failed could not be read from the mailbox. |
data.attachments[].reason | string | null | Why it was skipped or failed. |
data.attachments[].download_url | string | null | Where to download it, without an API key, for one hour from this response. Null for a skipped or failed file. |
data.metadata | object | The campaign's metadata with the recipient's over it, as they were when the reply arrived: up to 40 keys. |
data.received_at | string | When it arrived, 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/replies/rpl_1q8w3e5r4k2m9x7p" \
-H "Authorization: Bearer $WON_API_KEY"{
"data": {
"id": "rpl_1q8w3e5r4k2m9x7p",
"campaign_id": "cmp_7p1q8w3e5r4k2m9x",
"recipient_id": "rcp_9x7p1q8w3e5r4k2m",
"from_email": "dana.whitfield@harborline-imports.example",
"from_name": "Dana Whitfield",
"subject": "Re: Office chairs for Harborline Imports",
"text": "Hi, yes, please send the price list. Our spec sheet for the tender is attached.",
"intent": "interested",
"confidence": 0.7,
"automated": false,
"matched_by": "thread",
"has_attachments": true,
"attachments": [
{
"id": "att_6m2k9x7p1q8w3e5r",
"filename": "tender-spec.pdf",
"content_type": "application/pdf",
"size": 248113,
"status": "stored",
"reason": null,
"download_url": "https://won.dev/e/a/eyJhIjoiYXR0XzZtMms5eDdwMXE4dzNlNXIifQ.c2FtcGxl"
}
],
"metadata": {
"customer_id": "c_812",
"crm_id": "lead_4471"
},
"received_at": "2026-11-20T13:41:02.000Z"
},
"notice": null,
"usage": {
"cost": 0,
"balance": 48.08,
"replayed": false
}
}用测试 key(won_test_...)发送这个请求,会在沙箱中运行:不发信,不收费。