Skip to main content
POST
Calls API
WhatsApp Business Calling runs over WhatsApp’s WebRTC infrastructure, not the PSTN. The recipient’s device must support WhatsApp voice calls and be connected to the internet.
Base URL: https://api.vobiz.ai/api/v1/messaging Authentication: Every request requires X-Auth-ID: MA_XXXXXXXX and X-Auth-Token: <token> headers (a Bearer JWT is also accepted). Set Content-Type: application/json on requests with a body. Get your credentials from console.vobiz.ai.
string
required
Your Vobiz account ID, for example MA_XXXXXXXX.

Endpoints overview

Initiate a WhatsApp call

Initiate an outbound WhatsApp voice call. Provide a WebRTC SDP offer.
This endpoint does not return an sdp_answer. The SDP answer from the recipient’s device arrives asynchronously via the call webhook / WebSocket event once the call is answered.

Request body

string
required
Channel (UUID) to call from.
string
required
Recipient phone number in E.164 format, for example +919876543210.
string
required
WebRTC SDP offer string.
cURL
201 Created

Manage call (actions)

Control an active or incoming call. Pass the channel_id, the call_id, and one of the four actions. For accept and pre_accept, include the WebRTC SDP answer in the sdp field.

Request body

200 OK

List call logs

Returns a paginated history of WhatsApp calls - inbound and outbound - with duration, outcome, and participant details. Filter with direction and status.
cURL
200 OK

Call log object