# User-initiated calls | Developer Documentation

<div id="bkmrk-user-initiated-calls">## User-initiated calls

<div><span>Updated: Nov 13, 2025</span></div><div id="bkmrk-overview"><div id="bkmrk-overview-1"><div>### Overview

</div></div></div><div>The Calling API supports receiving calls made by WhatsApp users to your business.</div><div>Your business dictates when calls can be received by [configuring business calling hours and holiday unavailability](/books/meta-whatsapp/page/configure-call-settings-developer-documentation).</div><div><div>**Consumer device eligibility**</div><div>Currently, the WhatsApp Business Calling API can accept calls from a consumer’s primary and companion iPhone or Android phones.</div><div>A **primary device** is the consumer’s main device, typically a mobile phone, which holds the authoritative state for the user’s account. It has full access to messaging history and core functionalities. There is exactly one primary device per user account at any given time.</div><div>**Companion devices** are additional devices registered to the user’s account that can operate alongside the primary device. Examples include web clients, desktop apps, tablets, and smart glasses. Companion devices have access to some or all messaging history and core features but are limited compared to the primary device. For Cloud API Calling, **only iPhone and Android phone companion devices are supported for user-initiated calls**.</div><div>**Callback permission functionality on companion devices**</div><div>For businesses that have the [callback setting](/books/meta-whatsapp/page/configure-call-settings-developer-documentation) enabled, this functionality is not supported on companion devices yet.</div></div><div id="bkmrk-prerequisites"><div id="bkmrk-prerequisites-1"><div>### Prerequisites

</div></div></div><div>Before you get started with user-initiated calling, ensure that:</div><span>[Subscribe](/books/meta-whatsapp/page/create-a-webhook-endpoint-developer-documentation) to the **calls** webhook field</span><span>[Enable Calling API features on your business phone number](/books/meta-whatsapp/page/configure-call-settings-developer-documentation)</span><div id="bkmrk-call-sequence-diagra"><div id="bkmrk-call-sequence-diagra-1"><div>#### Call sequence diagram

</div></div></div><div>![Call sequence diagram showing the flow of user-initiated calls](https://support.chatarchitect.com/uploads/images/gallery/2026-04/embedded-image-qlx0pphm.jpeg)</div><div id="bkmrk-endpoints-for-user-i"><div id="bkmrk-endpoints-for-user-i-1"><div>### Endpoints for user-initiated calling

</div></div></div><div id="bkmrk-pre-accept-call"><div id="bkmrk-pre-accept-call-1"><div>#### Pre-accept call

</div></div></div><div>When you pre-accept an inbound call, you allow the calling media connection to be established before attempting to send call media through the connection.</div><div>When you then call the accept call endpoint, media begins flowing immediately since the connection has already been established.</div><div>Pre-accepting calls is recommended because it facilitates faster connection times and avoids [audio clipping issues](/books/meta-whatsapp/page/troubleshoot-whatsapp-calling-errors-reference-guide-developer-documentation).</div><div>There is about 30 to 60 seconds after the [Call Connect webhook](/books/meta-whatsapp/page/user-initiated-calls-developer-documentation) is sent for the business to accept the phone call. If the business does not respond, the call is terminated on the WhatsApp user side with a “Not Answered” notification and a [Terminate Webhook](/books/meta-whatsapp/page/user-initiated-calls-developer-documentation) is delivered back to you.</div><div><div>**Note:** Since the WebRTC connection is established before calling the [Accept Call endpoint](/books/meta-whatsapp/page/user-initiated-calls-developer-documentation), make sure to flow the call media only after you receive a 200 OK response back.</div><div>If call media flows too early, the caller will miss the first few words of the call. If call media flows too late, callers will hear silence.</div></div><div id="bkmrk-body-parameters"><div id="bkmrk-body-parameters-1"><div>##### Body parameters

</div></div></div><div><table><thead><tr><th><span>Parameter </span></th><th><span>Description </span></th><th><span>Sample Value </span></th></tr></thead><tbody><tr><td><div><div>`call_id`</div><div>*String*</div></div></td><td><div><div>**Required**</div><div>  
The ID of the phone call.</div><div>For inbound calls, you receive a call ID from the [Call Connect webhook](/books/meta-whatsapp/page/user-initiated-calls-developer-documentation) when a WhatsApp user initiates the call.</div></div></td><td><div><div>`“wacid.ABGGFjFVU2AfAgo6V-Hc5eCgK5Gh”`</div></div></td></tr><tr><td><div><div>`action`</div><div>*String*</div></div></td><td><div><div>**Optional**</div><div>  
The action being taken on the given call ID.</div><div>Values can be `connect` | `pre_accept` | `accept` | `reject` | `terminate`</div></div></td><td><div><div>`“pre_accept”`</div></div></td></tr><tr><td><div><div>`session`</div><div>*JSON object*</div></div></td><td><div><div>**Optional**</div><div>  
Contains the session description protocol (SDP) type and description language.</div><div>Requires two values:</div><div>`sdp_type` — (*String*) **Required**</div><div>“offer”, to indicate SDP offer</div><div>`sdp` — (*String*) **Required**</div><div>The SDP info of the device on the other end of the call. The SDP must be compliant with [RFC 8866<span>⁠</span>](https://l.facebook.com/l.php?u=https%3A%2F%2Fdatatracker.ietf.org%2Fdoc%2Fhtml%2Frfc8866&h=AT4zZJ9FzVQ3vNp7-OCABiqHLC3SPrGAQtzla4yYj9jwhSTiuCZ2EKCnf-0cMLGDfqMr7vChT5WqyVtsmzBWeBYJOdkhM4SK2yuxDvEMd71LwzH7HChGIeKD-eZLKpI_Cky4wQvRzj0SmR0ODAIvKA).</div><div>[Learn more about Session Description Protocol (SDP)<span>⁠</span>](https://l.facebook.com/l.php?u=https%3A%2F%2Fwww.rfc-editor.org%2Frfc%2Frfc8866.html&h=AT4zZJ9FzVQ3vNp7-OCABiqHLC3SPrGAQtzla4yYj9jwhSTiuCZ2EKCnf-0cMLGDfqMr7vChT5WqyVtsmzBWeBYJOdkhM4SK2yuxDvEMd71LwzH7HChGIeKD-eZLKpI_Cky4wQvRzj0SmR0ODAIvKA)</div><div>[View example SDP structures](/books/meta-whatsapp/page/api-and-webhook-reference-developer-documentation)</div></div></td><td></td></tr></tbody></table>

</div><div id="bkmrk-error-response"><div id="bkmrk-error-response-1"><div>##### Error response

</div></div></div><div>Possible errors that can occur:</div><span>Invalid `call-id`</span><span>Invalid `phone-number-id`</span><span>Error related to your payment method</span><span>Invalid Connection info, for example, SDP or ICE</span><span>Accept/Reject an already In Progress/Completed/Failed call</span><span>Permissions/Authorization errors</span><div>[View Calling API Error Codes and Troubleshooting for more information](/books/meta-whatsapp/page/troubleshoot-whatsapp-calling-errors-reference-guide-developer-documentation)</div><div>[View general Cloud API Error Codes here](/documentation/business-messaging/whatsapp/support/error-codes)</div><div id="bkmrk-accept-call"><div id="bkmrk-accept-call-1"><div>#### Accept call

</div></div></div><div>Use this endpoint to connect to a call by providing a call agent’s SDP.</div><div>You have about 30 to 60 seconds after the [Call Connect Webhook](/books/meta-whatsapp/page/user-initiated-calls-developer-documentation) is sent to accept the phone call. If your business does not respond, the call is terminated on the WhatsApp user side with a “Not Answered” notification and a [Terminate Webhook](/books/meta-whatsapp/page/user-initiated-calls-developer-documentation) is delivered back to you.</div><div id="bkmrk-body-parameters-3"><div id="bkmrk-body-parameters-4"><div>##### Body parameters

</div></div></div><div id="bkmrk-error-response-3"><div id="bkmrk-error-response-4"><div>##### Error response

</div></div></div><div>Possible errors that can occur:</div><span>Invalid `call-id`</span><span>Invalid `phone-number-id`</span><span>Error related to your payment method</span><span>Invalid Connection info, for example, SDP or ICE</span><span>Accept/Reject an already In Progress/Completed/Failed call</span><span>Permissions/Authorization errors</span><span>SDP answer provided in accept does not match the SDP answer given in the [Pre-Accept endpoint](/books/meta-whatsapp/page/user-initiated-calls-developer-documentation) for the same `call-id`</span><div>[View Calling API Error Codes and Troubleshooting for more information](/books/meta-whatsapp/page/troubleshoot-whatsapp-calling-errors-reference-guide-developer-documentation)</div><div>[View general Cloud API Error Codes here](/documentation/business-messaging/whatsapp/support/error-codes)</div><div id="bkmrk-reject-call"><div id="bkmrk-reject-call-1"><div>#### Reject call

</div></div></div><div>Use this endpoint to reject a call.</div><div>You have about 30 to 60 seconds after the [Call Connect webhook](/books/meta-whatsapp/page/user-initiated-calls-developer-documentation) is sent to accept the phone call. If the business does not respond, the call is terminated on the WhatsApp user side with a “Not Answered” notification and a [Terminate Webhook](/books/meta-whatsapp/page/user-initiated-calls-developer-documentation) is delivered back to you.</div><div id="bkmrk-body-parameters-6"><div id="bkmrk-body-parameters-7"><div>##### Body parameters

</div></div></div><div><table><thead><tr><th><span>Parameter </span></th><th><span>Description </span></th><th><span>Sample Value </span></th></tr></thead><tbody><tr><td><div><div>`call_id`</div><div>*String*</div></div></td><td><div><div>**Required**</div><div>  
The ID of the phone call.</div><div>For inbound calls, you receive a call ID from the [Call Connect webhook](/books/meta-whatsapp/page/user-initiated-calls-developer-documentation) when a WhatsApp user initiates the call.</div></div></td><td><div><div>`“wacid.ABGGFjFVU2AfAgo6V-Hc5eCgK5Gh”`</div></div></td></tr><tr><td><div><div>`action`</div><div>*String*</div></div></td><td><div><div>**Optional**</div><div>  
The action being taken on the given call ID.</div><div>Values can be `connect` | `pre_accept` | `accept` | `reject` | `terminate`</div></div></td><td><div><div>`“reject”`</div></div></td></tr></tbody></table>

</div><div id="bkmrk-error-response-6"><div id="bkmrk-error-response-7"><div>##### Error response

</div></div></div><div>Possible errors that can occur:</div><span>Invalid `call-id`</span><span>Invalid `phone-number-id`</span><span>Accept/Reject an already In Progress/Completed/Failed call</span><span>Permissions/Authorization errors</span><div>[View Calling API Error Codes and Troubleshooting for more information](/books/meta-whatsapp/page/troubleshoot-whatsapp-calling-errors-reference-guide-developer-documentation)</div><div>[View general Cloud API Error Codes here](/documentation/business-messaging/whatsapp/support/error-codes)</div><div id="bkmrk-terminate-call"><div id="bkmrk-terminate-call-1"><div>#### Terminate call

</div></div></div><div>Use this endpoint to terminate an active call.</div><div>This must be done even if there is an `RTCP BYE` packet in the media path. Ending the call this way also ensures pricing is more accurate.</div><div>When the WhatsApp user terminates the call, you do not have to call this endpoint. Once the call is successfully terminated, a [Call Terminate Webhook](/books/meta-whatsapp/page/user-initiated-calls-developer-documentation) will be sent to you.</div><div id="bkmrk-body-parameters-9"><div id="bkmrk-body-parameters-10"><div>##### Body parameters

</div></div></div><div><table><thead><tr><th><span>Parameter </span></th><th><span>Description </span></th><th><span>Sample Value </span></th></tr></thead><tbody><tr><td><div><div>`call_id`</div><div>*String*</div></div></td><td><div><div>**Required**</div><div>  
The ID of the phone call.</div><div>For inbound calls, you receive a call ID from the [Call Connect webhook](/books/meta-whatsapp/page/user-initiated-calls-developer-documentation) when a WhatsApp user initiates the call.</div></div></td><td><div><div>`“wacid.ABGGFjFVU2AfAgo6V-Hc5eCgK5Gh”`</div></div></td></tr><tr><td><div><div>`action`</div><div>*String*</div></div></td><td><div><div>**Optional**</div><div>  
The action being taken on the given call ID.</div><div>Values can be `connect` | `pre_accept` | `accept` | `reject` | `terminate`</div></div></td><td><div><div>`“terminate”`</div></div></td></tr></tbody></table>

</div><div id="bkmrk-error-response-9"><div id="bkmrk-error-response-10"><div>##### Error response

</div></div></div><div>Possible errors that can occur:</div><span>Invalid `call-id`</span><span>Invalid `phone-number-id`</span><span>Accept/Reject an already In Progress/Completed/Failed call</span><span>Reject call is already in progress</span><span>Permissions/Authorization errors</span><div>[View Calling API Error Codes and Troubleshooting for more information](/books/meta-whatsapp/page/troubleshoot-whatsapp-calling-errors-reference-guide-developer-documentation)</div><div>[View general Cloud API Error Codes here](/documentation/business-messaging/whatsapp/support/error-codes)</div><div id="bkmrk-webhooks-for-user-in"><div id="bkmrk-webhooks-for-user-in-1"><div>### Webhooks for user-initiated calling

</div></div></div><div>With all Calling API webhooks, there is a `”calls”` object inside the `”value”` object of the webhook response. The `”calls”` object contains metadata about the call that is used to action on each call received by your business.</div><div>To receive Calling API webhooks, subscribe to the calls webhook field.</div><div>[Learn more about Cloud API webhooks here](/books/meta-whatsapp/page/managing-webhooks-developer-documentation)</div><div id="bkmrk-call-terminate-webho"><div id="bkmrk-call-terminate-webho-1"><div>#### Call Terminate webhook

</div></div></div><div>A webhook notification is sent whenever the call has been terminated for any reason, such as when the WhatsApp user hangs up, or when the business calls the endpoint with an action of `terminate` or `reject`.</div><div id="bkmrk-webhook-values-for-%22-3"><div id="bkmrk-webhook-values-for-%22-4"><div>##### Webhook values for `"calls"`

</div></div></div><div><table><thead><tr><th><span>Placeholder </span></th><th><span>Description </span></th></tr></thead><tbody><tr><td><div><div>`id`</div><div>*String*</div></div></td><td><div><div>A unique ID for the call</div></div></td></tr><tr><td><div><div>`to`</div><div>*Integer*</div></div></td><td><div><div>The number being called (callee)</div></div></td></tr><tr><td><div><div>`from`</div><div>*Integer*</div></div></td><td><div><div>The number of the caller</div></div></td></tr><tr><td><div><div>`event`</div><div>*Integer*</div></div></td><td><div><div>The calling event that this webhook is notifying the subscriber of</div></div></td></tr><tr><td><div><div>`timestamp`</div><div>*Integer*</div></div></td><td><div><div>The UNIX timestamp of the webhook event</div></div></td></tr><tr><td><div><div>`direction`</div><div>*String*</div></div></td><td><div><div>The direction of the call being made.</div><div>Can contain either:</div><div>`BUSINESS_INITIATED`, for calls initiated by your business.</div><div>`USER_INITIATED`, for calls initiated by a WhatsApp user.</div></div></td></tr><tr><td><div><div>`deeplink_payload`</div><div>*String*</div></div></td><td><div><div>Arbitrary string specified in `biz_payload` query param on a call deeplink. Will only be returned if call was initiated from a deeplink with such param.</div><div>See [Call Button Messages and Deep Links ](/books/meta-whatsapp/page/send-whatsapp-call-button-messages-and-deep-links-developer-documentation)for more details.</div></div></td></tr><tr><td><div><div>`cta_payload`</div><div>*String*</div></div></td><td><div><div>Arbitrary string specified in `payload` field on a call button. Will only be returned if call was initiated from a call button with payload.</div><div>See [Call Button Messages and Deep Links ](/books/meta-whatsapp/page/send-whatsapp-call-button-messages-and-deep-links-developer-documentation)for more details.</div></div></td></tr><tr><td><div><div>`start_time`</div><div>*Integer*</div></div></td><td><div><div>The UNIX timestamp of when the call started.</div><div>Only present when the call was picked up by the other party.</div></div></td></tr><tr><td><div><div>`end_time`</div><div>*Integer*</div></div></td><td><div><div>The UNIX timestamp of when the call ended.</div><div>Only present when the call was picked up by the other party.</div></div></td></tr><tr><td><div><div>`duration`</div><div>*Integer*</div></div></td><td><div><div>Duration of the call in seconds.</div><div>Only present when the call was picked up by the other party.</div></div></td></tr><tr><td><div><div>`biz_opaque_callback_date`</div><div>*String*</div></div></td><td><div><div>Arbitrary string your business passes into the call for tracking and logging purposes.</div><div>Will only be returned if provided through an [Initiate Call request](/books/meta-whatsapp/page/api-and-webhook-reference-developer-documentation) or [Accept Call request](/books/meta-whatsapp/page/user-initiated-calls-developer-documentation)</div></div></td></tr><tr><td><div><div>`errors.code`</div><div>*Integer*</div></div></td><td><div><div>The `errors` object is present only for failed calls when there is error information available. Code is one of the [calling error codes](/books/meta-whatsapp/page/troubleshoot-whatsapp-calling-errors-reference-guide-developer-documentation)</div></div></td></tr></tbody></table>

</div><div id="bkmrk-dual-tone-multi-freq"><div id="bkmrk-dual-tone-multi-freq-1"><div>### Dual tone multi frequency (DTMF) support

</div></div></div><div><div>**The dialpad provided by the Calling API only supports DTMF use cases.**</div><div>It does not support consumer-to-consumer calls and does not change any other calling behaviors. For example, the dialpad cannot be used to dial a number and initiate a call or message on WhatsApp.</div></div><div>WhatsApp Business Calling API supports DTMF tones, with the intention to enable BSP applications to support IVR-based systems.</div><div>WhatsApp users can press tone buttons on their client app and these DTMF tones are injected into the WebRTC RTP stream established as a part of the VoIP connection.</div><div>Our WebRTC stream conforms to [RFC 4733<span>⁠</span>](https://l.facebook.com/l.php?u=https%3A%2F%2Fdatatracker.ietf.org%2Fdoc%2Fhtml%2Frfc4733&h=AT4zZJ9FzVQ3vNp7-OCABiqHLC3SPrGAQtzla4yYj9jwhSTiuCZ2EKCnf-0cMLGDfqMr7vChT5WqyVtsmzBWeBYJOdkhM4SK2yuxDvEMd71LwzH7HChGIeKD-eZLKpI_Cky4wQvRzj0SmR0ODAIvKA) for the transfer of DTMF Digits via RTP Payload.</div><div>There is no webhook for conveying DTMF digits.</div><div id="bkmrk-dtmf-clock-rate"><div id="bkmrk-dtmf-clock-rate-1"><div>#### DTMF clock rate

</div></div></div><div>Only 8000 clock rate is supported in our SDPs. For user-initiated calls, our SDP offer includes only 8000 clock rate. For business-initiated calls, your SDP offer should have 8000 clock rate. Even if it is absent, the API still proceeds with 8000 clock rate against payload type 126.</div><div>The RTP packets representing DTMF events will use the same timestamp base and sequence number base as the regular audio packets. So you don’t have to worry about differing clock rates between audio packets and DTMF packets. The [duration field<span>⁠</span>](https://l.facebook.com/l.php?u=https%3A%2F%2Fdatatracker.ietf.org%2Fdoc%2Fhtml%2Frfc4733%23section-2.3.5&h=AT4zZJ9FzVQ3vNp7-OCABiqHLC3SPrGAQtzla4yYj9jwhSTiuCZ2EKCnf-0cMLGDfqMr7vChT5WqyVtsmzBWeBYJOdkhM4SK2yuxDvEMd71LwzH7HChGIeKD-eZLKpI_Cky4wQvRzj0SmR0ODAIvKA) of the DTMF packet is calculated using 8000 clock units.</div><div>The API does not support 48000 clock rate for DTMF.</div><div id="bkmrk-sending-dtmf-digits-"><div id="bkmrk-sending-dtmf-digits--1"><div>#### Sending DTMF digits on consumer WhatsApp client

</div></div></div><div>WhatsApp client applications are enhanced to have a dialpad for calls with CloudAPI business phone numbers. The WhatsApp user can press the buttons on the dialpad and send DTMF tones.</div><div>![WhatsApp client dialpad interface for DTMF tones](https://support.chatarchitect.com/uploads/images/gallery/2026-04/embedded-image-wzp7ueo4.jpeg)</div><div id="bkmrk-sdp-overview-and-sam"><div id="bkmrk-sdp-overview-and-sam-1"><div>### SDP overview and sample SDP structures

</div></div></div><div>Session Description Protocol (SDP) is a text-based format used to describe the characteristics of multimedia sessions, such as voice and video calls, in real-time communication applications. SDP provides a standardized way to convey information about the session’s media streams, including the type of media, codecs, protocols, and other parameters necessary for establishing and managing the session.</div><div>In the context of WebRTC, SDP is used to negotiate the media parameters between the sender and receiver, enabling them to agree on the specifics of the media exchange.</div><div>[View SDP sample structures for user-initiated calls](/books/meta-whatsapp/page/api-and-webhook-reference-developer-documentation)</div></div>