curl --request GET \
--url https://api.anam.ai/v1/sessions/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.anam.ai/v1/sessions/{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.anam.ai/v1/sessions/{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.anam.ai/v1/sessions/{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.anam.ai/v1/sessions/{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.anam.ai/v1/sessions/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anam.ai/v1/sessions/{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{
"id": "75e63782-f47a-4d2c-a0ff-8875ed6706ba",
"personaId": null,
"clientLabel": "anam-lab-chat",
"startTime": "2026-04-20T09:00:00.000Z",
"endTime": "2026-04-20T09:12:34.000Z",
"sessionLengthMs": 754000,
"exitStatus": "CLOSED_BY_ENGINE",
"engineHost": "connect-eu.anam.ai/v1/webrtc/engines/<engine-id>",
"engineProtocol": "https",
"engineVersion": "v5.1.0",
"region": "eu",
"clientMetadata": {
"userAgent": "Mozilla/5.0"
},
"personaConfig": {
"type": "ephemeral",
"name": "Cara",
"metadata": {
"client": "js-sdk"
},
"llmConfig": {
"id": "a7cf662c-2ace-4de1-a21e-ef0fbf144bb7",
"modelName": "gpt-4o",
"format": "openai",
"urls": [
{
"url": "https://api.openai.com/v1",
"region": "default"
}
],
"maxTokens": 4096,
"temperature": 0.7,
"metadata": {},
"secret_iv": "[REDACTED]",
"encrypted_secret": "[REDACTED]",
"createdByOrganizationId": null
},
"systemPrompt": "You are a helpful assistant.",
"personality": "",
"languageCode": "en",
"skipGreeting": false,
"zeroDataRetention": false,
"ttsProvider": "ELEVENLABS",
"ttsProviderVoiceId": "lcMyyd2HUfFzxdCaC4Ta",
"ttsProviderModelId": "eleven_flash_v2_5",
"ttsProviderOptions": {},
"avatarId": "071b0286-4cce-4808-bee2-e642f1062de3",
"avatarEngineKey": "cara_home",
"avatarVersion": "cara-3",
"disableBrains": false,
"fillerPhrases": [],
"useFillerPhrases": false,
"enableAudioPassthrough": false,
"voiceDetectionOptions": {},
"voiceGenerationOptions": {},
"maxSessionLengthSeconds": 1000000,
"fps": 25
},
"apiKeyId": "b0416794-1524-45b5-88c4-6f5dd9e19485",
"organizationId": "c2d0a5f9-0d47-4c67-a37b-e17861244e40",
"createdAt": "2026-04-20T09:00:00.000Z",
"updatedAt": "2026-04-20T09:12:34.000Z",
"recording": {
"status": "available",
"expiresAt": "2026-05-20T09:12:34.000Z"
},
"transcript": {
"status": "available"
},
"toolCalls": []
}get session
Returns a session by ID, including the tool calls made during the session once it has ended and the engine has delivered its session report (toolCalls is empty until then, and always empty for LiveKit and audio-passthrough sessions, which never produce a report). Tool call names, timing and status are always included, and error messages are too unless transcripts were disabled for the session. Call arguments, results and accessed-document names are only included when transcripts were enabled for the session and the session is not zero-data-retention, since they embed conversation content. HTTP headers and credential-like keys are never returned. Anam-internal admin API keys may fetch sessions of any organization.
curl --request GET \
--url https://api.anam.ai/v1/sessions/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.anam.ai/v1/sessions/{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.anam.ai/v1/sessions/{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.anam.ai/v1/sessions/{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.anam.ai/v1/sessions/{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.anam.ai/v1/sessions/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anam.ai/v1/sessions/{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{
"id": "75e63782-f47a-4d2c-a0ff-8875ed6706ba",
"personaId": null,
"clientLabel": "anam-lab-chat",
"startTime": "2026-04-20T09:00:00.000Z",
"endTime": "2026-04-20T09:12:34.000Z",
"sessionLengthMs": 754000,
"exitStatus": "CLOSED_BY_ENGINE",
"engineHost": "connect-eu.anam.ai/v1/webrtc/engines/<engine-id>",
"engineProtocol": "https",
"engineVersion": "v5.1.0",
"region": "eu",
"clientMetadata": {
"userAgent": "Mozilla/5.0"
},
"personaConfig": {
"type": "ephemeral",
"name": "Cara",
"metadata": {
"client": "js-sdk"
},
"llmConfig": {
"id": "a7cf662c-2ace-4de1-a21e-ef0fbf144bb7",
"modelName": "gpt-4o",
"format": "openai",
"urls": [
{
"url": "https://api.openai.com/v1",
"region": "default"
}
],
"maxTokens": 4096,
"temperature": 0.7,
"metadata": {},
"secret_iv": "[REDACTED]",
"encrypted_secret": "[REDACTED]",
"createdByOrganizationId": null
},
"systemPrompt": "You are a helpful assistant.",
"personality": "",
"languageCode": "en",
"skipGreeting": false,
"zeroDataRetention": false,
"ttsProvider": "ELEVENLABS",
"ttsProviderVoiceId": "lcMyyd2HUfFzxdCaC4Ta",
"ttsProviderModelId": "eleven_flash_v2_5",
"ttsProviderOptions": {},
"avatarId": "071b0286-4cce-4808-bee2-e642f1062de3",
"avatarEngineKey": "cara_home",
"avatarVersion": "cara-3",
"disableBrains": false,
"fillerPhrases": [],
"useFillerPhrases": false,
"enableAudioPassthrough": false,
"voiceDetectionOptions": {},
"voiceGenerationOptions": {},
"maxSessionLengthSeconds": 1000000,
"fps": 25
},
"apiKeyId": "b0416794-1524-45b5-88c4-6f5dd9e19485",
"organizationId": "c2d0a5f9-0d47-4c67-a37b-e17861244e40",
"createdAt": "2026-04-20T09:00:00.000Z",
"updatedAt": "2026-04-20T09:12:34.000Z",
"recording": {
"status": "available",
"expiresAt": "2026-05-20T09:12:34.000Z"
},
"transcript": {
"status": "available"
},
"toolCalls": []
}Authorizations
Response
Successfully retrieved session
A single connection between a client and a persona. Contains metadata but not the transcript or recording — those are fetched separately.
How the session ended, or null if still active. Treat this as an open string set — new values may be added over time, so clients should handle unrecognised values gracefully rather than exhaustively matching. Known values: CLOSED_BY_ENGINE, CLOSED_DANGLING_SESSION, HOST_FAILED_HEALTH_CHECK, HOST_UNREGISTERED, FAILED_TO_START, FAILED_PENDING_TIMEOUT, ORPHANED_NO_END_SIGNAL, CLOSED_CLIENT_CONFIG_ERROR, CLOSED_MAX_DURATION, CLOSED_IDLE_TIMEOUT, CLOSED_NEVER_JOINED, CLOSED_NO_INPUT_AUDIO, CLOSED_PROVIDER_ERROR.
Snapshot of the persona configuration taken at the moment the session started. It never includes an LLM key, encrypted or not, or the value of a webhook tool header (each value reads [REDACTED]), and llmConfig has the LLM's endpoint urls, deploymentName, apiVersion and OpenRouter providerRouting only for an LLM the session's organization created. For a Zero Data Retention session it keeps only structural fields (ids, flags, numbers and enum values such as zeroDataRetention, avatarId and the voice IDs, llmConfig.id and llmConfig.format, and an SDK-style metadata.client), so it has no name, prompts, greeting, filler phrases, style prompts, tools, TTS provider options, avatarEngineKey or other llmConfig fields. An older Zero Data Retention session can still return its full snapshot or avatarEngineKey, because stored rows were not rewritten.

