| 400 | Transcript or summary is missing or invalid. | The JSON body must include non-empty transcript and summary values. |
| 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://usescrubs.com



1curl --location 'https://usescrubs.com/api/v1/evidence' \
2--header 'X-Scrubs-Clinic-Code: 00A123' \
3--header 'X-Scrubs-Clinic-Provider: SAMPLE_EHR_1' \
4--header 'Content-Type: application/json' \
5--data '{
6 "transcript":"Hi, doctor, I have been having a headache for the past 1 week ...",
7 "summary":"Patient reports having a headache for the past week ..."
8}'1{
2 "evidence_map": {
3 "Patient reports having a headache for the past week": "Headache since last Monday.",
4 "Unable to work due to persistent headache": "Haven't worked for the past week.",
5 "Patient reports poor sleep": "A bit of poor sleep for the last 2 to 3 nights.",
6 ...
7 }
8}