Open a session
POST /api/v1/sessions
Upload a chunk
POST /api/v1/sessions/{sessionId}/chunks — multipart/form-data
| Field | Required | Notes |
|---|---|---|
file | yes | Audio chunk. |
language | no | Default sv. |
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).
Errors
| Status | Reason |
|---|---|
| 400 | No chunk provided / no audio accumulated for the session. |
| 401 | Invalid API key. |
| 502 | Upstream failure. |