本文へスキップ
Won.dev
ドキュメントAPIリファレンス
コールドメールAPI

会話を一覧する

受信トレイです。返信してきた人ごとに1つの会話を、フォルダごとに、その件数とともに返します。無料。

受信トレイです。返信してきた人ごとに1つの会話があり、最新の動きがあったものから順に、3つのフォルダに分かれています。inboxには最後の返信が返事を待っている会話、lowには最後の返信に誰も返事をする必要がない会話(自動返信、お断り、配信停止)、doneには返答済みか対応済みにした会話が入ります。あとから返信が届くと、会話はdoneから出ます。コンソールも同じフォルダを表示するので、ここで既読や対応済みにしたものはコンソールでもそうなり、その逆も同じです。各会話には、最後の返信の意味とその冒頭がつきます。やりとり全体はGET /conversations/{id}で読みます。totalはどのページでも条件に合う件数を返します。limit=1なら、フォルダで待っている件数がわかります。今のところ会話はすべてemailです。channelがチャネルを示し、その名前のオブジェクトにそのチャネル特有の内容が入ります。無料です。

  • 課金: 無料。

テストキー(won_test_...)では、これはサンドボックスで動きます。何も送信されず、課金もされません。

GET
/conversations

認証

apiKey
headerAuthorizationBearer <APIキー>

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  }}

最終更新日