# List chats

`GET /v1/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 request with an API key is refused with 403, so it cannot be tried from this page.

## Returns

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

cURL:

```bash
curl "$OPENSEND_API_URL/v1/ask/chats" \
  -H "Authorization: Bearer $OPENSEND_API_KEY"
```

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"
    }
  ]
}
```
