whsec_
Notifications2 min read

Webhooks

Get new messages, delivery results and number changes on your server the moment they happen, signed so you know they came from Rimbra.

Events
Messages, deliveries and number changes
Signing
HMAC-SHA256 with your secret
Retries
Up to three, waiting longer each time
Testing
Send a test event from the dashboard

Events

EventSent when
message.receivedSomeone messages one of your numbers
message.sentYour message was handed to WhatsApp
message.failedA message couldn’t be sent, with the reason
number.connectedA number finished linking
number.disconnectedA number was logged out from the phone

Add an endpoint

  1. 01

    Open WhatsApp → Webhooks and choose Add endpoint.

  2. 02

    Enter your https URL and pick the events you want.

  3. 03

    Copy the signing secret.

  4. 04

    Send a test event and check Recent deliveries.

Signed, so you can trust it

Every request carries the event name, a timestamp and a signature made with your secret. Your server checks the signature and the timestamp before acting, so nobody else can fake an event or replay an old one.

Retries and pauses

  • Answer with a 2xx status within 10 seconds.
  • Failed deliveries are retried up to three times, waiting longer each time.
  • Every attempt shows under Recent deliveries with its response code.
  • Pause an endpoint with its switch while you fix your server.

Answer fast. Store the event and return 200 straight away, then do the slow work in the background.

Questions

How do I check a signature?

The docs show the exact steps and a short example for Node.js.

Can I have more than one endpoint?

Yes. Add as many as you need, each with its own events and secret.

Launch it on Rimbra.

Free to start. No card. Your first app is live in about a minute.