跳到正文
Won.dev
冷邮件 API

回复列表

查看收件人的回复,每条都附带意图判断和置信度。免费。

GET https://api.won.dev/v1/email/replies

查看收件人的回复,按时间倒序,每条都附带意图判断(intent)和置信度。收到回复会自动结束对方的序列,你无需额外操作。外出自动回复默认不返回(除非 include_automated 为 true),也不会结束序列。把你看到的最新一条回复的 received_at 作为 since 传入,即可获取新回复:回复以我们收录的时间为准,可能晚于对方的发送时间,所以已看过的回复可能再次出现,请用 id 去重。回复通常在对方发出几分钟后出现。回复中的附件在 attachments 里,每个都有下载链接。免费。

  • 计费: 免费。

参数

参数放在查询字符串里,多个值用英文逗号分隔。

参数类型必填说明(API 原文)
campaign_idstring否Only this campaign, such as cmp_7p1q8w3e5r4k2m9x.
tenant_idstring否Only replies to the campaigns of this tenant's senders.
intent(interested | question | not_interested | wrong_person | unsubscribe | out_of_office | other)[]否Only replies with these intents, such as interested,question. Default: all.
sincestring否Only replies filed after this ISO 8601 time, such as 2026-11-20T13:41:02Z. A reply held for a check is filed when the check is done, with the time it was sent.
include_automatedboolean否Also return automatic answers such as out-of-office notes. Default: false.
limitinteger否How many to return, 1 to 100. Default: 25.
cursorstring否To get the next page, pass next_cursor of the previous response back unchanged, with the same parameters.

响应

错误说明见错误码。

字段类型说明(API 原文)
dataobject[]The replies of this page.
data[].idstringReply ID, such as rpl_1q8w3e5r4k2m9x7p.
data[].campaign_idstring
data[].recipient_idstring
data[].from_emailstring
data[].from_namestring | null
data[].subjectstring
data[].textstringWhat the person wrote, without the quoted email underneath.
data[].intentinterested | question | not_interested | wrong_person | unsubscribe | out_of_office | otherWhat the reply means: interested, question, not_interested, wrong_person, unsubscribe, out_of_office or other.
data[].confidencenumberHow sure the intent is, 0 to 1. Read the text when it is low.
data[].automatedbooleanAn automatic answer, such as an out-of-office note.
data[].matched_bythread | address | domainHow 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_attachmentsbooleanThe email came with files. They are listed in attachments within a minute or two of the reply showing up.
data[].attachmentsobject[]The files it came with, in their order.
data[].attachments[].idstringAttachment ID, such as att_6m2k9x7p1q8w3e5r.
data[].attachments[].filenamestring
data[].attachments[].content_typestringAs the sender's mail program declared it.
data[].attachments[].sizeintegerIn bytes.
data[].attachments[].statuspending | stored | failed | skippedstored 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[].reasonstring | nullWhy it was skipped or failed.
data[].attachments[].download_urlstring | nullWhere to download it, without an API key, for one hour from this response. Null for a skipped or failed file.
data[].metadataobjectThe campaign's metadata with the recipient's over it, as they were when the reply arrived: up to 40 keys.
data[].received_atstringWhen it arrived, as an ISO 8601 time in UTC.
has_morebooleanWhether more follow this page.
next_cursorstring | nullPass it as cursor to get the next page. Null on the last page.
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/replies?campaign_id=cmp_7p1q8w3e5r4k2m9x&intent=interested&limit=1" \
  -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. We are reviewing suppliers for next quarter.",
      "intent": "interested",
      "confidence": 0.7,
      "automated": false,
      "matched_by": "thread",
      "has_attachments": false,
      "attachments": [],
      "metadata": {
        "customer_id": "c_812",
        "crm_id": "lead_4471"
      },
      "received_at": "2026-11-20T13:41:02.000Z"
    }
  ],
  "has_more": false,
  "next_cursor": null,
  "notice": null,
  "usage": {
    "cost": 0,
    "balance": 48.08,
    "replayed": false
  }
}

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

本页内容