Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.medera.info/llms.txt

Use this file to discover all available pages before exploring further.

Spin up a real-time ambient scribe with the AI Services clinical endpoints.

1. Authenticate

export TOKEN="<your Clerk JWT or API key>"

2. Start the session

curl -X POST https://api.medera.ai/api/clinical/start \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "session_type": "clinical_visit", "patient_id": "pat_abc" }'

3. Stream chunks

curl -X POST https://api.medera.ai/api/clinical/chunk \
  -H "Authorization: Bearer $TOKEN" \
  -d '{
    "session_id": "ses_abc",
    "audio_data": "<base64 PCM 16 kHz>"
  }'
Local Whisper (base) is the default; OpenAI Whisper is the fallback.

4. Stop and analyze

curl -X POST https://api.medera.ai/api/clinical/stop \
  -H "Authorization: Bearer $TOKEN" \
  -d '{ "session_id": "ses_abc" }'

5. Generate the SOAP note

curl -X POST https://api.medera.ai/api/therapy/generate-soap-note-enhanced \
  -H "Authorization: Bearer $TOKEN" \
  -d '{
    "session_data": { "session_id": "ses_abc" },
    "specialty": "psychiatry",
    "template_config": { "include_billing_codes": true }
  }'

6. Sign and post

After clinician sign-off:
curl -X POST https://api.medera.ai/api/therapy/notes/{note_id}/finalize \
  -H "Authorization: Bearer $TOKEN"
Medera posts the signed note and code set to the configured EHR via the integration adapter.