waha icon indicating copy to clipboard operation
waha copied to clipboard

[WEBJS] Reject the call

Open OdayM-Dev opened this issue 2 years ago â€ĸ 3 comments

WEBJS

image

patron:PLUS

OdayM-Dev avatar Oct 26 '24 02:10 OdayM-Dev

Related https://github.com/devlikeapro/waha/issues/1258

patron:PRO

devlikepro avatar Aug 20 '25 10:08 devlikepro

✅ Ready and available in dev images:

  • devlikeapro/waha-plus:dev — make sure to select the engine via the environment variable
  • devlikeapro/waha-plus:dev-arm

🚀 Will be included in the next release!


API

Reject Call

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

POST /api/{session}/calls/reject
{
  "from": "[email protected]",
  "id": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
}

👉 Available on WEBJS, GOWS, NOWEB

WAHA emits call.rejected event after the call is declined.


To reject any calls

  1. Listen call.received - get from and id field
  2. Call POST /api/{session}/calls/reject
  3. Send a message or ban the contact, idk.

â„šī¸ If anyone needs to "automatically reject calls" with "auto-reply messages" - we'll add it as a calls app, comment +1 the issue https://github.com/devlikeapro/waha/issues/1694

patron:PRO

devlikepro avatar Dec 03 '25 06:12 devlikepro

2025.12.1 - API - 📞 Reject Call API - #608 #1258

  • WEBJS, GOWS, NOWEB

patron:PRO

devlikepro avatar Dec 05 '25 08:12 devlikepro