Health Dummy APIs
All endpoints accept POST with a JSON body: { "member_code": "MBR-123456" }
Endpoints
| Endpoint | Method | Auth | Returns |
|---|---|---|---|
/api/biomarkers | POST | — | All 10 biomarkers for the member |
/api/member-profile | POST | — | Member demographics (name, age, sex, ethnicity) |
/api/critical-biomarkers | POST | — | Only the 4 critical-flagged biomarkers |
/api/health-summary | POST | x-api-key header required | Overall health risk score, risk factors & recommendations |
Example Request (public endpoint)
curl -X POST /api/biomarkers \
-H "Content-Type: application/json" \
-d '{ "member_code": "MBR-123456" }'Example Request (protected endpoint)
curl -X POST /api/health-summary \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_SECRET_KEY" \
-d '{ "member_code": "MBR-123456" }'Validation
member_codeis required for all endpoints- Must be alphanumeric (hyphens allowed)
- Returns
400if missing or invalid - The
member_codefrom the request is echoed back in the response /api/health-summaryrequires a validx-api-keyheader — returns401if missing or incorrect