Register your webhook endpoint
set_webhookPoint whatsapi.sh at an https URL and start receiving events there. The answer carries the signing secret ONCE, on first registration: keep it. Every delivery is signed with it in the x-whatsapi-signature header (t=<unix>,v1=<hmac-sha256 of "<t>.<body>">), and that signature is how you know a request is really from us. Calling this again updates the URL or the subscription and keeps the same secret unless you ask to rotate it. Saving also re-enables an endpoint we had disabled. Free.
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 | Where to POST events, e.g. https://api.yourapp.com/webhooks/whatsapp. | |
| events | No | Which events to receive: message.created, message.sent, message.failed, message.status, number.connected, number.disconnected, number.logged_out, number.history_synced. Defaults to all of them. | |
| rotateSecret | No | Mint a new signing secret and return it. The old one stops working. |