# Team chat history

> GET /boards/{boardId}/chat

Source: https://mockflow.com/developers/reference/collaboration/list-chat

**GET** `https://api.mockflow.com/v1/boards/{boardId}/chat`  
Scopes: `boards:read`

**curl**

```bash
curl https://api.mockflow.com/v1/boards/brd_3f9e2a/chat \
  -H "Authorization: Bearer $MOCKFLOW_API_KEY"
```

**JavaScript**

```javascript
const response = await fetch("https://api.mockflow.com/v1/boards/brd_3f9e2a/chat", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.MOCKFLOW_API_KEY}`
  }
});

const data = await response.json();
```

**Python**

```python
import os, requests

response = requests.get(
    "https://api.mockflow.com/v1/boards/brd_3f9e2a/chat",
    headers={"Authorization": f"Bearer {os.environ['MOCKFLOW_API_KEY']}"},
)

response.raise_for_status()
data = response.json()
```

**200**

```json
{
  "nextCursor": "string",
  "hasMore": false,
  "data": [
    {
      "id": "string",
      "author": {
        "email": "string",
        "name": "Q4 Launch Planning"
      },
      "fromMida": false,
      "text": "Interview 5 users",
      "html": "string",
      "pinnedAt": {
        "x": 0,
        "y": 0
      }
    }
  ]
}
```

**429**

```json
{
  "error": {
    "code": "rate_limited",
    "message": "Too many requests.",
    "docsUrl": "https://mockflow.com/developers/concepts/errors#rate_limited"
  },
  "requestId": "req_45d49816999bac40"
}
```

The board's team chat, oldest first within a page. The product keeps the newest 50 messages per board.

### Authorization

- `Authorization` (string, required): `Bearer <key>`. The key needs `boards:read` scope. Create and manage keys in the [developer console](/developers/console/); what each scope unlocks is on the [scopes page](/developers/concepts/scopes).

### Path parameters

- `boardId` (string, required)

### Query parameters

- `cursor` (string): Opaque cursor from a previous response's `nextCursor`.
- `limit` (integer): Defaults to `50`.

### Response

- `nextCursor` (string | null)
- `hasMore` (boolean)
- `data` (ChatMessage[]): - `id` (string)
  - `author` (object)
  - `fromMida` (boolean)
  - `text` (string)
  - `html` (string)
  - `pinnedAt` (object | null)
  - `at` (string)

### Errors

- 429 `rate_limited`: Too many requests.
