Set Webhook
wa_set_webhook[Not usable in this workspace: it acts on every number, and not every number's plan includes it — calling it returns a plan_required refusal; wa_get_plan lists each number's plan.] Register an HTTPS endpoint to receive WhatsApp events as they happen, so you do not have to poll wa_list_messages. By default it delivers inbound messages; pass events to also receive outbound messages (sent from your number), message delivery status (delivered/read/failed), account lifecycle events (connected, disconnected, unlinked, blocked), and call events (completed, missed). Returns a signing secret that is shown ONCE — store it immediately. Calling this again replaces the endpoint and issues a NEW secret.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | an https:// URL that will receive POSTed events; must be publicly reachable | |
| events | No | which events to receive — any of message.inbound, message.outbound, message.status, account.connected, account.disconnected, account.unlinked, account.blocked, call.completed, call.missed; defaults to message.inbound |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| events | No | ||
| secret | No | the signing secret — shown ONCE; store it now, it cannot be retrieved later | |
| refusal | No | present only when the request was declined | |
| warning | No | ||
| webhook_id | No | ||
| verification | No | ||
| test_delivery | No |