Skip to main content
GET
/
voice
/
v1
/
sessions
/
{session_id}
Get Session
curl --request GET \
  --url https://api.eka.care/voice/v1/sessions/{session_id} \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.eka.care/voice/v1/sessions/{session_id}"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.eka.care/voice/v1/sessions/{session_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eka.care/voice/v1/sessions/{session_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.eka.care/voice/v1/sessions/{session_id}"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Bearer <token>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.eka.care/voice/v1/sessions/{session_id}")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.eka.care/voice/v1/sessions/{session_id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "session_id": "ses_abc123def456",
  "status": "completed",
  "created_at": "2026-06-06T14:21:07Z",
  "completed_at": "2026-06-06T14:21:34Z",
  "expires_at": "2026-06-06T15:21:07Z",
  "upload_url": "https://api.eka.care/voice/v1/sessions/ses_abc123def456/audio",
  "model_used": "pro",
  "language_detected": "en",
  "audio_files_received": 4,
  "audio_files": [
    "0.wav",
    "1.wav",
    "2.wav",
    "3.wav"
  ],
  "additional_data": {
    "_protocol": {
      "version": "0.1",
      "upload_type": "chunked",
      "communication_protocol": "http",
      "requested_templates": [
        "eka_emr_template",
        "clinical_notes_template"
      ]
    }
  },
  "transcript": "Patient presents with cough and fever...",
  "templates": [
    {
      "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": {}
      }
    }
  ]
}
{
"session_id": "ses_abc123def456",
"status": "processing",
"created_at": "2026-06-06T14:21:07Z",
"expires_at": "2026-06-06T15:21:07Z",
"upload_url": "https://api.eka.care/voice/v1/sessions/ses_abc123def456/audio",
"audio_files_received": 4,
"audio_files": [
"0.wav",
"1.wav",
"2.wav",
"3.wav"
],
"additional_data": {
"_protocol": {
"version": "0.1",
"upload_type": "chunked",
"communication_protocol": "http",
"requested_templates": [
"eka_emr_template",
"clinical_notes_template"
]
}
},
"transcript": "Patient presents with cough and fever..."
}
{
"session_id": "<string>",
"upload_url": "<string>",
"status": "partial",
"created_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"model_used": "<string>",
"language_detected": "<string>",
"audio_files_received": 123,
"audio_files_processed": 123,
"audio_files": [
"<string>"
],
"additional_data": {},
"templates": [
{}
],
"transcript": "<string>",
"processing_errors": [
{}
],
"patient_details": {}
}
{
"error": {
"code": "invalid_audio_format",
"message": "Audio format 'audio/mp3' is not supported",
"details": {}
}
}
{
"session_id": "<string>",
"upload_url": "<string>",
"status": "expired",
"created_at": "2023-11-07T05:31:56Z",
"expired_at": "2023-11-07T05:31:56Z",
"message": "Session expired before processing was initiated",
"audio_files_received": 123,
"audio_files": [
"<string>"
],
"additional_data": {},
"templates": {},
"transcript": "<string>"
}
Poll this after End Session at ~1-second intervals. The HTTP status code is the signal:
StatusMeaning
202Still processing — keep polling
200Done — transcript + templates (with document_id per template) in the body
206Done, but some templates failed
410Session expired
Pass ?document_id=<id> to return only that document’s result — e.g. a document_id from Process Template. Prefer not to poll? Register a webhook.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

session_id
string
required

Session ID returned by Create Session

Example:

"ses_abc123def456"

Query Parameters

document_id
string

If provided, returns only that document's result — e.g. a document_id from Process Template — instead of all session documents.

Example:

"doc_9f8e7d6c"

Response

Session completed successfully

Returned with HTTP 200 when the session completed successfully.

session_id
string
upload_url
string

Audio upload URL for the session (HTTPS for chunked, wss:// for stream).

status
string
Example:

"completed"

created_at
string<date-time>
completed_at
string<date-time> | null
model_used
string | null
Example:

"pro"

language_detected
string | null

ISO 639-1 language code detected from the audio.

Example:

"en"

audio_files_received
integer
audio_files
string[]
additional_data
object
templates
object[]

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).

Example:
[
{
"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": {}
}
}
]
transcript
string | null
patient_details
object | null