Call Webhooks
VoIP call events arrive at your number’s call webhook (calls_webhook), separate from the messaging webhook. Each notification is sent with the header User-Agent: Positus.
Event types
Only the connect and terminate events generate webhooks. The actions of accepting, rejecting, or ending a call are performed through the Call API and do not generate webhook notifications.
Envelope delivered to client
The webhook delivered follows Meta’s standard webhook format, with the call object insideentry[].changes[].value.calls[]:
Example: terminate event
Processing
The webhook payload follows Meta’s notification standard. To process the events, read the call object in
entry[0].changes[0].value.calls[]. Each call contains a unique identifier (id) that you can use to track the call in your application.Next steps
- Introduction to WhatsApp Calling — concepts and prerequisites.
- Call API — initiate, accept, reject, and end calls.