POST /api/v1/notes
Generate a structured clinical note. Two input modes:
- Audio — multipart with a
file. Transcribes then generates. - Transcript — JSON with a
transcript. Generates from text.
Request — audio (multipart/form-data)
| Field | Required | Notes |
|---|---|---|
file | yes | Audio file. |
language | no | Output language. Default sv. |
templateSections | no | JSON template structure (string). |
template | no | Registered template id. |
sideNote | no | Extra context appended before generation. |
primaryProfession | no | Profession context. |
customTemplate | no | Free-form custom template body. |
Request — transcript (application/json)
Response
templateSections, the
sections array mirrors your structure. The combined field is always a full
text rendering you can drop straight into an EHR text area.
Errors
| Status | Reason |
|---|---|
| 400 | Neither a file nor a transcript was provided. |
| 401 | Invalid API key. |
| 502 | Upstream generation failed. |