# List conversations

> Your conversations as the dashboard’s inbox shows them, one per person or group chat, the most recent first.

`GET /v1/conversations`

Your conversations as the dashboard’s inbox shows them, one per person or group chat, the most recent first. `filter` narrows to `unread`, `waiting` (the last text is theirs) or `archived`, and `q` searches names, numbers, group names and the words of texts.

Needs a key with the `messages:read` scope. [Keys and scopes](https://usebluebot.com/docs/concepts/api-keys)

## Query parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `q` | string | No | Search names, numbers, group names and the words of texts. Up to 100 characters |
| `filter` | string | No | `all` (not archived), `unread`, `waiting` (the last text is theirs) or `archived`. One of `all`, `unread`, `waiting`, `archived`. Default `"all"` |
| `limit` | integer | No | How many to return, 1 to 100. Default 25. 1 to 100. Default `25` |
| `cursor` | string | No | The `next_cursor` of the page before. Leave it out for the first page. Up to 200 characters |

## Example

```bash
curl "https://usebluebot.com/api/v1/conversations" \
  -H "Authorization: Bearer $BLUEBOT_API_KEY"
```

```ts
import BlueBot from '@usebluebot/sdk';

const client = new BlueBot({ apiKey: process.env.BLUEBOT_API_KEY });

const page = await client.conversations.list();
console.log(page.data);
```

```python
import os
from bluebot import BlueBot

client = BlueBot(api_key=os.environ["BLUEBOT_API_KEY"])

page = client.conversations.list()
print(page.data)
```

## Response

`200`: A page of conversations.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `object` | "list" | Yes |   |
| `data` | array of Conversation | Yes |   |
| `data[].id` | string | Yes | A conv_ id. Starts with `conv_` |
| `data[].object` | "conversation" | Yes |   |
| `data[].kind` | string | Yes | `person` for one person, `group` for a group chat. One of `person`, `group` |
| `data[].title` | string | Yes | The person’s name, the group’s name, or their numbers, as the inbox shows it. |
| `data[].handle` | string or null | Yes | The person’s phone number or email address; null for a group. |
| `data[].contact_id` | string or null | Yes | The person, for a one-to-one conversation. Starts with `ct_` |
| `data[].chat_id` | string or null | Yes | The group chat, for a group. Starts with `chat_` |
| `data[].participants` | array of strings | Yes | Everyone in it besides you: one handle for a person, the members for a group. |
| `data[].service` | string or null | Yes | The service the last text used, when known. One of `imessage`, `sms` |
| `data[].last_message` | object or null | Yes |   |
| `data[].last_message.id` | string | Yes | A msg_ id. Starts with `msg_` |
| `data[].last_message.direction` | string | Yes | One of `in`, `out` |
| `data[].last_message.state` | string | Yes | The last text’s state. |
| `data[].last_message.preview` | string or null | Yes | Its first 140 characters, or null when it had no words. |
| `data[].last_message.files` | integer | Yes | How many files it carried. |
| `data[].last_message.at` | timestamp | Yes | When it was sent or arrived. |
| `data[].last_message_at` | timestamp or null | Yes | When the last text was sent or arrived. |
| `data[].unread_count` | integer | Yes | Texts in that you haven’t opened in the dashboard. |
| `data[].waiting` | boolean | Yes | True when the last text is theirs, so they are waiting on you. |
| `data[].archived` | boolean | Yes | Marked done. A new text in brings it back. |
| `data[].stopped` | boolean | Yes | The person is on your stop list. |
| `data[].created_at` | timestamp | Yes | When the conversation started. |
| `has_more` | boolean | Yes | Whether another page follows. |
| `next_cursor` | string or null | Yes | Send as `cursor` for the next page; null on the last. |

The answer, `200`:

```json
{
  "object": "list",
  "data": [
    {
      "id": "conv_1Hq2LxW9cVbN3mKpRtYs0a",
      "object": "conversation",
      "kind": "person",
      "title": "Maria Alvarez",
      "handle": "+15555550123",
      "contact_id": "ct_1Hq2LxW9cVbN3mKpRtYs0a",
      "chat_id": null,
      "participants": [
        "+15555550123"
      ],
      "service": "imessage",
      "last_message": {
        "id": "msg_1Hq2LxW9cVbN3mKpRtYs0a",
        "direction": "in",
        "state": "received",
        "preview": "Can we move the showing to 4?",
        "files": 0,
        "at": "2026-11-13T19:44:12.000Z"
      },
      "last_message_at": "2026-11-13T19:44:12.000Z",
      "unread_count": 1,
      "waiting": true,
      "archived": false,
      "stopped": false,
      "created_at": "2026-11-02T15:20:00.000Z"
    }
  ],
  "has_more": false,
  "next_cursor": null
}
```

## Errors

Every refusal has the same envelope and a page of its own. These are the ones this operation can give.

| Code                                                    | Status | What it means                                                                                                                                    |
| ------------------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| [`unauthorized`](https://usebluebot.com/docs/errors/unauthorized)             | 401    | The request carried no key, or a key BlueBot doesn’t know: mistyped, revoked, or a test key sent to the live API.                                |
| [`insufficient_scope`](https://usebluebot.com/docs/errors/insufficient_scope) | 403    | The key doesn’t carry the scope the endpoint needs. Each endpoint’s reference names its scope.                                                   |
| [`rate_limited`](https://usebluebot.com/docs/errors/rate_limited)             | 429    | Too many requests. A key may make 120 requests a minute. The `RateLimit` header says how many are left, and `Retry-After` how long to wait.      |
| [`internal`](https://usebluebot.com/docs/errors/internal)                     | 500    | Something went wrong on BlueBot’s side. It was reported. Send the request again; with an Idempotency-Key that is always safe.                    |
| [`invalid_request`](https://usebluebot.com/docs/errors/invalid_request)       | 400    | Something in the request doesn’t fit: a missing or malformed field, a bad id, or a combination the endpoint refuses. `details` names each field. |

## Try it
