Send messages and manage conversations via Sendy Gate.
Requires a WhatsApp account connected in the dashboard (Sendy Gate). Supports text messages, batch sends with per-recipient variables, media attachments, and conversation management.
Endpoints
| Method | Path | Permission | |
|---|---|---|---|
| POST | Send a WhatsApp message (private chat or group via @g.us JID) | whatsapp.send | |
| POST | Send WhatsApp messages in batch | whatsapp.send | |
| POST | Check if a phone number is registered on WhatsApp | whatsapp.send | |
| GET | List WhatsApp messages | whatsapp.history | |
| GET | Get WhatsApp message details | whatsapp.history | |
| GET | List WhatsApp conversations | whatsapp.history | |
| GET | Get conversation with messages | whatsapp.history | |
| GET | List WhatsApp groups the account belongs to | whatsapp.history | |
| GET | Get group details (name, topic, owner) | whatsapp.history | |
| GET | List group participants with admin roles | whatsapp.history | |
| DELETE | Cancel a queued WhatsApp message | whatsapp.send | |
| POST | Create a WhatsApp account (returns id; fetch the QR separately to link it) | whatsapp.manage | |
| GET | List WhatsApp accounts | whatsapp.manage | |
| GET | Get account details with live connection status (poll while linking) | whatsapp.manage | |
| GET | Get the QR code (base64 image) to link the account; also refreshes an expired QR | whatsapp.manage | |
| POST | Disconnect the WhatsApp session (keeps the account) | whatsapp.manage | |
| PATCH | Rename, or switch on/off (is_active: true re-enables a deactivated account) | whatsapp.manage | |
| DELETE | Deactivate a WhatsApp account — nothing is erased, the phone stays linked (permanent deletion: dashboard only) | whatsapp.manage | |
| POST | Force a re-sync of chats/groups from Sendy Gate | whatsapp.history |
Send Message
POST /api/v1/whatsapp/send
Request
Response
json
{
"success": true,
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"status": "queued",
"to": "+33612345678",
"body": "Hello! Your appointment is confirmed for tomorrow at 3pm."
}
}Check Number
POST /api/v1/whatsapp/check-number
Check if a phone number is registered on WhatsApp before sending. The number must be in E.164 format (e.g. +32470123456).
Request
Response
json
{
"success": true,
"data": {
"number": "+32470123456",
"registered": true
}
}Errors
400— Invalid phone number (not E.164)404— No active WhatsApp account for your organization503— WhatsApp service unavailable or account disconnected
List Conversations
GET /api/v1/whatsapp/conversations
Request
Response
json
{
"success": true,
"data": [
{
"id": "conv-uuid-1",
"contactPhone": "+33612345678",
"contactName": "Marie Dupont",
"isGroup": false,
"lastMessageAt": "2026-03-18T14:30:00.000Z",
"unreadCount": 2,
"status": "ACTIVE",
"windowExpiresAt": "2026-03-19T14:30:00.000Z",
"createdAt": "2026-03-10T08:12:00.000Z"
},
{
"id": "conv-uuid-2",
"contactPhone": "+33698765432",
"contactName": null,
"isGroup": false,
"lastMessageAt": "2026-03-18T13:15:00.000Z",
"unreadCount": 1,
"status": "ACTIVE",
"windowExpiresAt": null,
"createdAt": "2026-03-11T17:44:00.000Z"
}
],
"meta": { "page": 1, "per_page": 20, "total": 45, "total_pages": 3 }
}