Get Session
Retrieve the current status of a session and, once processing finishes, its transcript and structured template results. The HTTP status code signals progress: 202 still processing, 200 completed, 206 completed with partial results, 410 expired, 404 not found. After calling End Session, poll this endpoint at ~1-second intervals until the status is no longer 202.
Polling guidance
After you receive202 Accepted from End Session, poll this endpoint at ~1-second intervals until the status is no longer 202:
Status codes
| HTTP status | status | Meaning | Body |
|---|---|---|---|
202 | processing / initialized | Still processing — keep polling. | SessionProcessingResponse |
200 | completed | Finished successfully; transcript + templates available. | SessionCompletedResponse |
206 | partial | Finished, but some templates failed. | SessionPartialResponse |
200 | failed | Processing failed (terminal). Inspect the response for details. | SessionCompletedResponse shape |
410 | expired | Session expired before processing was initiated. | ExpiredSessionResponse |
404 | — | Session does not exist. | ErrorResponse |
Response fields by state
Every state also echoesupload_url (the session’s audio upload endpoint — HTTPS for chunked, wss:// for stream).
202 Processing
session_id, status, created_at, expires_at, audio_files_received, audio_files[], additional_data, transcript (partial/empty), patient_details.
200 Completed
Adds completed_at, model_used, language_detected, the full transcript, and templates — an array with one entry per generated document, keyed by template_id (each entry carries status, data, document_id, publish metadata, and a presigned_url when applicable).
206 Partial
Same as completed, plus audio_files_processed and processing_errors[] describing the non-fatal failures.
410 Expired
session_id, status: expired, created_at, expired_at, message, audio_files_received, audio_files[], empty templates/transcript.
Filtering to one template
Pass?template_id=<id> to restrict the returned templates to documents for a single template only — useful when a session requested multiple templates but you only need one.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Session ID returned by Create Session
"ses_abc123def456"
Query Parameters
If provided, restricts returned templates to documents for this template_id only.
Response
Session completed successfully
Returned with HTTP 200 when the session completed successfully.
Audio upload URL for the session (HTTPS for chunked, wss:// for stream).
"completed"
"pro"
ISO 639-1 language code detected from the audio.
"en"
Template results as a list — one entry per generated document, each a single-key object keyed by template_id. A template that produces multiple documents appears multiple times, so this is a list rather than a map. Each inner object carries status, data, document_id, document_type, publish metadata (and a presigned_url when applicable).
[
{
"eka_emr_template": {
"status": "success",
"document_id": "doc_abc123",
"document_type": "eka_emr_template",
"data": { "chief_complaint": "cough and fever" },
"publish": {}
}
},
{
"clinical_notes_template": {
"status": "success",
"document_id": "doc_def456",
"data": { "assessment": "Acute bronchitis" },
"publish": {}
}
}
]
