YCloud - Growsales AI icon

YCloud - Growsales AI

Use YCloud to send WhatsApp messages, SMS, emails, manage templates, contacts, and more

WhatsApp Calling → Accept Call

AI-generated

Summary

Accepts an incoming WhatsApp call by sending an acceptance request with the required session description (SDP) and identifiers.

Inputs

  • SDP Offer (required) — Session Description Protocol (SDP) string used to establish the WebRTC connection for the call.
  • Phone Number ID (required) — The WhatsApp Business phone number ID involved in the call.
  • Call ID (WACID) (required) — The unique WhatsApp Call ID received from the webhook for identifying the specific call to accept.

Output shape

a JSON object representing the result of the accept call API request

The output contains the API response from the WhatsApp calling service confirming the acceptance of the call or any error message.

Examples

Example 1: Accept a WhatsApp call in response to an incoming call webhook

Provide the required 'SDP Offer' string obtained during the WebRTC negotiation, the phone number ID of the WhatsApp Business account, and the call ID from the webhook event to this operation to accept the call.

Links

Discussion