Webhooks

Configure WhatsBox webhook subscriptions to receive real-time incoming WhatsApp messages, delivery status updates, and SMB app echoes secured with HMAC-SHA256.

Webhooks push real-time HTTPS notifications to your backend whenever WhatsApp messages arrive, change delivery status, or are echoed from a connected WhatsApp Business mobile app.

Managing webhooks requires Admin or Owner access. For full payload schemas and REST endpoints, see the Webhook Subscriptions API Reference.

Supported Webhook Events

Event TypeLabelTrigger
message.incomingIncoming MessageA customer sends a message to your WhatsApp number (selected by default).
message.outgoing.status_updateMessage Status UpdateAn outbound message updates to sent, delivered, or read.
message.smb_echoSMB Message EchoA message is sent directly from your connected WhatsApp Business mobile app or linked device (Coexistence).

Creating a Webhook Subscription

Open Webhooks Settings

Navigate to Settings > Webhooks and click Add Webhook.

Configure Target Channel & Endpoint

  • WhatsApp Channel (required): Select the WhatsApp number to monitor (one channel per subscription).
  • Reference Name (required): Internal identifier (1–100 characters).
  • Platform / System (required): Target system label (1–100 characters, automatically uppercased).
  • Endpoint URL (required): Public http:// or https:// URL that accepts POST JSON payloads.
  • Subscribed Events (required): Select at least one event type.

Enter an optional Secret Token. WhatsBox signs every webhook request using HMAC-SHA256 and sends the hex digest in the X-WhatsBox-Signature HTTP header so your server can verify requests are authentic.


Editing, Deleting & System-Managed Webhooks

  • Edit / Rotate Secret: Open any webhook to update its URL, events, or click Change Secret to rotate the signing token (or leave blank and save to remove the secret). Stored secrets display masked (****xxxx).
  • Delete: Removes the subscription immediately. (Note: Webhooks do not have a pause/disable toggle—delete a subscription to stop deliveries.)
  • System Managed (Slack): Subscriptions labeled System Managed (Slack) (platform: SLACK_BRIDGE) power your Slack Bridge and are read-only (Edit and Delete are disabled).

Troubleshooting

IssueCause & Fix
Webhook signature verification failsVerify your server computes HMAC-SHA256 over the raw request body using your exact Secret Token and compares it against the X-WhatsBox-Signature header.
Edit and Delete buttons are disabled on a webhookThat webhook is System Managed (Slack) and managed automatically by your Slack Bridge integration.
Not receiving mobile app replies in webhookMake sure message.smb_echo is checked in Subscribed Events for your Coexistence channel.