Working with a person's data
Once a person has signed in through you and accepted the terms, every endpoint below works with the same three headers:
curl -s "$HN_BASE/api/patient/lab/user-summary" \
-H "X-Api-Key: $HN_KEY" \
-H "X-Subject-Email: jane@example.com" \
-H "X-Subject-Account-Id: 96"
The API reference documents each endpoint with its parameters and a real example reply. This page is the map.
Lab results
| You want | Call |
|---|---|
| Every biomarker with its readings, range and status | GET /api/patient/lab/user-summary |
| The biomarkers of one category | GET /api/patient/lab/user-summary/category |
| How many biomarkers are optimal, fair or out of range | GET /api/patient/lab/biomarker-counts |
| A score per health category | GET /api/patient/dashboard-health/category-scores |
| Biological age | GET /api/patient/pheno-age |
Values and units are returned as the lab printed them, each with a status the platform has already worked out. Show the status; do not recompute it. A person can choose US or SI units with PATCH /api/patient/user/unit-system, and replies follow that choice.
Reports
POST /api/patient/reports/list lists a person's reports. GET /api/patient/reports/{job_id}/detail returns one with its results, and POST /api/patient/reports/download-url gives a short-lived link to the PDF. To add a report, see Lab uploads.
Summaries and recommendations
| You want | Call |
|---|---|
| The AI health summary | GET /api/patient/health-summary |
| Today's short insight | GET /api/patient/daily-insight |
| Recommendations with action items, by category | GET /api/patient/category-recommendations |
| The person's chosen priorities | GET /api/patient/category-recommendations/priorities |
Action items can carry a product. The reference shows the fields for a Buy button.
Questionnaires
GET /api/patient/questionnaires lists what a person can take. Save answers as they go with PUT /api/patient/progress/{questionnaireId}, and read history, counts and a PDF of a completed attempt from the other progress endpoints.
Wearables
GET /api/patient/junction/link-token starts connecting a device. After that, read daily summaries (/junction/summary/{type}), current values and time series (/junction/metric-current, /junction/metric-series).
Chat
Start a session with POST /api/patient/chat/sessions, then ask questions with POST /api/patient/chat/respond/stream. The reply is a server-sent event stream: read it as it arrives rather than waiting for the end. GET /api/patient/chat/history returns a session's messages.
Medications, plans and notes
- Medications and supplements:
/api/patient/regimen - Things the person changed, to see against their results:
/api/patient/interventions - Care plans assigned by the clinic:
GET /api/patient/care-plans/assigned - Finished consultation notes:
GET /api/patient/consultation - Notifications:
/api/patient/notifications
Reading and writing
Every GET needs the read scope. Anything that changes data needs write. Writes act as the person: a pinned biomarker, a saved answer or a deleted report is theirs, exactly as if they had done it in the Health Nexus app.