REST · JSON · POST

Family health history API for hereditary risk reports

Send a family medical history with a patient profile, and optionally blood test data, and receive a structured family health risk assessment in the language you choose.

POST /api/v1/family-health/analyze

Family health

Key capabilities

The Family Health AI API (Family Health Risk Assessment v1) cross-references the conditions of up to 100 family members across 14 relation types with the patient's own profile and blood test data. The report covers nine condition categories: cardiovascular, metabolic, cancer, neurological, respiratory, autoimmune, genetic, mental health and kidney/liver.

  • Structured JSON

    Stable English keys and codes, with text in the language you request.

  • Free sandbox

    The sandbox endpoint returns a sample response in the shape of the live one and uses no credits.

  • One credit per call

    A successful analyze call uses one credit. Sandbox calls are free.

  • API key authentication

    Send your key as a Bearer token in the Authorization header. Never put a key in a URL.

Diagram: How it works (Family health) – Family history → Kantesti API → Risk overview → Your app
How it works: Family history → Kantesti API → Risk overview → Your app.

Example request and response

POST /api/v1/family-health/analyze Live

POST /api/v1/family-health/sandbox/analyze Sandbox

POST /api/v1/family-health/validate Live

GET /api/v1/family-health/supported-languages Live

GET /api/v1/family-health/condition-categories Live

GET /api/v1/family-health/family-relations Live

Endpoint reference

curl -X POST "https://app.aibloodtestinterpret.com/api/v1/family-health/sandbox/analyze" \
  -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/family-health/sandbox/analyze",
    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/family-health/sandbox/analyze", {
  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/family-health/sandbox/analyze');
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);
Response Sandbox
{
  "status": "success",
  "data": {
    "report_data": {
      "report_id": "FHR-SANDBOX0",
      "generated_at": "2026-11-30T12:00:00.000000Z",
      "patient": {
        "name": "Jane Sample",
        "age": 42,
        "gender": "female",
        "dob": "1982-06-15"
      },
      "family_members": [
        {
          "…": "…"
        },
        "… +2"
      ],
      "risk_assessment": {
        "overall_risk_level": "moderate",
        "cardiovascular_risk": {
          "…": "…"
        },
        "cancer_risk": {
          "…": "…"
        },
        "metabolic_risk": {
          "…": "…"
        },
        "bone_health_risk": {
          "…": "…"
        }
      },
      "preventive_screenings": [
        {
          "…": "…"
        },
        "… +4"
      ],
      "lifestyle_recommendations": [
        "Adopt a heart-healthy diet rich in fruits, vegetables, and whole grains",
        "… +5"
      ],
      "genetic_considerations": [
        "Family history suggests potential hereditary cardiovascular risk factors",
        "… +2"
      ],
      "summary": "Based on your family history, you have a moderate overall health risk with elevated cardiovascular …",
      "language": "en",
      "…": "+1"
    }
  },
  "timestamp": "2026-11-30T12:00:00.000000Z",
  "api_version": "1.0.0",
  "message": "Sandbox family health risk assessment report generated successfully",
  "sandbox": true,
  "sandbox_notice": "This is sandbox test data. No actual processing 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.

Inputs and outputs

  • Request

    What you send

    A JSON body with patient_data (age and gender required), and family_members or a health_profile (at least one of the two). Each family member has a relation (father, mother, siblings, grandparents, uncles and aunts on either side, children) and optional conditions, age at diagnosis and cause of death. blood_test_data and language are optional.

  • Response

    What you get back

    A report with high, moderate and low risk classification and scoring, paternal and maternal lineage analysis, correlation with blood test parameters, genetic screening suggestions, a preventive care timeline, a medication section and lifestyle guidance, localized in 100+ languages.

Diagram: Family tree – You, Mother, Father, Inherited risk
Family tree. A family-history overview.

Use cases

  • Turn a family history questionnaire in a patient intake flow into a structured report.

  • Add hereditary context to a blood test report in a clinic portal.

  • Prepare a screening discussion for a preventive care or check-up programme.

  • Validate form data for free with the validate endpoint before you generate a report.

Who uses this API

Sectors that typically integrate this module.

All solutions

Questions

What data does the family health history API need?

The patient's age and gender, plus either a list of family members with their conditions or a patient health profile. Blood test data is optional and is used for correlation.

Which relatives and conditions are supported?

14 relation types, from parents, siblings and children to grandparents, uncles and aunts on both sides, and nine condition categories. Three free reference endpoints list relations, categories and languages.

Is this a genetic test?

No. The report is based on the family history you send, not on DNA. For raw DNA data use the DNA test API. It is educational information, not a diagnosis.

How is a family health report priced?

One analyze call is one API call (1 credit). The validate and sandbox endpoints do not consume quota.

Other API modules

Start building

Free sandbox access. Buy credits only when you go live.

Kantesti® API illustration: Family health history API for hereditary risk reports
Family health history API: send family medical history, a patient profile and optional blood tests, get a structured hereditary risk report as JSON.