| 400 | Transcript is missing or invalid. | The JSON body is missing transcript, or transcript is empty. |
| 400 | Unsupported output language. | The X-Scrubs-Clinic-Output-Language header is present but does not match a supported language code. |
| 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/summarisation/soap' \
2--header 'X-Scrubs-Clinic-Code: 00A123' \
3--header 'X-Scrubs-Clinic-Provider: SAMPLE_EHR_1' \
4--header 'X-Scrubs-Clinic-Output-Language: fil' \
5--header 'Content-Type: application/json' \
6--data '{
7 "transcript": "Hi, doctor, I have been having a headache for the past 1 week ..."
8}'1{
2 "summary": {
3 "subjective": "1. Chief complaint: Nausea and loss of appetite ...",
4 "objective": "1. Abdominal examination: No significant findings ...",
5 "assessment": "Viral Gastroenteritis",
6 "plan": "1. Prescribe antiemetics for nausea and pain relievers ..."
7 }
8}| 400 | Transcript or summary is missing or invalid. | The JSON body is missing required summarisation inputs. |
| 422 | Transcript is too short. | The transcript has fewer than 20 words, usually indicating poor audio capture or an incomplete consultation. |
| 400 | Unsupported output language. | The X-Scrubs-Clinic-Output-Language header is present but does not match a supported language code. |
| 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/summarisation/pvs' \
2--header 'X-Scrubs-Clinic-Code: 00A123' \
3--header 'X-Scrubs-Clinic-Provider: SAMPLE_EHR_1' \
4--header 'X-Scrubs-Clinic-Output-Language: fil' \
5--header 'Content-Type: application/json' \
6--data '{
7 "transcript":"Hi, doctor, I have been having a headache for the past 1 week ...",
8 "summary":"Patient reports having a headache for the past week ..."
9}'1{
2 "pvs": {
3 "visit_summary": "During your visit today, we discussed ...",
4 "plans": "1. Tension Headache: This is a type of headache ...",
5 "instructions": "Please take the prescribed medications ..."
6 }
7}| 400 | Summary or transformation mode is invalid. | summary is required. Provide either template/templateKey or prompt, but not both. |
| 400 | templateKey is invalid. | templateKey must be a non-empty string containing only letters, numbers, underscores, or hyphens. |
| 404 | Template key was not found. | A templateKey was supplied but no matching consultation template exists. |
| 400 | Unsupported output language. | The X-Scrubs-Clinic-Output-Language header is present but does not match a supported language code. |
| 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/summarisation/transform-note' \
2--header 'X-Scrubs-Clinic-Code: 00A123' \
3--header 'X-Scrubs-Clinic-Provider: SAMPLE_EHR_1' \
4--header 'X-Scrubs-Clinic-Output-Language: en' \
5--header 'Content-Type: application/json' \
6--data '{
7 "summary": "Patient reports headache for past week, worsening. Normal vitals. Assessment: tension headache. Plan: ibuprofen, stress management.",
8 "template": "SOAP NOTE\n\nDate: ___________\nProvider: ___________\n\nCHIEF COMPLAINT:\n___________\n\nHISTORY:\n___________\n\nASSESSMENT:\n___________\n\nPLAN:\n___________"
9}'1{
2 "transformed_note": "EMERGENCY DEPARTMENT SOAP NOTE\n\nDate: 2024-01-15\nProvider: Dr. Smith\n\nCHIEF COMPLAINT:\nHeadache for 1 week\n\nHISTORY OF PRESENT ILLNESS:\nPatient reports headache for past week, gradually worsening...\n\nASSESSMENT AND PLAN:\n1. Tension headache - ibuprofen and stress management\n2. Follow up if symptoms worsen\n\nProvider: Dr. Smith"
3}