Retrieve session history
curl --request GET \
--url https://api.simli.ai/history/sessions \
--header 'x-simli-api-key: <api-key>'import requests
url = "https://api.simli.ai/history/sessions"
headers = {"x-simli-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-simli-api-key': '<api-key>'}};
fetch('https://api.simli.ai/history/sessions', 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.simli.ai/history/sessions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-simli-api-key: <api-key>"
],
]);
$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.simli.ai/history/sessions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-simli-api-key", "<api-key>")
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.simli.ai/history/sessions")
.header("x-simli-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.simli.ai/history/sessions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-simli-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"sessions": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sessionTotalTime": 123,
"startTime": 123,
"endTime": 123,
"face_id": "<string>",
"kind": "<string>",
"simliModel": "Trinity 2",
"sessionAggregator": "<string>",
"apiKeyName": "<string>",
"endReason": "<string>",
"models": [
{
"role": "llm",
"provider": "Azure OpenAI",
"model": "gpt-realtime-2.1-mini",
"simliKey": true
}
],
"metrics": {
"startup": {
"firstFrameMs": 123,
"userJoinedMs": 123,
"firstWordsMs": 123
},
"speech": {
"userSeconds": 123,
"avatarSeconds": 123
},
"turns": {
"user": 123,
"typed": 123,
"avatar": 123,
"interruptions": 123,
"backchannels": 123
},
"replies": {
"count": 123,
"meanMs": 123,
"p50Ms": 123,
"p90Ms": 123,
"maxMs": 123
},
"ttfbMs": {},
"usage": {
"llm": {
"inputTokens": 123,
"outputTokens": 123,
"totalTokens": 123,
"cachedInputTokens": 123,
"cacheWriteInputTokens": 123,
"reasoningTokens": 123,
"inputAudioTokens": 123,
"outputAudioTokens": 123,
"cachedInputAudioTokens": 123
},
"tts": {
"characters": 123
},
"stt": {
"audioSeconds": 123
}
},
"toolCalls": 123,
"errors": 123
},
"meteredUsage": {
"llm": {
"meter": "gpt_6_luna_tokens",
"value": 123,
"connectedSeconds": 123,
"speakingSeconds": 123,
"uncachedInputTokens": 123,
"cachedInputTokens": 123,
"cacheWriteInputTokens": 123,
"outputTokens": 123,
"uncachedInputAudioTokens": 123,
"cachedInputAudioTokens": 123,
"outputAudioTokens": 123,
"transcribedSeconds": 123,
"transcriptionPricePerMinute": 123,
"listPricesPerMillion": {
"input": 123,
"cachedInput": 123,
"cacheWrite": 123,
"output": 123,
"audioInput": 123,
"cachedAudioInput": 123,
"audioOutput": 123
},
"meterPricePerMillion": 123,
"costUSD": 123
},
"llmDelegate": {
"meter": "gpt_6_luna_tokens",
"value": 123,
"connectedSeconds": 123,
"speakingSeconds": 123,
"uncachedInputTokens": 123,
"cachedInputTokens": 123,
"cacheWriteInputTokens": 123,
"outputTokens": 123,
"uncachedInputAudioTokens": 123,
"cachedInputAudioTokens": 123,
"outputAudioTokens": 123,
"transcribedSeconds": 123,
"transcriptionPricePerMinute": 123,
"listPricesPerMillion": {
"input": 123,
"cachedInput": 123,
"cacheWrite": 123,
"output": 123,
"audioInput": 123,
"cachedAudioInput": 123,
"audioOutput": 123
},
"meterPricePerMillion": 123,
"costUSD": 123
},
"tts": {
"meter": "gpt_6_luna_tokens",
"value": 123,
"connectedSeconds": 123,
"speakingSeconds": 123,
"uncachedInputTokens": 123,
"cachedInputTokens": 123,
"cacheWriteInputTokens": 123,
"outputTokens": 123,
"uncachedInputAudioTokens": 123,
"cachedInputAudioTokens": 123,
"outputAudioTokens": 123,
"transcribedSeconds": 123,
"transcriptionPricePerMinute": 123,
"listPricesPerMillion": {
"input": 123,
"cachedInput": 123,
"cacheWrite": 123,
"output": 123,
"audioInput": 123,
"cachedAudioInput": 123,
"audioOutput": 123
},
"meterPricePerMillion": 123,
"costUSD": 123
},
"agent": {
"meter": "gpt_6_luna_tokens",
"value": 123,
"connectedSeconds": 123,
"speakingSeconds": 123,
"uncachedInputTokens": 123,
"cachedInputTokens": 123,
"cacheWriteInputTokens": 123,
"outputTokens": 123,
"uncachedInputAudioTokens": 123,
"cachedInputAudioTokens": 123,
"outputAudioTokens": 123,
"transcribedSeconds": 123,
"transcriptionPricePerMinute": 123,
"listPricesPerMillion": {
"input": 123,
"cachedInput": 123,
"cacheWrite": 123,
"output": 123,
"audioInput": 123,
"cachedAudioInput": 123,
"audioOutput": 123
},
"meterPricePerMillion": 123,
"costUSD": 123
}
},
"estimatedCost": {
"totalUSD": 0.0453,
"byServiceUSD": {
"simli": 123,
"llm": 123,
"llmDelegate": 123,
"tts": 123,
"agent": 123
},
"simliBilledSeconds": 123,
"simliPricePerMinute": 123
}
}
]
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}API Reference
Retrieve session history
Returns a list of session history records for the authenticated user
GET
/
history
/
sessions
Retrieve session history
curl --request GET \
--url https://api.simli.ai/history/sessions \
--header 'x-simli-api-key: <api-key>'import requests
url = "https://api.simli.ai/history/sessions"
headers = {"x-simli-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-simli-api-key': '<api-key>'}};
fetch('https://api.simli.ai/history/sessions', 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.simli.ai/history/sessions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-simli-api-key: <api-key>"
],
]);
$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.simli.ai/history/sessions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-simli-api-key", "<api-key>")
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.simli.ai/history/sessions")
.header("x-simli-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.simli.ai/history/sessions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-simli-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"sessions": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"sessionTotalTime": 123,
"startTime": 123,
"endTime": 123,
"face_id": "<string>",
"kind": "<string>",
"simliModel": "Trinity 2",
"sessionAggregator": "<string>",
"apiKeyName": "<string>",
"endReason": "<string>",
"models": [
{
"role": "llm",
"provider": "Azure OpenAI",
"model": "gpt-realtime-2.1-mini",
"simliKey": true
}
],
"metrics": {
"startup": {
"firstFrameMs": 123,
"userJoinedMs": 123,
"firstWordsMs": 123
},
"speech": {
"userSeconds": 123,
"avatarSeconds": 123
},
"turns": {
"user": 123,
"typed": 123,
"avatar": 123,
"interruptions": 123,
"backchannels": 123
},
"replies": {
"count": 123,
"meanMs": 123,
"p50Ms": 123,
"p90Ms": 123,
"maxMs": 123
},
"ttfbMs": {},
"usage": {
"llm": {
"inputTokens": 123,
"outputTokens": 123,
"totalTokens": 123,
"cachedInputTokens": 123,
"cacheWriteInputTokens": 123,
"reasoningTokens": 123,
"inputAudioTokens": 123,
"outputAudioTokens": 123,
"cachedInputAudioTokens": 123
},
"tts": {
"characters": 123
},
"stt": {
"audioSeconds": 123
}
},
"toolCalls": 123,
"errors": 123
},
"meteredUsage": {
"llm": {
"meter": "gpt_6_luna_tokens",
"value": 123,
"connectedSeconds": 123,
"speakingSeconds": 123,
"uncachedInputTokens": 123,
"cachedInputTokens": 123,
"cacheWriteInputTokens": 123,
"outputTokens": 123,
"uncachedInputAudioTokens": 123,
"cachedInputAudioTokens": 123,
"outputAudioTokens": 123,
"transcribedSeconds": 123,
"transcriptionPricePerMinute": 123,
"listPricesPerMillion": {
"input": 123,
"cachedInput": 123,
"cacheWrite": 123,
"output": 123,
"audioInput": 123,
"cachedAudioInput": 123,
"audioOutput": 123
},
"meterPricePerMillion": 123,
"costUSD": 123
},
"llmDelegate": {
"meter": "gpt_6_luna_tokens",
"value": 123,
"connectedSeconds": 123,
"speakingSeconds": 123,
"uncachedInputTokens": 123,
"cachedInputTokens": 123,
"cacheWriteInputTokens": 123,
"outputTokens": 123,
"uncachedInputAudioTokens": 123,
"cachedInputAudioTokens": 123,
"outputAudioTokens": 123,
"transcribedSeconds": 123,
"transcriptionPricePerMinute": 123,
"listPricesPerMillion": {
"input": 123,
"cachedInput": 123,
"cacheWrite": 123,
"output": 123,
"audioInput": 123,
"cachedAudioInput": 123,
"audioOutput": 123
},
"meterPricePerMillion": 123,
"costUSD": 123
},
"tts": {
"meter": "gpt_6_luna_tokens",
"value": 123,
"connectedSeconds": 123,
"speakingSeconds": 123,
"uncachedInputTokens": 123,
"cachedInputTokens": 123,
"cacheWriteInputTokens": 123,
"outputTokens": 123,
"uncachedInputAudioTokens": 123,
"cachedInputAudioTokens": 123,
"outputAudioTokens": 123,
"transcribedSeconds": 123,
"transcriptionPricePerMinute": 123,
"listPricesPerMillion": {
"input": 123,
"cachedInput": 123,
"cacheWrite": 123,
"output": 123,
"audioInput": 123,
"cachedAudioInput": 123,
"audioOutput": 123
},
"meterPricePerMillion": 123,
"costUSD": 123
},
"agent": {
"meter": "gpt_6_luna_tokens",
"value": 123,
"connectedSeconds": 123,
"speakingSeconds": 123,
"uncachedInputTokens": 123,
"cachedInputTokens": 123,
"cacheWriteInputTokens": 123,
"outputTokens": 123,
"uncachedInputAudioTokens": 123,
"cachedInputAudioTokens": 123,
"outputAudioTokens": 123,
"transcribedSeconds": 123,
"transcriptionPricePerMinute": 123,
"listPricesPerMillion": {
"input": 123,
"cachedInput": 123,
"cacheWrite": 123,
"output": 123,
"audioInput": 123,
"cachedAudioInput": 123,
"audioOutput": 123
},
"meterPricePerMillion": 123,
"costUSD": 123
}
},
"estimatedCost": {
"totalUSD": 0.0453,
"byServiceUSD": {
"simli": 123,
"llm": 123,
"llmDelegate": 123,
"tts": 123,
"agent": 123
},
"simliBilledSeconds": 123,
"simliPricePerMinute": 123
}
}
]
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "<string>",
"code": "<string>"
}