| 400 | audio/audio_url is missing or invalid. | The request must include exactly one audio file or a non-empty audio_url value pointing to an accessible audio file. |
| 413 | Uploaded audio file is too large. | The multipart audio upload exceeds the configured transcription file size limit. |
| 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/transcription' \
2--header 'X-Scrubs-Clinic-Code: 00A123' \
3--header 'X-Scrubs-Clinic-Provider: SAMPLE_EHR_1' \
4--form 'audio=@"/path/to/audio.mp3"'1{
2 "transcript": "SPEAKER: S1\nHi, doctor, I have been having a headache ...",
3 "detected_language": "en",
4 "duration_secs": 42.5,
5 "usage_limit": 9
6}