Get slots
curl --request GET \
--url https://v2.flabs.in/client/crm/booking/slots \
--header 'Authorization: Bearer <token>'import requests
url = "https://v2.flabs.in/client/crm/booking/slots"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://v2.flabs.in/client/crm/booking/slots', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://v2.flabs.in/client/crm/booking/slots",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.get("https://v2.flabs.in/client/crm/booking/slots")
.header("Authorization", "Bearer <token>")
.asString();using RestSharp;
var options = new RestClientOptions("https://v2.flabs.in/client/crm/booking/slots");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
{
"pincode": "400053",
"date": "2026-11-28",
"time": "09:30",
"phlebotomists": [
{
"phlebotomistID": "65f0000000000000000000d4",
"name": "Ravi Kumar",
"status": "Available",
"shifts": [
{
"from": "08:00 AM",
"to": "10:00 AM",
"minutesPerVisit": 30
},
{
"from": "04:00 PM",
"to": "05:30 PM",
"minutesPerVisit": 30
}
]
},
{
"phlebotomistID": "65f0000000000000000000d5",
"name": "Sunil",
"status": "Outside Slot",
"shifts": [
{
"from": "12:00 PM",
"to": "01:00 PM",
"minutesPerVisit": 60
}
]
},
{
"phlebotomistID": "65f0000000000000000000d6",
"name": "Vikas",
"status": "Not Available",
"shifts": []
}
]
}{
"success": false,
"status": 400,
"message": "Bad Request",
"error": {
"details": "first_name is required"
}
}{
"success": false,
"status": 500,
"message": "Internal Server Error",
"error": {
"details": "An unexpected error occurred"
}
}Bookings
Get Slots
Phlebotomist availability for one branch and day, as the lab sees it when assigning a phlebotomist in its CRM: every active phlebotomist of the branch, their shifts that day and a status.
- With a
pincode, only phlebotomists who registered that pincode are listed; without one, every phlebotomist of the branch. - Without a
date, today (IST) is used. - With a
time,statustells you whether a shift covers that time.
status is one of:
Available: on shift that day, and a shift coverstimewhen you sent one.Outside Slot: on shift that day, but no shift coverstime.Not Available: no shift that day, or on leave (shiftsis empty).
Like the lab’s CRM, status checks shifts only, not visits already booked, so an Available phlebotomist can still be busy at that exact time. The list is for showing availability: you cannot choose the phlebotomist when booking; the lab assigns one. Pick a time inside an Available shift when you create or reschedule a booking.
Errors (the reason is in error.details):
400:branchIDmissing or invalid;datenot a realYYYY-MM-DD, before today or more than 60 days ahead;timenotHH:mm.403: the branch does not belong to your account.
GET
/
client
/
crm
/
booking
/
slots
Get slots
curl --request GET \
--url https://v2.flabs.in/client/crm/booking/slots \
--header 'Authorization: Bearer <token>'import requests
url = "https://v2.flabs.in/client/crm/booking/slots"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://v2.flabs.in/client/crm/booking/slots', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://v2.flabs.in/client/crm/booking/slots",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.get("https://v2.flabs.in/client/crm/booking/slots")
.header("Authorization", "Bearer <token>")
.asString();using RestSharp;
var options = new RestClientOptions("https://v2.flabs.in/client/crm/booking/slots");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
{
"pincode": "400053",
"date": "2026-11-28",
"time": "09:30",
"phlebotomists": [
{
"phlebotomistID": "65f0000000000000000000d4",
"name": "Ravi Kumar",
"status": "Available",
"shifts": [
{
"from": "08:00 AM",
"to": "10:00 AM",
"minutesPerVisit": 30
},
{
"from": "04:00 PM",
"to": "05:30 PM",
"minutesPerVisit": 30
}
]
},
{
"phlebotomistID": "65f0000000000000000000d5",
"name": "Sunil",
"status": "Outside Slot",
"shifts": [
{
"from": "12:00 PM",
"to": "01:00 PM",
"minutesPerVisit": 60
}
]
},
{
"phlebotomistID": "65f0000000000000000000d6",
"name": "Vikas",
"status": "Not Available",
"shifts": []
}
]
}{
"success": false,
"status": 400,
"message": "Bad Request",
"error": {
"details": "first_name is required"
}
}{
"success": false,
"status": 500,
"message": "Internal Server Error",
"error": {
"details": "An unexpected error occurred"
}
}Response
Slots returned
Was this page helpful?