OpenWA icon

OpenWA

Interact with OpenWA WhatsApp API Gateway

Actions138

Call → Reject

AI-generated

Summary

Reject a ringing WhatsApp call using the session ID and call ID. Both parameters are required. The call ID is typically obtained from a Trigger's call.received event.

Inputs

  • sessionId (required) — The ID of the session. Choose from the list, or specify an ID using an expression.
  • callId (required) — The ID of the call, as delivered by the Trigger's call events. Baileys only: whatsapp-web.js answers 501 (OpenWA ≥ 0.23.6; older servers reported a rejection that did not stop the call ringing).

Output shape

The operation does not return specific data; it performs the action of rejecting the call.

Success is indicated by the absence of an error. The operation is typically used in conjunction with a Trigger that emits call.received events to automatically decline incoming calls.

Examples

Example 1: Auto-decline incoming calls

Connect a Trigger node (e.g., OpenWA Trigger set to emit on call.received) to this Reject operation. Map the Trigger's call ID output to the callId input, and provide the session ID either statically or via expression.

Links

Discussion