Get table data
curl --request GET \
--url https://v2.flabs.in/client/aiTables/{tableID} \
--header 'Authorization: Bearer <token>'import requests
url = "https://v2.flabs.in/client/aiTables/{tableID}"
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/aiTables/{tableID}', 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/aiTables/{tableID}",
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;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://v2.flabs.in/client/aiTables/{tableID}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://v2.flabs.in/client/aiTables/{tableID}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://v2.flabs.in/client/aiTables/{tableID}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"tableID": "6afef8e0f1a419d24b9938ae",
"title": "Doctor-wise revenue",
"columns": [
{
"key": "doctor",
"title": "Doctor",
"type": "string"
},
{
"key": "bills",
"title": "Bills",
"type": "number"
},
{
"key": "revenue",
"title": "Revenue",
"type": "currency"
}
],
"rows": [
{
"doctor": "Dr. A. Mehta",
"bills": 412,
"revenue": 386250
},
{
"doctor": "Dr. S. Rao",
"bills": 268,
"revenue": 241900
}
],
"truncated": null,
"dateRange": {
"gte": "2026-10-31T18:30:00.000Z",
"lte": "2026-11-30T18:29:59.999Z"
},
"labScope": [
{
"labID": "6530a4a6f1d2c8b7e9a12345",
"name": "Flabs Diagnostics - Andheri"
}
]
}
}{
"success": false,
"status": 400,
"message": "Bad Request - The request could not be understood or was missing required parameters.",
"error": {
"details": "Date range cannot exceed 30 days"
}
}{
"success": false,
"status": 401,
"message": "Unauthorized - Authentication failed or user does not have permissions.",
"error": {
"details": "Token expired, please login again"
}
}{
"success": false,
"status": 403,
"message": "Forbidden - Access to the requested resource is forbidden.",
"error": {
"details": "Labby AI is not enabled for any lab on this account"
}
}{
"success": false,
"status": 404,
"message": "Not Found - The requested resource could not be found.",
"error": {
"details": "Table not found"
}
}{
"success": false,
"status": 409,
"message": "Conflict - The request could not be completed due to a conflict.",
"error": {
"details": "This table was built from an uploaded document and cannot be re-run for a date range"
}
}{
"success": false,
"status": 422,
"message": "Unprocessable Entity - The request was well-formed but unable to be followed due to semantic errors.",
"error": {
"details": "There is too much data in the selected range to load in time. Try a shorter range."
}
}{
"success": false,
"status": 429,
"message": "An error occurred",
"error": {
"details": "Too many requests. Try again in 42 seconds"
}
}{
"success": false,
"status": 500,
"message": "Internal Server Error - Something went wrong on the server.",
"error": {
"details": "Failed to build table"
}
}{
"success": false,
"status": 503,
"message": "Service Unavailable - The server is currently unavailable.",
"error": {
"details": "The table could not be built right now. Retry shortly."
}
}Labby AI Tables
Get Table Data
Re-runs the table’s current saved recipe for the date range you pass and returns its rows. Edits made to the table in Labby AI show up on the next call. Read-only: it never changes the saved table.
Rate limit: 20 calls per minute per account, shared by all your tables.
GET
/
client
/
aiTables
/
{tableID}
Get table data
curl --request GET \
--url https://v2.flabs.in/client/aiTables/{tableID} \
--header 'Authorization: Bearer <token>'import requests
url = "https://v2.flabs.in/client/aiTables/{tableID}"
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/aiTables/{tableID}', 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/aiTables/{tableID}",
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;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://v2.flabs.in/client/aiTables/{tableID}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://v2.flabs.in/client/aiTables/{tableID}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://v2.flabs.in/client/aiTables/{tableID}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"tableID": "6afef8e0f1a419d24b9938ae",
"title": "Doctor-wise revenue",
"columns": [
{
"key": "doctor",
"title": "Doctor",
"type": "string"
},
{
"key": "bills",
"title": "Bills",
"type": "number"
},
{
"key": "revenue",
"title": "Revenue",
"type": "currency"
}
],
"rows": [
{
"doctor": "Dr. A. Mehta",
"bills": 412,
"revenue": 386250
},
{
"doctor": "Dr. S. Rao",
"bills": 268,
"revenue": 241900
}
],
"truncated": null,
"dateRange": {
"gte": "2026-10-31T18:30:00.000Z",
"lte": "2026-11-30T18:29:59.999Z"
},
"labScope": [
{
"labID": "6530a4a6f1d2c8b7e9a12345",
"name": "Flabs Diagnostics - Andheri"
}
]
}
}{
"success": false,
"status": 400,
"message": "Bad Request - The request could not be understood or was missing required parameters.",
"error": {
"details": "Date range cannot exceed 30 days"
}
}{
"success": false,
"status": 401,
"message": "Unauthorized - Authentication failed or user does not have permissions.",
"error": {
"details": "Token expired, please login again"
}
}{
"success": false,
"status": 403,
"message": "Forbidden - Access to the requested resource is forbidden.",
"error": {
"details": "Labby AI is not enabled for any lab on this account"
}
}{
"success": false,
"status": 404,
"message": "Not Found - The requested resource could not be found.",
"error": {
"details": "Table not found"
}
}{
"success": false,
"status": 409,
"message": "Conflict - The request could not be completed due to a conflict.",
"error": {
"details": "This table was built from an uploaded document and cannot be re-run for a date range"
}
}{
"success": false,
"status": 422,
"message": "Unprocessable Entity - The request was well-formed but unable to be followed due to semantic errors.",
"error": {
"details": "There is too much data in the selected range to load in time. Try a shorter range."
}
}{
"success": false,
"status": 429,
"message": "An error occurred",
"error": {
"details": "Too many requests. Try again in 42 seconds"
}
}{
"success": false,
"status": 500,
"message": "Internal Server Error - Something went wrong on the server.",
"error": {
"details": "Failed to build table"
}
}{
"success": false,
"status": 503,
"message": "Service Unavailable - The server is currently unavailable.",
"error": {
"details": "The table could not be built right now. Retry shortly."
}
}Path Parameters
Query Parameters
Comma-separated lab IDs. Omit to use the labs the table was saved with. For a multi-lab table it narrows to these labs (it never adds labs the table doesn't cover). For a single-lab table, the first ID switches the table to that lab.
Example:
"6530a4a6f1d2c8b7e9a12345,6530a4a6f1d2c8b7e9a67890"
Was this page helpful?