# Post to the team chat

> POST /boards/{boardId}/chat

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

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

**curl**

```bash
curl https://api.mockflow.com/v1/boards/brd_3f9e2a/chat \
  -X POST \
  -H "Authorization: Bearer $MOCKFLOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "message": "Interview 5 users",
  "askMida": false
}'
```

**JavaScript**

```javascript
const response = await fetch("https://api.mockflow.com/v1/boards/brd_3f9e2a/chat", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MOCKFLOW_API_KEY}`,
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
  "message": "Interview 5 users",
  "askMida": false
})
});

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

**Python**

```python
import os, requests

response = requests.post(
    "https://api.mockflow.com/v1/boards/brd_3f9e2a/chat",
    headers={"Authorization": f"Bearer {os.environ['MOCKFLOW_API_KEY']}"},
    json={
  "message": "Interview 5 users",
  "askMida": False
},
)

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

**201**

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

Posts as the token's owner. Everyone with the board open sees it at once. Mention `@Mida`, or send `askMida: true`, and Mida answers in the chat; the answer arrives as a later message, not in this response.

### Authorization

- `Authorization` (string, required): `Bearer <key>`. The key needs `boards:write` 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)

### Body

- `message` (string, required)
- `askMida` (boolean): Defaults to `false`.

### Response

- `id` (string)
- `author` (object): - `email` (string)
  - `name` (string)
- `fromMida` (boolean)
- `text` (string)
- `html` (string)
- `pinnedAt` (object | null): - `x` (number)
  - `y` (number)
- `at` (string)
- `midaQueued` (boolean)

### Errors

- 429 `rate_limited`: Too many requests.
