scribe:generate to ask; scribe:read to retrieve the answer.
Submit a question
POST /sessions/{session_id}/ask-ai
message is required and must contain 1–12,000 characters. The 202 response
includes job_id and status. Save that job ID as CORTEXA_JOB_ID.
Read the answer
Continue polling while the work is pending. Stop on
failed or cancelled and
handle the failure. The generic job endpoint also exposes status, but
use this session-specific endpoint to retrieve the answer.
Provide context
Add relevant material to session context before asking. Answers use that session and its prior partner replies; unshared visits and internal Cortexa conversations are outside this scope. Display the answer for clinician review. To include it in a note, save a document edit.Troubleshooting
An unrelated job ID or a job belonging to another session/grant returns404.
When the submission response is lost, retry the same message and idempotency key.
Do not submit a new question on every polling interval.