{ "opencollection": "1.0.0", "info": { "name": "Amigo Account M42 API", "version": "0.1.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "M42", "type": "folder" }, "items": [ { "info": { "name": "List Patient Topology", "type": "http" }, "http": { "method": "GET", "url": "https://api.amigo.ai/v1/:workspace_id/m42/patient-topology", "params": [ { "name": "workspace_id", "value": "", "type": "path" }, { "name": "cluster", "value": "", "type": "query" }, { "name": "risk_tier", "value": "", "type": "query" }, { "name": "limit", "value": "", "type": "query" }, { "name": "offset", "value": "", "type": "query" } ] }, "docs": "Patient-level UMAP coordinates + predicted risk for the Self-Image scatter. Hand-seeded demo data (no ML training). Paginated." }, { "info": { "name": "List District Metrics", "type": "http" }, "http": { "method": "GET", "url": "https://api.amigo.ai/v1/:workspace_id/m42/district-metrics", "params": [ { "name": "workspace_id", "value": "", "type": "path" }, { "name": "limit", "value": "", "type": "query" }, { "name": "offset", "value": "", "type": "query" } ] }, "docs": "Per-district t2d observed vs predicted incidence, capacity gap, and unmet-demand score. Hand-seeded demo data." }, { "info": { "name": "List Anomaly Alerts", "type": "http" }, "http": { "method": "GET", "url": "https://api.amigo.ai/v1/:workspace_id/m42/anomaly-alerts", "params": [ { "name": "workspace_id", "value": "", "type": "path" }, { "name": "severity", "value": "", "type": "query" }, { "name": "limit", "value": "", "type": "query" }, { "name": "offset", "value": "", "type": "query" } ] }, "docs": "Emerging health anomalies with inline causal decomposition, recommended actions, and unacted projection. Hand-seeded demo data." }, { "info": { "name": "List Forecast Fan", "type": "http" }, "http": { "method": "GET", "url": "https://api.amigo.ai/v1/:workspace_id/m42/forecast-fan", "params": [ { "name": "workspace_id", "value": "", "type": "path" }, { "name": "run_id", "value": "", "type": "query" }, { "name": "scenario", "value": "", "type": "query" }, { "name": "limit", "value": "", "type": "query" }, { "name": "offset", "value": "", "type": "query" } ] }, "docs": "Forecast fan points (t, median, lower/upper 95% CI) for a named run + scenario. Used by the Sensorium observational fan and the Sims dual-envelope overlay." }, { "info": { "name": "List Positive Signals", "type": "http" }, "http": { "method": "GET", "url": "https://api.amigo.ai/v1/:workspace_id/m42/positive-signals", "params": [ { "name": "workspace_id", "value": "", "type": "path" }, { "name": "limit", "value": "", "type": "query" }, { "name": "offset", "value": "", "type": "query" } ] }, "docs": "Small set of positive-trend headline metrics for the Sensorium hero strip. Hand-seeded demo data." }, { "info": { "name": "List Anomalies Ranked", "type": "http" }, "http": { "method": "GET", "url": "https://api.amigo.ai/v1/:workspace_id/m42/anomalies/ranked", "params": [ { "name": "workspace_id", "value": "", "type": "path" }, { "name": "indicator", "value": "", "type": "query" }, { "name": "limit", "value": "", "type": "query" }, { "name": "offset", "value": "", "type": "query" } ] }, "docs": "Ranked anomalies for a single indicator (default ``t2d_risk``). Includes inline decomposition + district centroids for the map. Schema-probes the alerts table so it works pre- and post-multi-indicator pipeline expansion." }, { "info": { "name": "List Cluster Summary", "type": "http" }, "http": { "method": "GET", "url": "https://api.amigo.ai/v1/:workspace_id/m42/clusters/summary", "params": [ { "name": "workspace_id", "value": "", "type": "path" }, { "name": "limit", "value": "", "type": "query" }, { "name": "offset", "value": "", "type": "query" } ] }, "docs": "Per-cluster cohort stats — size, mean age/BMI/HbA1c, prediabetes / T2D %, predicted-risk mean. Powers the Patient Profile cluster strip." }, { "info": { "name": "List Cluster Forecast", "type": "http" }, "http": { "method": "GET", "url": "https://api.amigo.ai/v1/:workspace_id/m42/clusters/forecast", "params": [ { "name": "workspace_id", "value": "", "type": "path" }, { "name": "focus_area", "value": "", "type": "query" }, { "name": "limit", "value": "", "type": "query" }, { "name": "offset", "value": "", "type": "query" } ] }, "docs": "Per-cluster forecast fan points for the Patient Profile multi-line chart. ``focus_area`` defaults to T2D for backward compat." }, { "info": { "name": "List Forecast Draws", "type": "http" }, "http": { "method": "GET", "url": "https://api.amigo.ai/v1/:workspace_id/m42/forecast-fan/draws", "params": [ { "name": "workspace_id", "value": "", "type": "path" }, { "name": "run_id", "value": "", "type": "query" }, { "name": "scenario", "value": "", "type": "query" }, { "name": "sample", "value": "", "type": "query" } ] }, "docs": "Sampled subset of raw Poisson bootstrap draws (faint spaghetti curves behind the forecast fan)." }, { "info": { "name": "List Model Registry", "type": "http" }, "http": { "method": "GET", "url": "https://api.amigo.ai/v1/:workspace_id/m42/model-registry", "params": [ { "name": "workspace_id", "value": "", "type": "path" }, { "name": "limit", "value": "", "type": "query" }, { "name": "offset", "value": "", "type": "query" } ] }, "docs": "Fitted GLM coefficients, training-set size, AUROC for each focus-area model. Inline JSON kept as strings — clients parse." }, { "info": { "name": "List Stratified Fits", "type": "http" }, "http": { "method": "GET", "url": "https://api.amigo.ai/v1/:workspace_id/m42/stratified-fits", "params": [ { "name": "workspace_id", "value": "", "type": "path" }, { "name": "outcome_key", "value": "", "type": "query" }, { "name": "limit", "value": "", "type": "query" }, { "name": "offset", "value": "", "type": "query" } ] }, "docs": "Per-cohort x region GLM fits with pooled fallback. Drives the dashboard's outcome-by-segment comparison view." }, { "info": { "name": "List Patient Labs", "type": "http" }, "http": { "method": "GET", "url": "https://api.amigo.ai/v1/:workspace_id/m42/patients/:patient_id/labs", "params": [ { "name": "workspace_id", "value": "", "type": "path" }, { "name": "patient_id", "value": "", "type": "path" }, { "name": "limit", "value": "", "type": "query" }, { "name": "offset", "value": "", "type": "query" } ] }, "docs": "Patient-level bronze lab rows ordered by observation_date. Drives the mini-trajectory charts in the Patient Profile drawer." }, { "info": { "name": "Get Patient Note", "type": "http" }, "http": { "method": "GET", "url": "https://api.amigo.ai/v1/:workspace_id/m42/patients/:patient_id/note", "params": [ { "name": "workspace_id", "value": "", "type": "path" }, { "name": "patient_id", "value": "", "type": "path" } ] }, "docs": "Patient's synthetic clinical note + LLM-extracted structured fields. NLP sample is 500 patients — returns 404 outside that set." }, { "info": { "name": "Get Notes Rollup", "type": "http" }, "http": { "method": "GET", "url": "https://api.amigo.ai/v1/:workspace_id/m42/notes/rollup", "params": [ { "name": "workspace_id", "value": "", "type": "path" }, { "name": "cluster", "value": "", "type": "query" }, { "name": "district", "value": "", "type": "query" } ] }, "docs": "Cohort-wide (or per-cluster / per-district) rollup of NLP extractions joined onto patient-topology risk. Surfaces which narrative signals correlate with higher predicted T2D risk." }, { "info": { "name": "List Catalog", "type": "http" }, "http": { "method": "GET", "url": "https://api.amigo.ai/v1/:workspace_id/m42/catalog", "params": [ { "name": "workspace_id", "value": "", "type": "path" } ] }, "docs": "Per-table layer + description + row count for the Catalog page." }, { "info": { "name": "Describe Table", "type": "http" }, "http": { "method": "GET", "url": "https://api.amigo.ai/v1/:workspace_id/m42/catalog/:table/columns", "params": [ { "name": "workspace_id", "value": "", "type": "path" }, { "name": "table", "value": "", "type": "path" } ] }, "docs": "Column metadata (name, type, comment) for one allowlisted m42 table." }, { "info": { "name": "Sample Table", "type": "http" }, "http": { "method": "GET", "url": "https://api.amigo.ai/v1/:workspace_id/m42/catalog/:table/sample", "params": [ { "name": "workspace_id", "value": "", "type": "path" }, { "name": "table", "value": "", "type": "path" }, { "name": "limit", "value": "", "type": "query" } ] }, "docs": "Up to ``limit`` raw rows from one allowlisted m42 table for preview." }, { "info": { "name": "List Features", "type": "http" }, "http": { "method": "GET", "url": "https://api.amigo.ai/v1/:workspace_id/m42/features", "params": [ { "name": "workspace_id", "value": "", "type": "path" } ] }, "docs": "Allowlist of feature columns (continuous or binary) for the Explore UI." }, { "info": { "name": "Feature Distribution", "type": "http" }, "http": { "method": "GET", "url": "https://api.amigo.ai/v1/:workspace_id/m42/features/distribution", "params": [ { "name": "workspace_id", "value": "", "type": "path" }, { "name": "feature", "value": "", "type": "query" }, { "name": "bins", "value": "", "type": "query" } ] }, "docs": "Histogram bins for one allowlisted feature, stratified by ``y_t2d_1yr`` outcome. Continuous features get ``bins`` buckets; binary features collapse to 2." } ] } ], "bundled": true }