Configure webhook
set_webhookConfigures or replaces an instance webhook so ZapZap POSTs incoming messages, status, and connection events to a public HTTPS URL; review the existing webhook first, then verify it.
Instructions
Sets or replaces the instance webhook: ZapZap will POST events (incoming messages, status, connection changes) to this public HTTPS URL. Replaces any previous webhook, so call get_webhook first and confirm with the user. Follow with test_webhook.
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 | Public HTTPS URL that will receive events. | |
| events | No | Comma-separated event names to receive. Empty = all events. | |
| instance_id | No | ZapZap instance id (a connected WhatsApp number). Optional when ZAPZAP_INSTANCE_ID is configured; otherwise call list_instances first. | |
| exclude_own_messages | No | Do not deliver messages sent by the instance itself. |