Skip to main content
Use the standard Register Webhook API with any of the WhatsApp events: report.send, bill.send, booking.send, phlebotomist.send, quotation.send. They work like every other event: you can register them on their own or together with other events, and the same rules apply.

Register

Get the authToken from Auth Token.
Register each WhatsApp event once per branch. Every active webhook that includes an event gets its own copy of it, and Flabs does not stop you from registering the same event again. If two webhooks include booking.send (for example, you registered again instead of deleting first), every booking message reaches your side twice and the patient gets the WhatsApp twice. Check View before registering, and to change a webhook, delete it first.
Party-scoped accounts: a catch-all webhook, if you have one, receives every message. Otherwise a message goes to the webhook of its bill’s or lead’s party; messages with no matching webhook go out the normal way. A bill whose corporate client and referring organization both have a webhook for the event is delivered to both, so make sure only one of them sends the WhatsApp.

Responses

Same as Register Webhook.
200 Registered

View

GET /client/events/getAllEvents?labID=<labID>. Your WhatsApp webhook is the row whose events include the WhatsApp events. If more than one row includes the same WhatsApp event, delete the extras.
200

Remove or change

DELETE /client/events/deleteEvent/<_id>?labID=<labID>. Flabs goes back to sending these messages the normal way immediately. To change the URL or the events, delete it and register again. Registering again without deleting adds a second webhook, and the messages are then sent twice.
200
Testing locally? Expose your webhook with a tunnel (e.g. ngrok) and register the public https:// URL.