List Conversation Sessions
curl --request GET \
--url https://api.in.talqing.com/v1/conversations/{conversation_id}/sessions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.in.talqing.com/v1/conversations/{conversation_id}/sessions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.in.talqing.com/v1/conversations/{conversation_id}/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.in.talqing.com/v1/conversations/{conversation_id}/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 => [
"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.in.talqing.com/v1/conversations/{conversation_id}/sessions"
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.in.talqing.com/v1/conversations/{conversation_id}/sessions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.in.talqing.com/v1/conversations/{conversation_id}/sessions")
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{
"has_more": true,
"items": [
{
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channel": "<string>",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"conversation_ref_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cost": {
"platform_fee": 123,
"provider_cost": 123,
"total_charge": 123,
"duration_s": 123
},
"created_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"error": {
"message": "<string>",
"type": "<string>"
},
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"integration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metrics": {
"e2e_latency": 123,
"end_of_turn_delay": 123,
"llm_node_ttft": 123,
"transcription_delay": 123,
"tts_node_ttfb": 123,
"turns": 0,
"usage_reported": false
},
"output_item_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"started_at": "2023-11-07T05:31:56Z",
"status": "<string>",
"trigger_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"trigger_item_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"type": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"usage": {
"avatar": [
{
"avatar_id": "<string>",
"avatar_session_id": "<string>",
"model": "<string>",
"provider": "<string>",
"seconds": 0
}
],
"llm": [
{
"input_cached_tokens": 0,
"input_tokens": 0,
"model": "<string>",
"output_tokens": 0,
"priority": false,
"provider": "<string>",
"purpose": "conversation"
}
],
"realtime": [
{
"input_audio_tokens": 0,
"input_cached_audio_tokens": 0,
"input_cached_text_tokens": 0,
"input_text_tokens": 0,
"model": "<string>",
"output_audio_tokens": 0,
"output_text_tokens": 0,
"provider": "<string>",
"session_seconds": 0
}
],
"stt": [
{
"audio_duration": 0,
"input_tokens": 0,
"model": "<string>",
"output_tokens": 0,
"provider": "<string>"
}
],
"tts": [
{
"audio_duration": 0,
"characters_count": 0,
"input_tokens": 0,
"model": "<string>",
"output_tokens": 0,
"provider": "<string>"
}
]
}
}
],
"limit": 123,
"offset": 123
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>"
}
}conversations
List Conversation Sessions
The agent sessions behind a conversation, newest first.
A thread can be handled many times — each phone call, each text window,
each trigger firing is one session, recording which agent version ran and
how it finished. Use it to find out which version answered, and to reach
the matching session_id for get_call.
GET
/
v1
/
conversations
/
{conversation_id}
/
sessions
List Conversation Sessions
curl --request GET \
--url https://api.in.talqing.com/v1/conversations/{conversation_id}/sessions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.in.talqing.com/v1/conversations/{conversation_id}/sessions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.in.talqing.com/v1/conversations/{conversation_id}/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.in.talqing.com/v1/conversations/{conversation_id}/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 => [
"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.in.talqing.com/v1/conversations/{conversation_id}/sessions"
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.in.talqing.com/v1/conversations/{conversation_id}/sessions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.in.talqing.com/v1/conversations/{conversation_id}/sessions")
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{
"has_more": true,
"items": [
{
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_version_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"channel": "<string>",
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"conversation_ref_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"cost": {
"platform_fee": 123,
"provider_cost": 123,
"total_charge": 123,
"duration_s": 123
},
"created_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"error": {
"message": "<string>",
"type": "<string>"
},
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"integration_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metrics": {
"e2e_latency": 123,
"end_of_turn_delay": 123,
"llm_node_ttft": 123,
"transcription_delay": 123,
"tts_node_ttfb": 123,
"turns": 0,
"usage_reported": false
},
"output_item_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"session_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"started_at": "2023-11-07T05:31:56Z",
"status": "<string>",
"trigger_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"trigger_item_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
],
"type": "<string>",
"updated_at": "2023-11-07T05:31:56Z",
"usage": {
"avatar": [
{
"avatar_id": "<string>",
"avatar_session_id": "<string>",
"model": "<string>",
"provider": "<string>",
"seconds": 0
}
],
"llm": [
{
"input_cached_tokens": 0,
"input_tokens": 0,
"model": "<string>",
"output_tokens": 0,
"priority": false,
"provider": "<string>",
"purpose": "conversation"
}
],
"realtime": [
{
"input_audio_tokens": 0,
"input_cached_audio_tokens": 0,
"input_cached_text_tokens": 0,
"input_text_tokens": 0,
"model": "<string>",
"output_audio_tokens": 0,
"output_text_tokens": 0,
"provider": "<string>",
"session_seconds": 0
}
],
"stt": [
{
"audio_duration": 0,
"input_tokens": 0,
"model": "<string>",
"output_tokens": 0,
"provider": "<string>"
}
],
"tts": [
{
"audio_duration": 0,
"characters_count": 0,
"input_tokens": 0,
"model": "<string>",
"output_tokens": 0,
"provider": "<string>"
}
]
}
}
],
"limit": 123,
"offset": 123
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>"
}
}{
"detail": {
"errors": [
"<string>"
],
"message": "<string>"
}
}Authorizations
BearerAuthSessionCookie
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Query Parameters
Required range:
1 <= x <= 200Required range:
x >= 0