Skip to main content
A typical integration connects the clinician once, then creates a session for each consultation.

Connect a clinician

Save the returned grant_id for the clinician and workspace. Your backend uses it with the API key to renew access tokens. The clinician only needs to reconnect when authorization is no longer valid. See Authentication.

Run a consultation

1

Open the patient and session

Send your patient and encounter IDs to the session workflow. It creates or resumes the consultation and returns Cortexa IDs for later requests.
2

Add clinical input

Submit transcript text or audio and add relevant history and reports. Wait for transcription and any required attachments to finish processing.
3

Generate the note

Choose a template and request a consult note. Process incoming output.delta text. The final output.ready event contains the saved document.
4

Review and save

Let the clinician review the draft. Save edits in Cortexa, then write the reviewed result through your EHR API or an approved connector call.

Choose an input path

Keep the IDs you will need

Use the same grant throughout the consultation. A different grant cannot access its patients or sessions, even under the same application.

Generate your first note

Try the complete flow with a synthetic transcript and cURL.