Aramalar

Reject call

POST
/calls/reject

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.

Yetkilendirme

X-Api-Key: wpf_YOUR_KEY

The connection's API key (wpf_...), generated in the dashboard.

Authorization: Bearer wpf_YOUR_KEY

The same key in Authorization: Bearer wpf_... (what n8n, Make and HTTP libraries support out of the box).

Başlık parametreleri

Idempotency-Key?string

Optional. Repeating the same value within 24 h, with the same API key, returns the first response without sending again. See Idempotency in the introduction.

İstek gövdesi

application/json
  1. body
call_id*string

The call id, from the call event (status received).

from*string

Who is calling: the from of the same event (the phone number), or the chatId.

Yanıt gövdesi

Call rejected.

application/json
  1. 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  }}