Initiate and manage WhatsApp voice calls programmatically on Vobiz using WebRTC-based signaling - inbound, outbound, and call state management.
curl --request POST \
--url https://api.example.com/v1/messaging/calls/whatsappDocumentation Index
Fetch the complete documentation index at: https://docs.vobiz.ai/llms.txt
Use this file to discover all available pages before exploring further.
X-Auth-ID, X-Auth-Token, Accept: application/json
| Method | Endpoint | Description |
|---|---|---|
POST | /v1/messaging/calls/whatsapp | Initiate a WhatsApp call |
POST | /v1/messaging/calls/whatsapp/action | Manage call (accept/reject/terminate) |
GET | /v1/messaging/calls/whatsapp/logs | List call history |
POST https://api.vobiz.ai/v1/messaging/calls/whatsapp
| Field | Required | Description |
|---|---|---|
channel_id | Yes | Channel to call from |
to | Yes | Recipient phone number (E.164) |
sdp_offer | Yes | WebRTC SDP offer string |
curl -X POST \
"https://api.vobiz.ai/v1/messaging/calls/whatsapp" \
-H "X-Auth-ID: {auth_id}" \
-H "X-Auth-Token: {auth_token}" \
-H "Content-Type: application/json" \
-d '{"channel_id":"{channel_id}","to":"{to}","sdp_offer":"v=0\r\no=- 0 0 IN IP4 0.0.0.0\r\n..."}'
{"call_id":"call_abc123","status":"initiated","sdp_answer":"v=0\r\n...","created_at":"2026-03-25T14:00:00Z"}
POST https://api.vobiz.ai/v1/messaging/calls/whatsapp/action
call_id and one of the four actions.
| Action | Description |
|---|---|
pre_accept | Signal call preview before full accept |
accept | Accept an incoming call |
reject | Reject an incoming call |
terminate | End an active connected call |
curl -X POST \
"https://api.vobiz.ai/v1/messaging/calls/whatsapp/action" \
-H "X-Auth-ID: {auth_id}" \
-H "X-Auth-Token: {auth_token}" \
-H "Content-Type: application/json" \
-d '{"call_id":"{call_id}","action":"terminate"}'
GET https://api.vobiz.ai/v1/messaging/calls/whatsapp/logs
curl -X GET \
"https://api.vobiz.ai/v1/messaging/calls/whatsapp/logs?page=1&limit=25" \
-H "X-Auth-ID: {auth_id}" \
-H "X-Auth-Token: {auth_token}"
{
"data": [{"call_id":"call_abc123","direction":"outbound","to":"+919876543210","status":"completed","duration_seconds":185,"started_at":"2026-03-25T14:00:00Z","ended_at":"2026-03-25T14:03:05Z"}],
"meta": {"total":12,"page":1}
}
Was this page helpful?
curl --request POST \
--url https://api.example.com/v1/messaging/calls/whatsapp