Labs and testing
DNA test API for genomics and DNA testing companies
Your laboratory or kit business already produces genotype files; the Kantesti DNA Health API turns each file into a structured, readable report in the language of your customer. Optional further calls relate the genetic findings to a blood test and add a report on the family history the customer enters.
The sandbox is free. Pay for the calls you buy. No subscription. Pricing per API call
DNA testing and genomics companies
Challenges in this sector
A raw genotype file is not a product
A text file of rsID rows tells the person who ordered the test nothing. Building an annotation pipeline, a report layout and medical copy for every market is a separate project from running a laboratory.
Generated text that states a genotype the customer does not have
A language model can write a plausible finding for a variant that is absent from the file. A report product needs a control that ties each statement to the uploaded data, otherwise one wrong line reaches a customer and then your support team.
Genes without current lab values
A genotype describes a tendency and does not change, while customers ask what their body shows today. Without blood results the report cannot say whether a genetic finding is reflected in a measured value.
Exports from many vendors and genome builds
Customers upload files from different providers, chip versions and genome builds, some zipped and some as VCF. Every format that fails without a clear message becomes a refund or a support ticket.
How the integration works
Check the upload for free
Send the file to
POST /api/v1/dna-interpretation/validate. The response names the recognised format and genome build and reports how many of the 334 panel markers the file contains, without an AI call and without a credit.Create the genetic report
POST /api/v1/dna-interpretation/analyzeaccepts the raw file asmultipart/form-dataor pasted genotype lines as JSON, pluslanguageand an optionalpatientobject. A report usually takes one to three minutes, so add?async=1, keep thejob_idand pollGET /api/jobs/<job_id>.Add blood results
Pass
data.reportunchanged toPOST /api/v1/dna-blood-report/analyzetogether with an interpreted blood test or a plain list of up to 500 parameters. Each link between a genetic finding and a lab value comes back with aconcordanceofconfirms,contradicts,neutralorwatch, followed by a risk matrix and a monitoring plan.Add family history
Collect relatives and their conditions in a form and send them to
POST /api/v1/family-health/analyzewith the age and gender of the customer. This report is built from the questionnaire, not from the genotype, so present it as a separate section next to the DNA report.

Recommended API modules
DNA test AI API for raw DNA data
The core of the integration: three chainable endpoints for the genetic report, the DNA + blood report and a supplement plan. Findings are checked against the upload, so an rsID that the file does not contain is dropped and each genotype is pinned to the call printed in the file.
Family health history API for hereditary risk reports
Adds what a genotyping array cannot show: conditions among up to 100 relatives across 14 relation types, with paternal and maternal lineage analysis and genetic screening suggestions.
Blood test AI API for developers and clinics
Reads the lab report a customer uploads as PDF or photo and returns the
parametersarray that the DNA + blood report accepts, so the two can be combined without a laboratory data feed.
Use cases
- A health report upgrade for customers who already hold a raw data export from a consumer DNA test.
- A combined gene and lab report for a kit bundle that includes a blood test from a partner laboratory.
- Reports in the language of each sales market from one pipeline, selected with
language. - A nutrigenomics or supplement programme that works from your own product catalogue, maintained through
/api/v1/dna-supplements/settings. - A family history section that prepares the customer for a conversation with a physician or genetic counsellor.
Integration path
A typical integration runs in your report backend. When a genotype file leaves your laboratory pipeline or a customer uploads an export, a worker validates it, starts the analysis in async mode and polls the job until status is completed; the final body is in result.response. You store the JSON, render it in your own report template or customer portal, and offer the blood and family steps as optional additions. The sandbox endpoints of all three DNA modules return a sample report in exactly the shape of the live response, so the front end can be finished before the first paid call.
API documentation Getting started Authentication Endpoints Errors Rate limits
Data protection and compliance
Genetic data is special-category personal data under the GDPR, and it also reveals information about relatives who never ordered a test. You need the explicit consent of the person tested for this processing, a clear privacy notice and your own retention and deletion rules; these duties stay with you as the integrator. On the Kantesti side the DNA modules are stateless: nothing is stored against a patient and raw genotype files are discarded after parsing. The reports are AI-supported educational information. They are not a diagnosis, not a prediction that a person will develop a condition and not a prescription, and Kantesti is not a medical device and carries no CE or UKCA marking. Consumer genotyping arrays are not clinical sequencing, so actionable and carrier findings have to be confirmed by validated clinical genetic testing before anyone acts on them.
Example request and response
DNA health POST /api/v1/dna-interpretation/sandbox Sandbox Endpoint reference
curl -X POST "https://app.aibloodtestinterpret.com/api/v1/dna-interpretation/sandbox" \
-H "Authorization: Bearer kt_live_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"language":"en"}'
import requests
resp = requests.post(
"https://app.aibloodtestinterpret.com/api/v1/dna-interpretation/sandbox",
headers={"Authorization": "Bearer kt_live_YOUR_API_KEY"},
json={"language": "en"},
timeout=60,
)
print(resp.json())
const resp = await fetch("https://app.aibloodtestinterpret.com/api/v1/dna-interpretation/sandbox", {
method: "POST",
headers: {
Authorization: "Bearer kt_live_YOUR_API_KEY",
"Content-Type": "application/json",
},
body: JSON.stringify({"language":"en"}),
});
console.log(await resp.json());
<?php
$ch = curl_init('https://app.aibloodtestinterpret.com/api/v1/dna-interpretation/sandbox');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer kt_live_YOUR_API_KEY',
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => json_encode(['language' => 'en']),
]);
$result = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($result);{
"status": "success",
"data": {
"analysis_id": "DNA-SANDBOX000",
"module": "dna_interpretation",
"generated_at": "2026-11-30T12:00:00.000000Z",
"language": "en",
"source": {
"kind": "raw",
"format": "23andme",
"build": "GRCh37",
"total_records": 638463,
"called": 631022,
"panel_total": 271,
"panel_found": 238,
"filename": "sample.txt"
},
"report": {
"report_type": "dna",
"title": "Genetic health report (sample)",
"executive_summary": "Sample data. Array genotyping with good coverage of the clinical panel. One cardiovascular marker a…",
"data_quality": {
"source": "23andMe v5 raw file",
"markers_analyzed": 238,
"coverage_note": "238 of 271 panel markers called.",
"limitations": "Array data, not sequencing."
},
"overall_assessment": {
"level": "slightly_elevated",
"summary": "Mostly typical findings with a few actionable ones."
},
"sections": [
{
"…": "…"
}
],
"disease_risks": [],
"carrier_status": [],
"pharmacogenomics": [
{
"…": "…"
}
],
"nutrigenomics": [
{
"…": "…"
}
],
"…": "+6"
}
},
"timestamp": "2026-11-30T12:00:00.000000Z",
"api_version": "1.0.0",
"sandbox": true,
"sandbox_notice": "This is sandbox test data. No actual analysis was performed and no quota was consumed."
}Sandbox response, shortened for this page. The playground shows the full body. Sample data only. No real patient data is sent or stored.
Questions
Which genotype file formats does the API accept?
Raw exports from 23andMe, AncestryDNA, MyHeritage, FTDNA and LivingDNA, and VCF files, as .txt, .csv, .tsv, .vcf, .zip or .gz up to 80 MB. Pasted genotype lines and a genetic report as up to six PDF, JPG or PNG files are accepted as well.
How does the report stay tied to the data of the individual customer?
The file is parsed on the server and compared with a curated panel of 334 markers in 20 health categories. A finding for an rsID that is not in the upload is removed, and the source object reports the format, the call counts and how many panel markers were found.
Does the API interpret a whole genome or an exome?
No. The interpretation covers the curated panel of 334 markers, whatever the size of the file. It is not a variant-calling or rare-variant analysis service, and each report carries a limitations text on what array data cannot show.
May we present the findings as disease predictions?
No. The report lists condition risks, carrier status and predicted metabolizer phenotypes with an evidence grade of established, probable or preliminary. These are educational associations, not predictions and not diagnostic results; carrier findings are always to be confirmed by clinical genetic testing, and the pharmacogenomics section never gives prescription doses.
What is charged when an upload cannot be read?
Nothing. An unreadable file is answered at once with a 400 error. One credit is charged only after a report was produced, and when the answer cannot be produced or validated the API returns PROC_3003 without a charge.
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

