Explain the answers in a conversation
curl --request GET \
--url https://api.totebot.ai/v1/agents/{agentId}/conversations/{conversationId}/answers \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.totebot.ai/v1/agents/{agentId}/conversations/{conversationId}/answers"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.totebot.ai/v1/agents/{agentId}/conversations/{conversationId}/answers', 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.totebot.ai/v1/agents/{agentId}/conversations/{conversationId}/answers",
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.totebot.ai/v1/agents/{agentId}/conversations/{conversationId}/answers"
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.totebot.ai/v1/agents/{agentId}/conversations/{conversationId}/answers")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.totebot.ai/v1/agents/{agentId}/conversations/{conversationId}/answers")
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{
"conversationId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"source": "EMBED",
"truncated": true,
"piiMasked": true,
"turns": [
{
"questionMessageId": "<string>",
"question": "<string>",
"replies": [
{
"messageId": "<string>",
"role": "ASSISTANT",
"content": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"feedback": "POSITIVE"
}
],
"retrievals": [
{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"conversationId": "<string>",
"messageId": "<string>",
"origin": "TOOL",
"query": "<string>",
"language": "en",
"resultCount": 123,
"topScore": 123,
"empty": true,
"failed": true,
"latencyMs": 123,
"sources": [
{
"sourceId": "clx1source",
"productId": "<string>",
"title": "<string>",
"type": "DOC",
"score": 123
}
]
}
],
"toolCalls": [
{
"name": "knowledge_retriever",
"kind": "knowledge_search",
"category": "products",
"status": "<string>"
}
],
"toolCallsSource": "trace",
"usedNoTool": true
}
]
}{
"status": "error",
"error": {
"code": "NotFoundException",
"message": "Agent not found",
"details": {}
},
"path": "/v1/agents/clx123",
"timestamp": "2026-11-24T10:00:00.000Z"
}{
"status": "error",
"error": {
"code": "NotFoundException",
"message": "Agent not found",
"details": {}
},
"path": "/v1/agents/clx123",
"timestamp": "2026-11-24T10:00:00.000Z"
}{
"status": "error",
"error": {
"code": "NotFoundException",
"message": "Agent not found",
"details": {}
},
"path": "/v1/agents/clx123",
"timestamp": "2026-11-24T10:00:00.000Z"
}{
"status": "error",
"error": {
"code": "NotFoundException",
"message": "Agent not found",
"details": {}
},
"path": "/v1/agents/clx123",
"timestamp": "2026-11-24T10:00:00.000Z"
}Analysis
Explain the answers in a conversation
Per customer message: the replies, the knowledge searches with the sources they returned, the tools the bot called, and whether it answered without any tool or search. Only customer, bot and team member messages are returned. Emails and phone numbers in customer text are masked unless the key has customers:read.
GET
/
v1
/
agents
/
{agentId}
/
conversations
/
{conversationId}
/
answers
Explain the answers in a conversation
curl --request GET \
--url https://api.totebot.ai/v1/agents/{agentId}/conversations/{conversationId}/answers \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.totebot.ai/v1/agents/{agentId}/conversations/{conversationId}/answers"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.totebot.ai/v1/agents/{agentId}/conversations/{conversationId}/answers', 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.totebot.ai/v1/agents/{agentId}/conversations/{conversationId}/answers",
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.totebot.ai/v1/agents/{agentId}/conversations/{conversationId}/answers"
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.totebot.ai/v1/agents/{agentId}/conversations/{conversationId}/answers")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.totebot.ai/v1/agents/{agentId}/conversations/{conversationId}/answers")
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{
"conversationId": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"source": "EMBED",
"truncated": true,
"piiMasked": true,
"turns": [
{
"questionMessageId": "<string>",
"question": "<string>",
"replies": [
{
"messageId": "<string>",
"role": "ASSISTANT",
"content": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"feedback": "POSITIVE"
}
],
"retrievals": [
{
"id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"conversationId": "<string>",
"messageId": "<string>",
"origin": "TOOL",
"query": "<string>",
"language": "en",
"resultCount": 123,
"topScore": 123,
"empty": true,
"failed": true,
"latencyMs": 123,
"sources": [
{
"sourceId": "clx1source",
"productId": "<string>",
"title": "<string>",
"type": "DOC",
"score": 123
}
]
}
],
"toolCalls": [
{
"name": "knowledge_retriever",
"kind": "knowledge_search",
"category": "products",
"status": "<string>"
}
],
"toolCallsSource": "trace",
"usedNoTool": true
}
]
}{
"status": "error",
"error": {
"code": "NotFoundException",
"message": "Agent not found",
"details": {}
},
"path": "/v1/agents/clx123",
"timestamp": "2026-11-24T10:00:00.000Z"
}{
"status": "error",
"error": {
"code": "NotFoundException",
"message": "Agent not found",
"details": {}
},
"path": "/v1/agents/clx123",
"timestamp": "2026-11-24T10:00:00.000Z"
}{
"status": "error",
"error": {
"code": "NotFoundException",
"message": "Agent not found",
"details": {}
},
"path": "/v1/agents/clx123",
"timestamp": "2026-11-24T10:00:00.000Z"
}{
"status": "error",
"error": {
"code": "NotFoundException",
"message": "Agent not found",
"details": {}
},
"path": "/v1/agents/clx123",
"timestamp": "2026-11-24T10:00:00.000Z"
}