Reject call
Rejects an incoming call, using the call_id and from from the call webhook (status received). The caller sees the call drop within 1 to 2 seconds (measured with real WhatsApp). A rejection made here does not trigger the call webhook with status rejected: WhatsApp only sends it when the caller gives up or when the call is rejected on the phone. This route's 200 response is the confirmation.
X-Api-Key: wpf_YOUR_KEYThe connection's API key (wpf_...), generated in the dashboard.
Authorization: Bearer wpf_YOUR_KEYThe same key in Authorization: Bearer wpf_... (what n8n, Make and HTTP libraries support out of the box).
Idempotency-Key?stringOptional. Repeating the same value within 24 h, with the same API key, returns the first response without sending again. See Idempotency in the introduction.
application/json- body
call_id*stringThe call id, from the call event (status received).
from*stringWho is calling: the from of the same event (the phone number), or the chatId.
Call rejected.
application/json- response
data*curl -X POST 'https://app.wappfy.io/api/v1/calls/reject' \ -H 'X-Api-Key: wpf_YOUR_KEY' \ -H 'Content-Type: application/json' \ -d '{ "call_id": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", "from": "5581999999999"}'{ "data": { "call_id": "string", "rejected": true }}
