See API.md for the full source, or the summary below.
Header X-Api-Key: <key> (or HTTP Basic Auth with the same value as both user and password). Body: {"mode": "PCR_ONLY|MAST_PENDING|MAST_FINAL", "case": {...}}.
{
"mode": "MAST_FINAL",
"case": {
"patient": {"name":"","patientId":"","dob":"MM/DD/YYYY","sex":"F / Female"},
"order": {"provider":"","specimen":"Deep wound swab","accession":"","collected":"","received":"","reported":""},
"detected": [{"id":"WND20","pcrLoad":"HIGH","mastLoad":"1 × 10⁴ cells/mL"}],
"empiric": {"name":"Ciprofloxacin","strength":"500 mg","directions":"Take by mouth every 12 hours"},
"alternatives": [{"name":"Doxycycline"}],
"allergies": [],
"pregnancy": "YES",
"pregnancyTrimester": "FIRST",
"kidneyDisease": false,
"liverDisease": false,
"mastResults": {"WND20": {"Ciprofloxacin":"S"}}
}
}
Response: {success, mode, pageCount, renderer, reportId, pdfUrl, htmlUrl, getApi}.
Returns the stored case JSON and a fresh PDF URL.
Returns the current TARGETS / MAST_DRUGS / allergyOptions / icdOptions / therapyPresets / EVOLVE_WOUND_MAST_DATABASE.
⇩ Download TruPath_API.postman_collection.json - includes PCR_ONLY and MAST_FINAL sample requests. Import it into Postman, then check the collection variables:
| Variable | Value | Notes |
|---|---|---|
baseUrl | https://tpl.robbiekohli.com | The bare domain only, no trailing slash - every request's own path already spells out /tpl-wound/api/..., so this same baseUrl value is shared as-is across every TruPath product on this domain. |
apiKey | DF@2026:DF@2026 | Sent as the X-API-Key header. |
reportId | (blank) | Paste a reportId here to use with Get Report. |
Full request path for this product: https://tpl.robbiekohli.com/tpl-wound/api/generate-report.php (and the same pattern for get-report.php / reference-data.php).