| 400 | Required coding input is missing. | assessment and codeType are required in the JSON body. |
| 400 | codeType is invalid. | codeType must be SNOMED or ICD-10. |
| 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/coding' \
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 "assessment": "Functional dyspepsia",
7 "codeType": "SNOMED",
8 "codeOnly": false
9}'1{
2 "snomedCodes": [
3 {
4 "conceptId": "3696007",
5 "term": "Functional dyspepsia"
6 },
7 {
8 "conceptId": "87548005",
9 "term": "Dyspepsia (disorder)"
10 },
11 {
12 "conceptId": "155722007",
13 "term": "Dyspepsia, indigestion NOS"
14 }
15 ]
16}