WhatsApp Business Voice Calling

During an active Service Conversation Window, you can send free-form WhatsApp messages to users without using templates. Check Reply Message API

To send message to end customers outside service conversation window, we need to send template messages.

API Endpoint

POST: https://app.cunnekt.com/restapi/v1/whatsapp/calls/{action}

Authentication

All requests must be authenticated using an API key.

API-KEY: your_api_key
Content-Type: application/json
Accept an Incoming Call
curl 'https://app.cunnekt.com/restapi/v1/whatsapp/calls/accept' \
-H 'Content-Type: application/json' \
-H 'API-KEY: {your_api_key}' \
-d '
{
  "messaging_product": "whatsapp",
  "call_id": "wacid.ABGGFjFVU2AfAgo6V-Hc5eCgK5Gh",
  "action": "accept",
  "session" : {
      "sdp_type" : "answer",
      "sdp" : "<>"
   },
}'

Reject an incoming Call
curl 'https://app.cunnekt.com/restapi/v1/whatsapp/calls/reject' \
-H 'Content-Type: application/json' \
-H 'API-KEY: {your_api_key}' \
-d '
{
  "messaging_product": "whatsapp",
  "call_id": "wacid.ABGGFjFVU2AfAgo6V-Hc5eCgK5Gh",
  "action": "reject"
}'

Terminate an Ongoing Call
curl 'https://app.cunnekt.com/restapi/v1/whatsapp/calls/terminate' \
-H 'Content-Type: application/json' \
-H 'API-KEY: {your_api_key}' \
-d '
{
  "messaging_product": "whatsapp",
  "call_id": "wacid.ABGGFjFVU2AfAgo6V-Hc5eCgK5Gh",
  "action": "terminate"
}'

Initiate a Call to end-customer.
curl 'https://app.cunnekt.com/restapi/v1/whatsapp/calls/initiate' \
-H 'Content-Type: application/json' \
-H 'API-KEY: {your_api_key}' \
-d '
{
  "messaging_product": "whatsapp",
  "to":"12185552828", // The WhatsApp user's phone number (callee)
  "action":"connect",
  "session" : {
      "sdp_type" : "offer",
      "sdp" : "<>"
  }
}'

To understand more about flow to accept a call, please check: Meta Documentation User-Initiated Calls
To understand more about flow to initiate a call, please check: Meta Documentation Business-Initiated Calls