WAHooks
Concepts

Webhooks

Real-time event delivery to your application

Webhooks notify your application when events occur on a WhatsApp connection — incoming messages, delivery receipts, status changes, and more.

How it works

WhatsApp → WAHA Pod → WAHooks API → BullMQ Queue → Your Webhook URL
  1. A WhatsApp event occurs (message received, status change, etc.)
  2. WAHA forwards it to the WAHooks API
  3. The API matches the event to your webhook configs
  4. The event is enqueued for reliable delivery via BullMQ
  5. The delivery processor sends an HTTP POST to your URL

Event filtering

Each webhook config has an events array that controls which events are delivered:

  • ["*"] — receive all events (default)
  • ["message"] — only incoming messages
  • ["message", "message.any"] — incoming + outgoing messages
  • ["session.status"] — only session status changes

Delivery guarantees

PropertyValue
Retry attempts5
BackoffExponential: 5s, 10s, 20s, 40s, 80s
Timeout15 seconds per attempt
Dead letter queueLast 1000 failed deliveries retained

Your endpoint must return a 2xx status code within 15 seconds, otherwise the delivery is retried.

Automatic pausing

If every delivery to a webhook fails all its retries for 3 days, WAHooks pauses it (active: false, pausedReason: "failing") and stops sending to it. One successful delivery resets the clock. While deliveries are failing, the webhook shows failingSince, the time the run of failures began.

To resume a paused webhook, fix the endpoint, then turn it back on in the dashboard or with PUT /api/webhooks/:id and { "active": true }. Registering the same URL again on the same connection also resumes it.

Multiple webhooks

You can create multiple webhook configs per connection. Each receives events independently — useful for sending different event types to different services.

Delivery logs

Every webhook delivery is logged with status, attempt count, and the full payload; the last 100 deliveries per webhook are kept. Use the logs endpoint or CLI to inspect deliveries:

wahooks webhooks logs WEBHOOK_ID

On this page