Skip to main content
For streaming audio in chunks. See the chunked flow guide for the end-to-end walkthrough.

Open a session

POST /api/v1/sessions
{ "sessionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6" }

Upload a chunk

POST /api/v1/sessions/{sessionId}/chunks — multipart/form-data
FieldRequiredNotes
fileyesAudio chunk.
languagenoDefault sv.
{ "ok": true, "chunkTranscript": "..." }
Each chunk’s text is appended to the session transcript.

Generate from session

POST /api/v1/sessions/{sessionId}/notes — application/json Accepts the same metadata fields as Generate notes (language, templateSections, template, sideNote, primaryProfession, customTemplate).
{
  "transcript": "...full accumulated transcript...",
  "note": { "cause": "...", "subjective": "...", "...": "..." }
}
Generating consumes the session. Open a new one for the next consultation.

Errors

StatusReason
400No chunk provided / no audio accumulated for the session.
401Invalid API key.
502Upstream failure.