📞 Calls

You can receive events about calls in WhatsApp using API!

WhatsApp Calls

Features

Here’s the list of features that are available by 🏭 Engines:

📞 Calls - API
APIWEBJSGOWSNOWEB
Reject call
POST /api/{session}/calls/reject
✔️✔️✔️
📞 Calls - Events
EventsWEBJSGOWSNOWEB
call.received✔️✔️✔️
call.accepted✔️✔️
call.rejected✔️¹✔️✔️
  1. WEBJS - call.rejected works only when you rejected the call via API

API

Reject Call

Decline an incoming call using its call id and chat id from the call.received event.

POST /api/{session}/calls/reject
Body
{
  "from": "22222222222@c.us",
  "id": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
}

👉 Available on WEBJS, GOWS, NOWEB

WAHA emits call.rejected after the call is declined.

Events

Read more about 🔄 Events.

call.received

You received an incoming call in WhatsApp (either 1-on-1 or group call).

call.received
{
  "event": "call.received",
  "session": "default",
  "payload": {
    "id": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
    "from": "22222222222@c.us",
    "timestamp": 1721374000,
    "isVideo": false,
    "isGroup": false,
    "_data": {}
  },
  ...
}

call.accepted

Happens when an incoming call is accepted (on another device) in WhatsApp (either 1-on-1 or group call).

call.accepted
{
  "event": "call.accepted",
  "session": "default",
  "payload": {
    "id": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
    "from": "22222222222@c.us",
    "timestamp": 1721374000,
    "isVideo": false,
    "isGroup": false,
    "_data": {}
  },
  ...
}

call.rejected

Call has been rejected or terminated.

call.rejected
{
  "event": "call.rejected",
  "session": "default",
  "payload": {
    "id": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
    "from": "22222222222@c.us",
    "timestamp": 1721374000,
    "isVideo": false,
    "isGroup": false,
    "_data": {}
  },
  ...
}