WhatsApp Calls API
Use the **`/{Phone-Number-ID}/calls`** endpoint to initiate, manage, and terminate WhatsApp calls. This API allows businesses to handle voice calling functionality through the WhatsApp Business Platform. ## Prerequisites * [User Access Token](https://developers.facebook.com/docs/facebook-login/access-tokens#usertokens) with **`whatsapp_business_messaging`** permission * `phone-number-id` for your registered WhatsApp account * Call request permission from the WhatsApp user ## Call Actions - **connect**: Initiate a new call - **pre_accept**: Pre-accept a call (prepare for accepting) - **accept**: Accept an incoming call - **reject**: Reject an incoming call - **terminate**: Terminate an active call ## Session Description Protocol (SDP) For actions that require audio/video negotiation (connect, accept), you must provide session information including: - `sdp_type`: Must be "offer" for connect action, "answer" for accept action - `sdp`: RFC 8866 compliant SDP information ## Error Handling Error code 138006 indicates lack of call request permission for the business number from the WhatsApp user.