Total Access Docs
Guides

WhatsApp Integration

Integrate WhatsApp Business messaging with Total Access.

WhatsApp Integration

Total Access supports WhatsApp Business messaging through the Total Integration module. Send and receive messages, manage connections, and automate notifications.

Prerequisites

  • WhatsApp Business API account or QR-code connection
  • Total Access account with WhatsApp module access
  • API key with whatsapp:connect, whatsapp:send, and whatsapp:receive scopes

Connecting WhatsApp

Option 1: QR Code Connection

  1. Navigate to Total IntegrationWhatsApp
  2. Click Connect WhatsApp
  3. Open WhatsApp on your phone
  4. Scan the QR code displayed
  5. Wait for connection confirmation

Option 2: WhatsApp Business API

  1. Navigate to Total IntegrationWhatsApp
  2. Click Connect via API
  3. Enter your WhatsApp Business API credentials
  4. Configure webhook URL for receiving messages
  5. Save and verify the connection

Sending messages

curl -X POST https://totalaccess.co.za/api/v1/whatsapp/send \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "+27821234567",
    "message": "Hello from Total Access!",
    "type": "text"
  }'

Message types

TypeDescriptionAdditional Fields
textPlain text messagemessage
templatePre-approved template messagetemplate_name, template_params
imageImage messageimage_url, caption
documentDocument messagedocument_url, filename
locationLocation messagelatitude, longitude, address

Receiving messages

Incoming WhatsApp messages are delivered via webhook. Configure an outbound webhook with the whatsapp.message_received event:

{
  "event": "whatsapp.message_received",
  "timestamp": "2026-07-22T14:00:00Z",
  "data": {
    "from": "+27821234567",
    "message_id": "msg_abc123",
    "type": "text",
    "text": "Hello!",
    "timestamp": "2026-07-22T14:00:00Z"
  }
}

Connection status

curl -X GET https://totalaccess.co.za/api/v1/whatsapp/status \
  -H "Authorization: Bearer YOUR_API_KEY"

Response:

{
  "success": true,
  "data": {
    "connected": true,
    "phone_number": "+27821234567",
    "name": "Business Name",
    "connected_at": "2026-07-22T10:00:00Z"
  }
}

Scopes

ScopeDescription
whatsapp:connectConnect/disconnect WhatsApp instances
whatsapp:sendSend WhatsApp messages
whatsapp:receiveReceive WhatsApp messages via webhooks
whatsapp:statusCheck WhatsApp connection status

WhatsApp Business API has its own rate limits and pricing. See the WhatsApp Business documentation for details.

On this page