API overview

Interactive docs: http://127.0.0.1:8000/docs when running locally. Optional X-API-Key when API_KEY is set.

Core inference

MethodPathPurpose
GET/healthLiveness
GET/v1/readyModel load readiness
GET/v1/metaGovernance metadata
GET/v1/model/schemaFeature columns + stats
GET/v1/model/metricsHold-out metrics
POST/v1/predictRisk + optional explanation

Researcher workbench

AreaEndpoints
Workspace/v1/workspace/status, /v1/workspace/config
Datasetslist, health, profile, upload, from-form, from-sql
Jobstrain, compare, leakage-audit, shap, fairness, hpo; get/list/cancel job
Reportssummary, fairness, thresholds, file, ZIP
Tasks / events / runstask presets, event log, list/detail/promote run

Example predict

curl -sS http://127.0.0.1:8000/v1/model/schema | jq .
curl -sS -X POST http://127.0.0.1:8000/v1/predict \
  -H 'Content-Type: application/json' \
  -d '{"features":{"w7d_glucose":120,"w7d_age":55},"include_explanation":true}'

Feature names must match the schema (windowed columns), not raw EHR field names.

OpenAPI Swagger UI
OpenAPI UI