# Flabs Developer Platform APIs ## Docs - [Integrate with AI](https://developer.flabslis.com/ai/integrate-with-ai.md): Connect the Flabs docs MCP to your AI code editor and let it build the integration for you. - [Auth Token](https://developer.flabslis.com/auth/endpoint/get_auth_token.md): Generates a new auth token and refresh token using client ID and client secret. - [Refresh Auth Token](https://developer.flabslis.com/auth/endpoint/get_auth_token_refresh.md): Get new Authorization token using the refresh token and client credentials. - [Authentication APIs](https://developer.flabslis.com/auth/introduction.md): APIs for client authentication and token management - [Create Pre-booking](https://developer.flabslis.com/billing/endpoint/create_bill.md): Create a pre-booking in the Flabs system with patient details and test/package information. This initiates the billing workflow. - [Introduction](https://developer.flabslis.com/billing/introduction.md) - [Create Lead or Booking](https://developer.flabslis.com/crm/endpoint/create_lead.md): Creates a CRM entry for the patient. Set `phase: "lead"` (default) to drop the entry into the lead funnel — it will be auto-assigned to a telecaller and trigger a `NEW_LEAD` notification. Set `phase: "booking"` to skip the lead stage and create a confirmed booking directly — it will trigger a `BOOKI… - [List Branches](https://developer.flabslis.com/crm/endpoint/list_branches.md): Returns every active branch under your account. Use the returned `branchID` for all other CRM calls. - [List Packages](https://developer.flabslis.com/crm/endpoint/list_packages.md): Returns every package offered by the given branch. Use the `_id` of a package as the `package` field when creating a lead or booking. - [List Tests](https://developer.flabslis.com/crm/endpoint/list_tests.md): Returns every test offered by the given branch. Use the `_id` of a test as the `test` field when creating a lead or booking. - [CRM](https://developer.flabslis.com/crm/introduction.md): Push leads and bookings into the Flabs CRM from your own funnels. - [Party-scoped (B2B)](https://developer.flabslis.com/crm/party-scoped.md): Build a doctor's CRM, a hospital portal, a wellness app, or a corporate health dashboard — every lead, booking, price, and webhook tied to a specific corporate, doctor, or hospital. - [Code Blocks](https://developer.flabslis.com/essentials/code.md): Display inline code and code blocks - [Images and Embeds](https://developer.flabslis.com/essentials/images.md): Add image, video, and other HTML elements - [Markdown Syntax](https://developer.flabslis.com/essentials/markdown.md): Text, title, and styling in standard markdown - [Navigation](https://developer.flabslis.com/essentials/navigation.md): The navigation field in docs.json defines the pages that go in the navigation menu - [Reusable Snippets](https://developer.flabslis.com/essentials/reusable-snippets.md): Reusable, custom snippets to keep content in sync - [Global Settings](https://developer.flabslis.com/essentials/settings.md): Mintlify gives you complete control over the look and feel of your documentation using the docs.json file - [Introduction](https://developer.flabslis.com/introduction.md): Welcome to the documentation of Flabs developer platform APIs - [Get OTP](https://developer.flabslis.com/patient/endpoint/get_otp.md): Sends an OTP to the provided contact number for patient verification. - [Get Patient Reports](https://developer.flabslis.com/patient/endpoint/get_records.md): Retrieves all reports for a patient registered through the client lab. - [Verify OTP](https://developer.flabslis.com/patient/endpoint/verify_otp.md): Verifies the OTP sent to the patient's contact number. - [Patient APIs Introduction](https://developer.flabslis.com/patient/introduction.md): APIs for patient authentication and report retrieval - [Delete Webhook](https://developer.flabslis.com/webhooks/endpoint/delete_webhook.md): Delete a specific webhook by its unique identifier. This permanently removes it and stops all deliveries. - [Get All Webhooks](https://developer.flabslis.com/webhooks/endpoint/get_all_webhooks.md): Retrieve active webhooks for your account, including event types, protocols, and metadata. - [Register Webhook](https://developer.flabslis.com/webhooks/endpoint/register_webhook.md): Subscribe to webhook events to receive real-time notifications when bills, reports, leads, or bookings change. - [Introduction](https://developer.flabslis.com/webhooks/introduction.md) - [Welcome to Flabs](https://developer.flabslis.com/welcome.md) ## OpenAPI Specs - [openapi](https://developer.flabslis.com/webhooks/openapi.json) ## Optional - [Visit Website](https://flabslis.com) - [Github](https://github.com/flabs-in)