Labs and testing
Blood test API for clinical and diagnostic laboratories
Add an explanation layer to the reports your laboratory already releases. Send a finished PDF or the structured rows from your LIS and receive JSON that you place in the patient portal or beside the report.
The sandbox is free. Pay for the calls you buy. No subscription. Pricing per API call
Clinical and diagnostic laboratories
Challenges in this sector
Reports carry numbers and flags, not explanations
A released report tells the patient that a value is high or low and nothing more. Interpretive comments from laboratory physicians are reserved for selected cases, so a routine panel leaves the laboratory without a sentence a layperson can read.
Reception and call-centre staff cannot answer result questions
Patients who order tests themselves call the laboratory to ask what a flagged value means. Staff are not permitted to interpret results, so each call ends with a referral to a physician and the question remains unanswered.
A patient-facing layer is a software project of its own
Mapping analytes to organ systems, writing a text for each marker and maintaining both in every language of your patients is outside the scope of a LIS and of most laboratory IT teams.
Cumulative results stop at a column of numbers
The LIS holds earlier results, yet the patient receives a column of previous values and no more. Self-pay customers and corporate health programmes ask for charts and a description of what changed.
How the integration works
Choose the entry point: PDF or structured rows
If the report server is the simplest place to connect, post the released PDF to
POST /api/v12/18-09-2026/analyze. If you prefer LIS data, build aparametersarray (analyte name as printed, result, unit, reference range,evaluation) and send it directly to the body map and trend endpoints. No document is read on that path.Check your test catalogue without cost
POST /api/v1/body-map/validateshows which marker names from your catalogue are recognised and consumes no quota. The alias tables cover 39 report languages, and theunmappedcount in a live response states how many flagged markers could not be placed.Trigger on result release
Call the API from your middleware at the moment a report is authorised in the LIS, not when the patient opens it. Store the returned JSON with the order number and render it in the portal, the app or a supplementary page of the report.
Add cumulative reporting
For patients with earlier orders, send 2 to 50 dated result sets to
POST /api/v1/analytics/trends/analyze. Your internal test codes provide the consistent parameter names the endpoint needs, andchart_configsupplies the data for charts.

Recommended API modules
Blood test AI API for developers and clinics
Reads a finished report as PDF or image and returns the metadata, every parameter with three nested ranges (optimal, normal, borderline) and an interpretation in one of 100 languages. It serves the report-server path and outside reports that are not in your LIS.
Body map API for lab results
Works from structured rows and therefore fits LIS data directly: up to 500 rows per request, deterministic by default, no model call. The output consists of language-free region keys plus your own marker names, and the illustration carries no text, so one image serves every report language.
Lab results trend API and blood test comparison API
Converts the result history you already hold into direction, strength, average, minimum, maximum and standard deviation per parameter, with chart configuration. The comparison endpoint adds a narrative of the changes between 2 and 20 reports.
Use cases
- Patient portal: an explanation and a body map appear beside each released report.
- Direct-to-consumer test packages: self-pay customers receive a readable result page in their own language.
- Corporate and check-up contracts: a visual summary and trend charts accompany the annual panel of each participant.
- Referral laboratories: partner clinics receive structured JSON in addition to the PDF.
- Historical and outside reports: scanned or photographed documents are converted into structured rows for comparison with current results.
Integration path
The typical path is: LIS or report server, then your interface engine or a small middleware service, then the Kantesti REST endpoints, then the patient portal. The API uses HTTPS with JSON and multipart/form-data. It has no HL7 v2 or FHIR interface, so the mapping from result messages to parameters rows is done on your side. Each request carries the username and password of your API account. POST /api/quota/check reports the remaining credits, and GET /api/health can be added to your monitoring. Responses are JSON only, which leaves the report template, the logo and the wording of the final page under the control of the laboratory.
API documentation Getting started Authentication Endpoints Errors Rate limits
Data protection and compliance
The output is AI-supported educational information for the patient. It is not a laboratory medical comment, not a diagnosis and not a medical device, and it is not CE or UKCA marked. It does not verify analytical results and does not replace the validation and authorisation steps of your quality system: keep it visibly separate from the authorised report and label it as educational. An accredited laboratory should assess with its quality manager how an external explanation layer is documented. Under GDPR the laboratory is the controller of result data. The body map and trend endpoints need only analyte rows and dates, so they can be called without the name or identifier of the patient, whereas an uploaded PDF contains everything that is printed on it. Agree data processing terms with Kantesti Ltd (api@kantesti.net) before live results are sent.
Example request and response
Blood test interpretation POST /api/v12/18-09-2026/sandbox Sandbox Endpoint reference
curl -X POST "https://app.aibloodtestinterpret.com/api/v12/18-09-2026/sandbox" \
-H "Authorization: Bearer kt_live_YOUR_API_KEY" \
-F "language=en" \
-F "file=@report.pdf"
import requests
resp = requests.post(
"https://app.aibloodtestinterpret.com/api/v12/18-09-2026/sandbox",
headers={"Authorization": "Bearer kt_live_YOUR_API_KEY"},
data={"language": "en"},
files={"file": open("report.pdf", "rb")},
timeout=60,
)
print(resp.json())
const form = new FormData();
form.append("language", "en");
form.append("file", fileInput.files[0]); // your PDF or photo
const resp = await fetch("https://app.aibloodtestinterpret.com/api/v12/18-09-2026/sandbox", {
method: "POST",
headers: { Authorization: "Bearer kt_live_YOUR_API_KEY" },
body: form,
});
console.log(await resp.json());
<?php
$ch = curl_init('https://app.aibloodtestinterpret.com/api/v12/18-09-2026/sandbox');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer kt_live_YOUR_API_KEY'],
CURLOPT_POSTFIELDS => [
'language' => 'en',
'file' => new CURLFile('report.pdf'),
],
]);
$result = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($result);{
"status": "success",
"data": {
"metadata": {
"patient_name": "Jan Novák",
"lab_city": "Prague",
"lab_country": "Czech Republic",
"lab_date": "2025-05-11",
"lab_name": "BioLAB Medical Center",
"patient_age": "45",
"patient_sex": "Male",
"results_date": "2025-05-26"
},
"parameters": [
{
"short_name": "PT Ratio",
"long_name": "Prothrombin Time Ratio",
"category": "Coagulation",
"result": 0.94,
"unit": null,
"evaluation": "optimal",
"type": "range",
"range_min": 0.5,
"range_max": 1.5,
"range_normal_min": 0.8,
"…": "+5"
},
"… +3"
],
"interpretation": [
{
"title": "Introduction",
"shortcode": "introduction",
"subsections": [
"…"
]
},
"… +3"
]
},
"timestamp": "2026-11-30T12:00:00.000000Z",
"api_version": "v12",
"sandbox": true,
"sandbox_notice": "This is sandbox test data. No actual analysis was performed."
}Sandbox response, shortened for this page. The playground shows the full body. Sample data only. No real patient data is sent or stored.
Questions
Does the blood test API connect to our LIS directly?
Not as a native LIS interface. It is a REST API: your interface engine or middleware sends a PDF or a JSON array of results over HTTPS and stores the JSON response. No HL7 or FHIR message format is used on the Kantesti side.
Do we have to send a PDF if we already hold structured results?
No. The body map and trend endpoints take JSON rows, so structured LIS data can be sent as it is. The PDF and image path of the blood test endpoint is meant for finished reports and for documents from other laboratories.
Will our local analyte names be recognised?
The body map matches names against alias tables for 39 report languages, including non-Latin scripts, and the free validate endpoint shows which names of your catalogue are recognised. For names the tables do not know, you can set ai_assist, which lets a model place them.
What is returned for a panel in which every result is normal?
The body map returns all_clear: true. If flagged markers exist but none can be placed on a region, the API answers with error RES_4004 and does not charge the call, so an empty map is never presented as a clean result.
How are large report volumes priced?
Per call and without a subscription: a successful analyze call is one credit, and the price per call is lower for larger purchases. Validate, sandbox and reference endpoints do not consume quota.
Start building
Run a sample request in the playground, check the price per call, or write to the API team about your integration.
API support: api@kantesti.net

