Get Sessions
curl --request GET \
--url https://api.eka.care/voice/api/v2/transaction/history \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.eka.care/voice/api/v2/transaction/history"
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/api/v2/transaction/history', 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/api/v2/transaction/history",
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/api/v2/transaction/history"
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/api/v2/transaction/history")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eka.care/voice/api/v2/transaction/history")
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{
"status": "success",
"data": [
{
"txn_id": "ses_abc123def456",
"b_id": "161467756044203",
"oid": "PAT-12345",
"mode": "consultation",
"flavour": "v2rx",
"model_type": "pro",
"processing_status": "success",
"user_status": "commit",
"patient_details": {
"oid": "PAT-12345",
"name": "John Doe"
},
"created_at": "2026-06-06T14:21:07Z"
},
{
"txn_id": "ses_789ghi012jkl",
"b_id": "161467756044203",
"mode": "dictation",
"flavour": "v2rx",
"model_type": "lite",
"processing_status": "in-progress",
"patient_details": {},
"created_at": "2026-06-05T09:12:44Z"
}
],
"retrieved_count": 2
}{
"status": "failed",
"error": "No transactions found"
}Sessions
Get Sessions
List past sessions for the authenticated user, newest first. Cancelled and archived sessions are excluded. Pass count to cap the number of sessions returned. Pass oid to fetch sessions of a specific patient instead (up to 10 by default — override with count).
GET
/
voice
/
api
/
v2
/
transaction
/
history
Get Sessions
curl --request GET \
--url https://api.eka.care/voice/api/v2/transaction/history \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.eka.care/voice/api/v2/transaction/history"
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/api/v2/transaction/history', 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/api/v2/transaction/history",
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/api/v2/transaction/history"
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/api/v2/transaction/history")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eka.care/voice/api/v2/transaction/history")
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{
"status": "success",
"data": [
{
"txn_id": "ses_abc123def456",
"b_id": "161467756044203",
"oid": "PAT-12345",
"mode": "consultation",
"flavour": "v2rx",
"model_type": "pro",
"processing_status": "success",
"user_status": "commit",
"patient_details": {
"oid": "PAT-12345",
"name": "John Doe"
},
"created_at": "2026-06-06T14:21:07Z"
},
{
"txn_id": "ses_789ghi012jkl",
"b_id": "161467756044203",
"mode": "dictation",
"flavour": "v2rx",
"model_type": "lite",
"processing_status": "in-progress",
"patient_details": {},
"created_at": "2026-06-05T09:12:44Z"
}
],
"retrieved_count": 2
}{
"status": "failed",
"error": "No transactions found"
}List past sessions for the authenticated user, newest first — useful for building a session-history screen. Cancelled and archived sessions are excluded.
Two ways to use it:
- User history (default) — all sessions created by the calling user. Pass
countto cap how many are returned. - Patient history — pass
?oid=<patient_oid>to fetch sessions of a specific patient (up to 10 by default — override withcount).
txn_id is the session ID — use it with Get Session, Get Session Audio or List Session Documents.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Number of latest sessions to fetch.
Required range:
x >= 1Patient OID. When provided, returns that patient's sessions (default 10) instead of the user's full history.
Was this page helpful?

