# List chats

`opensend.ask.chats()`

The chats the signed-in person kept with the assistant, the latest first.

Needs the scope: `workspace:read`

This method answers a person who is signed in to the dashboard. A call with an API key is refused with 403.

## Returns

The call resolves to the answer, already parsed. A call the API refuses throws `OpenSendError` with the code and the message of the answer. [SDK](https://opensend.sh/docs/sdk) lists the errors of the client itself.

- `object` ("list"): Always `list`.
- `data` (object[]): The chats of the person asking, newest first.
- `data[].object` ("chat"): Always `chat`.
- `data[].id` (string): The id of the chat.
- `data[].title` (string): The first question, shortened.
- `data[].updatedAt` (string): When the chat was last saved.
- `data[].createdAt` (string): When the chat was started.

## Example

TypeScript:

```ts
await opensend.ask.chats()
```

CLI:

```bash
opensend ask chats
```

Answer:

```json
{
  "object": "list",
  "data": [
    {
      "object": "chat",
      "id": "chat_01",
      "title": "Which domains are not verified yet?",
      "updatedAt": "2026-11-27T09:30:00.000Z",
      "createdAt": "2026-11-27T09:30:00.000Z"
    }
  ]
}
```
