# 会話を一覧する

Source: https://won.dev/ja/docs/email/conversations-list

`GET https://api.won.dev/v1/conversations`

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

- **課金：** 無料。

テストキー（`won_test_...`）では、これは[サンドボックス](/ja/docs/email#sandbox)で動きます。何も送信されず、課金もされません。

## パラメーター [#parameters]

パラメーターはクエリ文字列で渡し、リストはカンマ区切りにします。

| パラメーター | 型 | 必須 | 説明（APIの原文） |
| --- | --- | --- | --- |
| `folder` | `inbox` \| `low` \| `done` | いいえ | The folder to list. Default: `inbox`. |
| `intent` | (`interested` \| `question` \| `not_interested` \| `wrong_person` \| `unsubscribe` \| `out_of_office` \| `other`)[] | いいえ | Only the ones whose last reply means one of these, such as `interested,question`. Default: all. |
| `campaign_id` | string | いいえ | Only this campaign, such as `cmp_7p1q8w3e5r4k2m9x`. |
| `unread` | boolean | いいえ | Only unread ones (`true`) or only read ones (`false`). |
| `search` | string | いいえ | Only the ones whose name, company or email address contains this. |
| `limit` | integer | いいえ | How many to return, 1 to 100. Default: `25`. |
| `cursor` | string | いいえ | To get the next page, pass `next_cursor` of the previous response back unchanged, with the same parameters. |

## レスポンス [#response]

エラーについては[エラーコード](/ja/docs/errors)を参照してください。

| フィールド | 型 | 説明（APIの原文） |
| --- | --- | --- |
| `data` | object[] | The conversations of this page. |
| `data[].id` | string | Conversation ID, such as `cnv_9x7p1q8w3e5r4k2m`. |
| `data[].channel` | `email` | Where it runs: `email` for now. What only a channel has is in the object of its name. |
| `data[].folder` | `inbox` \| `low` \| `done` \| null | `inbox` while its last reply waits for an answer, `low` when that reply needs nobody (an automatic answer, a no, an unsubscribe), `done` once it is answered or marked done. A reply that comes later takes it out of `done` again. Null while they have not written back: the folders hold the ones who did. |
| `data[].unread` | boolean | A reply came after it was last read. |
| `data[].answered` | boolean | The last word is yours: an answer or a single email went out after the last reply. False while they have not written back. |
| `data[].name` | string \| null | The person's name, when it is known. |
| `data[].company` | string \| null |  |
| `data[].country` | string \| null | ISO 3166-1 alpha-2. |
| `data[].campaign` | object | The campaign that wrote to them. |
| `data[].campaign.id` | string |  |
| `data[].campaign.name` | string |  |
| `data[].replies` | integer | Replies in it, automatic ones included. |
| `data[].last_reply` | object \| null | The reply it is about, which an answer goes to: the last one a person wrote, else the last automatic one. Null while they have not written back. |
| `data[].last_reply.id` | string | Reply ID, such as `rpl_1q8w3e5r4k2m9x7p`. |
| `data[].last_reply.intent` | `interested` \| `question` \| `not_interested` \| `wrong_person` \| `unsubscribe` \| `out_of_office` \| `other` | What it means. |
| `data[].last_reply.automated` | boolean | An automatic answer, such as an out-of-office note. |
| `data[].last_reply.text` | string | The start of its text, up to 300 characters. |
| `data[].last_reply.has_attachments` | boolean |  |
| `data[].last_reply.received_at` | string | When it arrived, as an ISO 8601 time in UTC. |
| `data[].activity_at` | string | The last reply, or the last answer when that is later; before a reply, the last email that went out, as an ISO 8601 time in UTC. |
| `data[].email` | object \| null | With `channel` `email`: what is particular to email. Null in other channels. |
| `data[].email.recipient_id` | string | The recipient, such as `rcp_9x7p1q8w3e5r4k2m`, to write to again with `POST /email/messages`. |
| `data[].email.address` | string | The address the campaign wrote to. |
| `data[].email.status` | `verifying` \| `scheduled` \| `active` \| `replied` \| `completed` \| `bounced` \| `unsubscribed` \| `suppressed` \| `invalid` \| `stopped` | Where their sequence stands, as a recipient's `status`: someone `unsubscribed`, `bounced`, `suppressed` or `invalid` cannot be written to. |
| `data[].email.reply_from` | string \| null | The address the last reply came from: another one when a colleague answered. Null while they have not written back. |
| `data[].email.subject` | string \| null | The subject of the last reply. Null while they have not written back. |
| `total` | integer | How many conversations of the folder match, on every page. |
| `has_more` | boolean | Whether more follow this page. |
| `next_cursor` | string \| null | Pass it as `cursor` to get the next page. Null on the last page. |
| `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. |

## 例 [#example]

```bash
curl "https://api.won.dev/v1/conversations?folder=inbox&limit=1" \
  -H "Authorization: Bearer $WON_API_KEY"
```

```json
{
  "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
  }
}
```