# POST /whatsapp/groups/:group_id/link

**Resource:** [WhatsApp](./whatsapp.md)  
**MCP tool:** `link_whatsapp_group`  
**Scopes:** `whatsapp:write`  
**Write operation:** yes

Link a WhatsApp group to a deal or customer so its messages appear in the deal/customer timeline.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `group_id` | path | string | yes |  |
| `deal_id` | body | string | no |  |
| `customer_id` | body | string | no |  |

## Request example

```bash
curl -X POST   "https://api.trustpager.com/functions/v1/api/v1/whatsapp/groups/:group_id/link"   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"deal_id":"...","customer_id":"..."}'
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`