Aller au contenu

WhatsApp

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

MethodPathPermission
POSTwhatsapp.send
POSTwhatsapp.send
POSTwhatsapp.send
GETwhatsapp.history
GETwhatsapp.history
GETwhatsapp.history
GETwhatsapp.history
GETwhatsapp.history
GETwhatsapp.history
GETwhatsapp.history
DELETEwhatsapp.send
POSTwhatsapp.manage
GETwhatsapp.manage
GETwhatsapp.manage
GETwhatsapp.manage
POSTwhatsapp.manage
PATCHwhatsapp.manage
DELETEwhatsapp.manage
POSTwhatsapp.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 organization
  • 503 — 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 }
}