PrerequisitesMake sure that your webhook endpoint is listening for
whatsapp.call.connect
events. See also Configure Webhooks, Retrieve a webhook endpoint API.
User-initiated Calling Connect
When a WhatsApp user calls your business, a Call Connect webhook will be triggered with an SDP Offer:
Code sample
{
"id": "evt_6757b723a5a42d369ef48480",
"type": "whatsapp.call.connect",
"apiVersion": "v2",
"createTime": "2024-12-10T03:36:03.749Z",
"callingConnect": {
"id": "6757b723960b25543b9ecc66",
"wacid": "wacid.HBgNNjI4MTM2MTkwNTEzMxrtLopSdPMwd",
"phoneId": "461269257068832",
"from": "+6281361905133",
"to": "+6283138205150",
"direction": "USER_INITIATED",
"sdpType": "offer",
"sdp": "<<RFC 4566 SDP>>"
}
}
Business-initiated Calling Connect
When business initiates a new call to the WhatsApp user, a Call Connect webhook will be triggered with an SDP Answer:
Code sample
{
"id": "evt_676e5a0d7a9cb742d02d7645",
"type": "whatsapp.call.connect",
"apiVersion": "v2",
"createTime": "2024-12-27T07:41:01.554Z",
"callingConnect": {
"id": "676e5a0d94c533526d3c5ad5",
"wacid": "wacid.HBgNNjI4MTM2MTkwNTEzMxUCABE",
"phoneId": "461269257068832",
"from": "+6283138205150",
"to": "+6283138205150",
"direction": "BUSINESS_INITIATED",
"sdpType": "answer",
"sdp": "<<RFC 4566 SDP>>",
"dialTime": 1735283452000
}
}