[GOWS] Reject calls (all incoming)
Discussed in https://github.com/devlikeapro/waha/discussions/1252
Originally posted by igordisco August 20, 2025 I currently have a WhatsApp number that's often used for chatbot support, and people keep adding it to groups.
Okay, the problem is that a lot of people call. It's on my cell phone, and I can't automatically reject calls via cell phone.
Other APIs have a select option called "reject call." I noticed there's no API for rejecting calls, so I don't know how it works.
But I think it would be really cool to automatically reject calls.
+1
+1
Just to add, other implementations allow you to set an optional message when the call is rejected.
I’ll send a code snippet soon.
+1
https://github.com/WhiskeySockets/Baileys/issues/890
This is how they do in Baileys. I hope that helps.
+1
+1
+1
+1
@devlikepro Hi! First of all, thank you for your great work on this project. I’d like to ask if there’s any plan or estimated timeframe to implement a call rejection feature, since many users have been requesting it lately.
✅ Ready and available in dev images:
devlikeapro/waha-plus:dev— make sure to select the engine via the environment variabledevlikeapro/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
- Listen
call.received- getfromandidfield - Call
POST /api/{session}/calls/reject - 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