initiate_call
Handle inbound and outbound WhatsApp call actions—connect, accept, pre_accept, reject, terminate—using call IDs and WebRTC SDP sessions.
Instructions
Perform a WhatsApp Calling action (beta).
Proxies upstream POST /calling/calls. Despite the historical path
name /initiateCall, this endpoint handles all call actions:
action | Use | Required |
| Outbound business → user |
|
| Inbound (optional, reduces audio clipping) |
|
| Inbound answer |
|
| Decline inbound |
|
| Hang up |
|
SDP / media (critical)
accept/pre_acceptrequire a WebRTC-generated SDP answer.Do not send Meta's offer SDP back as the answer.
Postman (or curl) alone cannot establish real media — you need a WebRTC or SIP stack. 1msg only proxies signaling.
Answer within ~30–60 seconds of an inbound connect webhook or Meta
terminates as unanswered. Common Meta errors include Calling not enabled
(138000), no permission (138006), SDP validation failures.
Outbound requires a prior Call Permission Request (CPR) acceptance. See the Calling tag overview for the full outbound flow and CPR limits.
Trial / subscriptionBlocked → 403 plain text.
Upstream failures often return HTTP 200 with { "response": { "error": "<upstream message>" } }.
Invalid API KEY is used only when Meta/360 body actually indicates an
invalid API key or token. Other upstream 401s (notably call permission
138006) pass through error.message / error_user_msg.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"messaging_product": "<messaging_product>",
"action": "<action>"
},
"name": "initiate_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| action | Yes | ||
| call_id | No | ||
| session | No | ||
| messaging_product | Yes | ||
| biz_opaque_callback_data | No |