Reject an incoming call
reject_callReject an incoming WhatsApp call using the call ID and caller from a call.received webhook event. Enable automatic call rejection in account settings.
Instructions
Reject a WhatsApp call ringing on the account, with the id and from of its call.received webhook event. To reject every call automatically, set rejectCalls with update_account.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"accountId": "<accountId>",
"callId": "<callId>",
"from": "<from>"
},
"name": "reject_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | The caller: `data.object.from` of the same event. | |
| callId | Yes | The call id: `data.object.id` of the `call.received` event. | |
| accountId | Yes | The wuapi account id of the linked number to act as (from list_accounts). | |
| idempotencyKey | No | Optional. Reuse the same key when retrying this exact call: within 24 hours wuapi returns the first result instead of doing it twice. |