Healthcare providers

Telemedicine lab results API for online doctor services

Patients of a telehealth service upload laboratory reports as phone photos and PDFs from any laboratory. The API converts each upload into structured values and a draft summary, so the clinician starts the remote consultation with data instead of an image.

The sandbox is free. Pay for the calls you buy. No subscription. Pricing per API call

Telehealth and online doctor services

Telemedicine

Challenges in this sector

  • Uploads are images, not data

    A remote clinician opens a photographed report, enlarges it and searches for the flagged rows while the video consultation is already running. Nothing in the image can be sorted, filtered or charted.

  • Patient, clinician and report use different languages

    Cross-border services connect a patient in one country with a clinician in another, and the report is printed in the language of the laboratory. Each party reads a different language.

  • Without an examination, the laboratory history matters more

    A remote consultation has no physical examination, so the clinician depends more on earlier laboratory values. They are spread over separate uploads from separate dates and are compared manually, if at all.

  • Little written follow-up after the call

    When the session ends, the patient has a chat message or a short note. Lifestyle and diet guidance that would be given in person is omitted because there is no time to write it.

How the integration works

  1. Collect the report in the booking flow

    Add an upload step to the app or web flow. The client sends the file to your backend, not to Kantesti, so the API username and password never reach the device. Accepted formats are PNG, JPG, WEBP and PDF up to 20 MB, and several photos of one report can be sent together.

  2. Process in a background worker

    A worker posts the file to POST /api/v12/18-09-2026/analyze and stores the JSON with the consultation. The call is synchronous and can last longer than a mobile request, so notify the app when the result is ready instead of keeping the upload screen waiting.

  3. Show the clinician a structured view

    Render data.parameters as a table ordered by evaluation, with the three ranges of each row and the draft data.interpretation beside it. The clinician corrects or discards the draft and releases a patient version after the consultation.

  4. Build the follow-up

    For returning patients, send the stored result sets to POST /api/v1/analytics/trends/analyze. Where diet guidance is part of your service, send the values and the patient profile to POST /api/v1/nutrition/diet-plan/analyze and deliver the reviewed plan in the app.

Diagram: How the integration works (Telemedicine) – Collect the report in the booking flow → Process in a background worker → Show the clinician a structured view → Build the follow-up
How the integration works: Telemedicine. Recommended API modules: Blood test interpretation, Trend comparison, Nutrition and diet.

Recommended API modules

Health AI APIs for lab results, DNA and nutrition

Use cases

  • Pre-visit intake: the report is structured while the patient waits for the appointment.
  • Asynchronous consultations: a clinician who answers by message reads a table and a draft summary instead of a photograph.
  • Cross-border care: the same report is requested once in the language of the clinician and once in the language of the patient.
  • Remote chronic care programmes: repeated panels from local laboratories are charted over time in the patient app.
  • Post-consultation follow-up: a reviewed diet plan is delivered with the visit summary.

Integration path

The integration belongs in your app backend: an upload endpoint, object storage, a job queue, a worker that calls the Kantesti REST endpoints and a push notification when the JSON is stored. Interpretation text is written in one language per request, so a service that needs a clinician version and a patient version in different languages makes two calls and uses two credits. Mobile clients should show progress and load the result when the backend reports it as available. Develop against the sandbox endpoints, which return sample data in the live response shape. Because keys and codes do not change with the language, one client renderer covers every market.

API documentation Getting started Authentication Endpoints Errors Rate limits

Data protection and compliance

Telehealth is regulated country by country, and the clinician who conducts the remote consultation remains responsible for the medical assessment. Kantesti output is educational information: not a diagnosis, not a medical device and not CE or UKCA marked. Do not use it to rank patients by urgency or to send advice automatically without clinician review. Uploaded reports are health data that usually show the name of the patient. As controller, the service should obtain explicit consent or rely on another valid legal basis at the upload step, describe the processing in its privacy notice, and document international transfers where patients, clinicians and processors are in different countries; Kantesti Ltd is registered in England and Wales. The diet plan endpoint accepts adult patients only (age 18 to 120).

Clinically reviewed by Thomas Klein, MD · Last reviewed November 30, 2026

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);
Response Sandbox
{
  "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

Can patients upload a phone photo of their lab results?

Yes. The blood test endpoint accepts PNG, JPG and WEBP images as well as PDFs, up to 20 MB. Several photos of a multi-page report can be sent in one request by repeating the file field.

Should our mobile app call the API directly?

No. Every request carries your API credentials, so calls must come from your backend. The app uploads to your server and receives the stored result from it.

Does the analysis fit into a live video visit?

Analysis is not instant: plan a background job, not a response during a screen transition. Ask for the upload at booking, so that the result is ready before the consultation starts.

Can the API decide which patients need an urgent appointment?

No. It returns evaluations such as high or low against reference ranges and an educational text. Urgency and clinical priority are decisions for a clinician, and the API is not a medical device.

Does it support reports from laboratories in other countries?

Yes. Reports can come from any laboratory, the response metadata includes the laboratory name, city and country, and the interpretation is written in any of 100 languages.

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

Kantesti® API illustration: Telemedicine lab results API for online doctor services
Telemedicine lab results API: patients upload a report photo or PDF before the video visit, clinicians get structured values, trends and a draft summary.