Create a WhatsApp webhook
Registers a webhook that receives one group of your account’s WhatsApp events and returns it with its signing secret.
Create a webhook for each group of events you need, with the same URL or different ones, so your server learns about these events without polling.
Behavior: Returns 201 with the new webhook. The secret can’t be retrieved later; to replace it, delete the webhook and create a new one. The webhook receives only events that Wavix records after it’s created; read earlier ones with List WhatsApp events.
Requires: Your account must have the WhatsApp channel enabled, must have a subscription plan, and must not be blocked or suspended.
Authorizations
Wavix API key. Pass as Authorization: Bearer <api_key>. Keys support per-resource scopes (none / read / write). See Restricted keys and scopes.
Body
Attributes of the webhook to create.
Body of the request that creates a WhatsApp webhook.
Group of WhatsApp event types that a webhook receives. Your account can have one webhook per group. Possible values:
messages— Messages your senders receive, the delivery outcome of messages you send, and contacts' marketing preferences.templates— Changes to the status, category, and quality rating of your templates.senders— Changes to the status and quality rating of your senders.
messages, templates, senders "messages"