> ## Documentation Index
> Fetch the complete documentation index at: /developers/llms.txt
> Use this file to discover all available pages before exploring further.

# Frequently asked questions

> Answers about access, audio, note generation, and EHR integration.

## Access and authentication

> [accordion] How do I get sandbox access?
>
> Contact your Cortexa integration representative for application credentials,
> a test clinician and workspace, and the Cortexa app URL. See [Sandbox](/developers/sandbox.md).

> [accordion] Can I call clinical endpoints with an API key?
>
> 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](/developers/authentication.md).

> [accordion] What is external\_user\_id?
>
> 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.

> [accordion] Does the clinician sign in for every API call?
>
> 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.

> [accordion] Can one application serve multiple clinicians?
>
> Yes. Save each clinician's grant for their selected workspace. Patients and
> sessions are scoped to the grant that created them.

> [accordion] How does a clinician change the connected workspace?
>
> 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

> [accordion] Do I need audio to try note generation?
>
> No. The [Quickstart](/developers/quickstart.md) uses a short synthetic transcript.

> [accordion] Can I transcribe during a consultation?
>
> Yes. Send [independent audio chunks over HTTP](/developers/segmented-transcription.md).
> Each returns text; finish the recording to assemble the session transcript.
> This is not a WebSocket audio stream.

> [accordion] Do I need to poll for notes?
>
> Consult notes and document content [stream by default](/developers/streaming.md), including
> the saved result. For background processing, set `stream=false` and
> [poll the returned jobs](/developers/jobs.md). A `202` receipt does not contain the finished note.

> [accordion] How do I save the note to my EHR?
>
> Write the reviewed result through your EHR API or an [approved connector](/developers/connectors.md).
> Use [section mappings](/developers/sectional-notes.md) for separate EHR fields. Editing a
> Cortexa document saves it in Cortexa.

> [accordion] Can I generate a custom format?
>
> Use [custom prompts](/developers/custom-templates.md) for free-text documents, or
> [structured forms](/developers/structured-responses.md) for typed questions, options,
> dates, and repeated entries. Arbitrary JSON Schema is not supported.

> [accordion] Which languages, regions, and code systems are available?
>
> Confirm these with Cortexa for your environment. Clinical codes are
> suggestions for review; [E/M assessment](/developers/clinical-coding.md) covers US outpatient MDM.

## Troubleshooting

> [accordion] Why does an existing session return 404?
>
> Check the session ID and grant. Sessions from another grant, including
> unshared internal Cortexa sessions, are not automatically accessible.

> [accordion] How do I retry without creating duplicates?
>
> 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](/developers/errors.md).

> [accordion] Does changing context update existing notes?
>
> Context changes apply to future generation. Edit or regenerate an existing
> document to update its text.

> [accordion] What should I send to support?
>
> Send the operation, HTTP status, failure code, and `X-Cortexa-Request-Id` to
> your integration contact. Exclude credentials and clinical payloads.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.