跳到正文
Won.dev
文档API 参考
冷邮件 API

列出会话

收件箱:每个回信的人一条会话,一次列出一个文件夹,并给出其中的数量。免费。

收件箱:每个回信的人对应一条会话,最近有动态的排在前面,分在三个文件夹里。inbox 放最后一条回复还在等你回答的会话,low 放最后一条回复不需要任何人回的会话(自动回复、拒绝、退订),done 放已经回复或标为已处理的会话;之后再来回复,会话就会离开 done。控制台显示的是同样的文件夹,所以在这里读过或处理过的会话,在控制台里也是读过或处理过的,反过来也一样。每条会话会说明最后一条回复的意思,并给出它的开头;完整的往来用 GET /conversations/{id} 读取。total 在每一页都给出符合条件的会话数:用 limit=1 就能知道一个文件夹里有多少条在等。目前所有会话都在 email 里:channel 说明是哪个渠道,与渠道同名的对象里放该渠道特有的内容。免费。

  • 计费: 免费。

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

GET
/conversations

鉴权

apiKey
headerAuthorizationBearer <API key>

Authorization: Bearer won_live_..., a key from the console.

查询参数

folder?string

The folder to list.

默认值"inbox"
取值"inbox""low""done"
intent?array<>

Only the ones whose last reply means one of these, such as interested,question. Default: all.

元素items <= 7
默认值[]
campaign_id?string

Only this campaign, such as cmp_7p1q8w3e5r4k2m9x.

长度length <= 40
unread?boolean

Only unread ones (true) or only read ones (false).

search?string

Only the ones whose name, company or email address contains this.

长度1 <= length <= 100
limit?integer

How many to return, 1 to 100.

范围1 <= value <= 100
默认值25
cursor?string

To get the next page, pass next_cursor of the previous response back unchanged, with the same parameters.

长度length <= 200

响应体

The result.

application/json
  1. response
data*array<>

The conversations of this page.

total*integer

How many conversations of the folder match, on every page.

has_more*boolean

Whether more follow this page.

next_cursor*|

Pass it as cursor to get the next page. Null on the last page.

notice*|

A plain sentence when there is something to know about this answer. Null otherwise.

usage*

Nothing is charged here. The balance, for reference.

请求示例
curl -X GET 'https://api.won.dev/v1/conversations?folder=inbox&limit=1'
响应示例
{  "data": [    {      "id": "cnv_9x7p1q8w3e5r4k2m",      "channel": "email",      "folder": "inbox",      "unread": true,      "answered": false,      "name": "Dana Whitfield",      "company": "Harborline Imports",      "country": "US",      "campaign": {        "id": "cmp_7p1q8w3e5r4k2m9x",        "name": "US chair importers, November"      },      "replies": 1,      "last_reply": {        "id": "rpl_1q8w3e5r4k2m9x7p",        "intent": "interested",        "automated": false,        "text": "Hi, yes, please send the price list. We are reviewing suppliers for next quarter.",        "has_attachments": false,        "received_at": "2026-11-20T13:41:02.000Z"      },      "activity_at": "2026-11-20T13:41:02.000Z",      "email": {        "recipient_id": "rcp_9x7p1q8w3e5r4k2m",        "address": "dana.whitfield@harborline-imports.example",        "status": "replied",        "reply_from": "dana.whitfield@harborline-imports.example",        "subject": "Re: Office chairs for Harborline Imports"      }    }  ],  "total": 4,  "has_more": true,  "next_cursor": "cur_Qm9vVGhpc0lzQVNhbXBsZQ",  "notice": null,  "usage": {    "cost": 0,    "balance": 48.08,    "replayed": false  }}

最后更新于