Prerequisites
- A Corti API Console account — sign up at the Corti API Console to get started.
- An API client — your tenant name,
clientId, andclientSecretare all found in your API client configuration. See Creating API clients to set one up.
Send a prediction request
POST a clinical note to the code prediction endpoint. The
system field determines which classification is applied.| Parameter | Type | Required | Description |
|---|---|---|---|
system | string[] | Yes | One or more coding systems. Up to 4 per request. See Coding Systems for all options and recommended pairings. |
context | object[] | Yes | The clinical input to code. Each item is a text string or a documentId referencing a document stored in Corti. |
filter | object | No | Restrict predictions to specific codes or categories. See Code Prediction for details. |
Read the response
A successful response returns three top-level fields:
codes— the model’s high-confidence predictions. Each entry includes thecode, a human-readabledisplay,evidences(the exact passages from the note that support the prediction, withcontextIndex,text, andstart/endcharacter offsets), andalternatives(other codes the model considered for the same finding).candidates— lower-confidence codes worth reviewing. Intended for coder review rather than automatic assignment.usageInfo— credits consumed for this request.
Combine coding systems
Most US encounters require more than one coding system. Pass multiple values in See Coding Systems for recommended pairings by encounter type.
system — for example, pairing ICD-10-CM with CPT for an outpatient visit. The response includes codes from all requested systems in the same codes array, each tagged with its system value.Next steps
Code Prediction
Learn about the endpoint, supported features, and coding system options.
How it works
Understand the request schema, response fields, evidence spans, and filtering options.
Use cases
Encounter coding, CDI review, HCC capture, and revenue cycle workflows.
Please contact us if you need help getting started or run into issues with your first request.