| 400 | Audio input is missing or invalid. | The multipart body must include a valid audio file or audio_url. Invalid audio buffers and non-string audio_url values are rejected. |
| 400 | Organisation configuration is missing. | The authenticated provider has no consultation upload configuration. |
| 422 | Transcript is too short. | The generated or supplied transcript has fewer than 20 words. |
| 400 | Provider or HCI configuration is invalid. | Missing or unknown provider ID, no consultation method/auth flow configured for the provider, missing or malformed clinic code, invalid CA origin, or the provider clinic limit is reached. |
| 401 | Authentication failed. | API key credentials are missing or invalid, a root clinic/key cannot be found, or no API key is linked to the authenticated clinic. |
| 429 | Usage limit reached. | Free-tier usage is exhausted, or a non-root paid API key has expired. |
| 500 | Unexpected server or upstream failure. | Unhandled JSON/form parsing errors, AI provider failures, transcription provider failures, database errors, or unexpected response parsing failures. |
1https://proxy.usescrubs.com



1curl --location 'https://proxy.usescrubs.com/api/v2/consultation/upload' \
2--header 'X-Scrubs-Clinic-Code: 00A123' \
3--header 'X-Scrubs-Clinic-Provider: SAMPLE_EHR_1' \
4--header 'Content-Type: multipart/form-data' \
5--form 'audio=@path/to/your/audiofile.mp3'1{
2 "transcript": "SPEAKER: S1\nHi, doctor, I have been having a stomach ache ...",
3 "original_transcript": "SPEAKER: S1\nHai Dok, perut aku sakit nih ...",
4 "summary": {
5 "subjective": "1. Chief complaint: Nausea and loss of appetite ...",
6 "objective": "1. Abdominal examination: No significant findings ...",
7 "assessment": "Viral Gastroenteritis",
8 "plan": "1. Prescribe antiemetics for nausea and pain relievers ..."
9 },
10 "diagnosis": [
11 {
12 "diagnosis": "Viral Gastroenteritis",
13 "explanation": "The patient's symptoms of nausea, vomiting, diarrhea ...",
14 "codes": [
15 "111843007",
16 "111844001",
17 "186153004"
18 ]
19 },
20 {
21 "diagnosis": "Gastritis",
22 "explanation": "Given the recent travel to China and consumption of ...",
23 "codes": [
24 "4556007"
25 ]
26 },
27 {
28 "diagnosis": "Food Poisoning",
29 "explanation": "The presence of distinct foodborne symptoms, with ...",
30 "codes": [
31 "75258004",
32 "281107009"
33 ]
34 }
35 ]
36}