Register Webhook
Subscribe to webhook events to receive real-time notifications when bills, reports, leads, or bookings change.
Catch-all accounts (default): do not send a party — one webhook receives every event for the lab.
Party-scoped accounts: you MUST attach a party (corporateUser or organization); the webhook then receives only that party’s events. A party may have only one active webhook per event (a duplicate returns 409). Sending a party on a catch-all account (or omitting it on a party-scoped account) returns 400.
Overview
Register your application to receive webhook notifications for specific events in the Flabs system. This endpoint allows you to subscribe to real-time notifications across the bill, report, and CRM booking lifecycle — from a bill being created or completed to a phlebotomist collecting and submitting a sample.Authentication
This endpoint requires a valid Bearer token obtained from the authentication API.Request Parameters
All parameters are sent in the request body as JSON:corporateUser or organization (not both); the webhook then receives only that party’s events. See integration modes.Supported Events
Bill & report eventsbill.created- New bill createdbill.completed- Entire bill completed (all reports finished)bill.deleted- Bill deleted from systemreport.completed- Individual report completed
lead.created- New CRM lead createdbooking.created- New CRM booking created (or a lead converted to a booking)booking.phlebotomist_assigned- A phlebotomist was assigned to the bookingbooking.phlebotomist_arrived- The phlebotomist reached the patient’s locationbooking.phlebotomist_sample_collected- The phlebotomist collected the samplebooking.phlebotomist_sample_submitted- The sample was submitted back to the lab (auto-creates the bill)booking.rescheduled- The booking’s scheduled date or time was changedbooking.cancelled- The booking was cancelled
Authorizations
JWT token obtained from the authentication endpoint
Body
Flabs lab (branch) identifier. Fetch the list of labs via GET /client/labs.
List of events to subscribe to
bill.created, bill.deleted, bill.completed, report.completed, lead.created, booking.created, booking.phlebotomist_assigned, booking.phlebotomist_arrived, booking.phlebotomist_sample_collected, booking.phlebotomist_sample_submitted, booking.rescheduled, booking.cancelled Your webhook endpoint URL that will receive the event notifications (must accept POST requests)
Protocol for webhook delivery (only HTTPS is supported)
https Party-scoped accounts only. Deliver only this corporate's events to the webhook. Pass either corporateUser or organization, not both.
Party-scoped accounts only. Deliver only this doctor/hospital's events to the webhook. Pass either corporateUser or organization, not both.