Get Session Audio
curl --request GET \
--url https://api.eka.care/voice/v1/sessions/{session_id}/audio \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.eka.care/voice/v1/sessions/{session_id}/audio"
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}/audio', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://api.eka.care/voice/v1/sessions/{session_id}/audio")
.header("Authorization", "Bearer <token>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/voice/v1/sessions/{session_id}/audio");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/voice/v1/sessions/{session_id}/audio")
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": "success",
"audio_url": "https://<bucket>.s3.ap-south-1.amazonaws.com/<key>?X-Amz-Expires=86400&...",
"expires_in": 86400,
"expires_at": 1753162800
}{
"error": {
"code": "invalid_audio_format",
"message": "Audio format 'audio/mp3' is not supported",
"details": {}
}
}{
"error": {
"code": "invalid_audio_format",
"message": "Audio format 'audio/mp3' is not supported",
"details": {}
}
}Sessions
Get Session Audio
Fetch the complete recording of a session as a presigned download URL (single combined MP3). Available for businesses with full-audio access enabled — contact support to enable it for your workspace. The combined audio is prepared in the background after End Session; until it is ready this endpoint returns 404 audio_not_available, so retry after a short delay. The recording is retained for 24 hours after the consultation by default (configurable per business) and is deleted after that — call this API within that window and download the audio via the returned presigned URL. Presigned URLs also expire — fetch a fresh URL when needed, don’t store it.
GET
/
voice
/
v1
/
sessions
/
{session_id}
/
audio
Get Session Audio
curl --request GET \
--url https://api.eka.care/voice/v1/sessions/{session_id}/audio \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.eka.care/voice/v1/sessions/{session_id}/audio"
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}/audio', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));HttpResponse<String> response = Unirest.get("https://api.eka.care/voice/v1/sessions/{session_id}/audio")
.header("Authorization", "Bearer <token>")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.eka.care/voice/v1/sessions/{session_id}/audio");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "Bearer <token>");
var response = await client.GetAsync(request);
Console.WriteLine("{0}", response.Content);
require 'uri'
require 'net/http'
url = URI("https://api.eka.care/voice/v1/sessions/{session_id}/audio")
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": "success",
"audio_url": "https://<bucket>.s3.ap-south-1.amazonaws.com/<key>?X-Amz-Expires=86400&...",
"expires_in": 86400,
"expires_at": 1753162800
}{
"error": {
"code": "invalid_audio_format",
"message": "Audio format 'audio/mp3' is not supported",
"details": {}
}
}{
"error": {
"code": "invalid_audio_format",
"message": "Audio format 'audio/mp3' is not supported",
"details": {}
}
}Fetch the complete recording of a session as a presigned download URL (single combined MP3). Requires full-audio access enabled for your business — contact support to enable it. The audio is combined in the background after End Session; until it’s ready this returns
404 audio_not_available, so retry after a short delay.
Session audio is retained for 24 hours after the consultation by default (configurable per business) and is deleted after that. Call this API within that window and download the recording via the returned presigned URL. Presigned URLs also expire — fetch fresh, don’t store.
Authorizations
Path Parameters
Response
Presigned URL for the combined session audio
Was this page helpful?

