set_webhook
Configure the webhook URL and event subscriptions for the active WhatsApp instance so incoming events are sent to your endpoint, with optional base64 media and enablement controls.
Instructions
Set the webhook URL and event subscriptions for the active instance.
Available events:
MESSAGES_UPSERT
MESSAGES_UPDATE
MESSAGE_RECEIPT_UPDATE
CONNECTION_UPDATE
QRCODE_UPDATED
CONTACTS_UPSERT
CONTACTS_UPDATE
PRESENCE_UPDATE
CHATS_UPSERT
GROUPS_UPSERT
GROUP_PARTICIPANTS_UPDATE
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": {
"url": "<url>"
},
"name": "set_webhook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Webhook endpoint URL | |
| base64 | No | Include media as base64 in webhook payloads | |
| events | No | Event types to subscribe to. Omit to use an empty event list. | |
| enabled | No | Enable or disable the webhook | |
| byEvents | No | When true, WapiSender sends event-specific webhook payloads |