Skip to main content

Access and authentication

Contact your Cortexa integration representative for application credentials, a test clinician and workspace, and the Cortexa app URL. See Sandbox.
Exchange the API key and a clinician authorization code for a Partner JWT. Use that JWT for clinical requests. A normal Cortexa login token cannot replace it. See Authentication.
The clinician’s user ID in your system. Your application includes it in the authorization link. It is required; reuse the same ID when they reconnect.
No. After the first authorization, your backend can renew tokens with its API key and the saved grant ID. Reconnect only when authorization is no longer valid.
Yes. Save each clinician’s grant for their selected workspace. Patients and sessions are scoped to the grant that created them.
Send them through authorization again to select the workspace. Use the returned grant for subsequent requests; changing workspaces in Cortexa does not change an existing grant.

Building your workflow

No. The Quickstart uses a short synthetic transcript.
Yes. Send independent audio chunks over HTTP. Each returns text; finish the recording to assemble the session transcript. This is not a WebSocket audio stream.
Consult notes and document content stream by default, including the saved result. For background processing, set stream=false and poll the returned jobs. A 202 receipt does not contain the finished note.
Write the reviewed result through your EHR API or an approved connector. Use section mappings for separate EHR fields. Editing a Cortexa document saves it in Cortexa.
Use custom prompts for free-text documents, or structured forms for typed questions, options, dates, and repeated entries. Arbitrary JSON Schema is not supported.
Confirm these with Cortexa for your environment. Clinical codes are suggestions for review; E/M assessment covers US outpatient MDM.

Troubleshooting

Check the session ID and grant. Sessions from another grant, including unshared internal Cortexa sessions, are not automatically accessible.
Keep the same request body and idempotency key. Patient and session creation use external IDs; audio chunks use the recording ID and index. See Errors.
Context changes apply to future generation. Edit or regenerate an existing document to update its text.
Send the operation, HTTP status, failure code, and X-Cortexa-Request-Id to your integration contact. Exclude credentials and clinical payloads.