Get an experiment report
curl --request GET \
--url https://api.totebot.ai/v1/agents/{agentId}/experiments/{experimentId}/report \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.totebot.ai/v1/agents/{agentId}/experiments/{experimentId}/report"
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}/experiments/{experimentId}/report', 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}/experiments/{experimentId}/report",
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}/experiments/{experimentId}/report"
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}/experiments/{experimentId}/report")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.totebot.ai/v1/agents/{agentId}/experiments/{experimentId}/report")
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{
"experiment": {
"id": "<string>",
"agentId": "<string>",
"name": "<string>",
"status": "RUNNING",
"candidatePercent": 50,
"candidateModelId": "<string>",
"candidateSystemPrompt": "<string>",
"controlModelId": "<string>",
"controlSystemPrompt": "<string>",
"startedAt": "2023-11-07T05:31:56Z",
"stoppedAt": "2023-11-07T05:31:56Z"
},
"variants": [
{
"variant": "CONTROL",
"conversations": 123,
"userTurns": 123,
"thumbsUp": 123,
"thumbsDown": 123,
"thumbsDownRate": 0.5,
"handoverRate": 0.5,
"noRetrievalRate": 0.5,
"emptyRetrievalRate": 0.5,
"credits": 123,
"creditsPerConversation": 123,
"costUsd": 123,
"costPerConversationUsd": 123
}
]
}{
"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"
}Experiments
Get an experiment report
Per variant: conversations, thumbs up/down, handover rate, no-search and empty-search rate, and credits. Provider cost in USD only with the billing:read scope. Live experiments must be turned on for the team (feature flag live_experiments); otherwise 403.
GET
/
v1
/
agents
/
{agentId}
/
experiments
/
{experimentId}
/
report
Get an experiment report
curl --request GET \
--url https://api.totebot.ai/v1/agents/{agentId}/experiments/{experimentId}/report \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.totebot.ai/v1/agents/{agentId}/experiments/{experimentId}/report"
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}/experiments/{experimentId}/report', 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}/experiments/{experimentId}/report",
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}/experiments/{experimentId}/report"
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}/experiments/{experimentId}/report")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.totebot.ai/v1/agents/{agentId}/experiments/{experimentId}/report")
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{
"experiment": {
"id": "<string>",
"agentId": "<string>",
"name": "<string>",
"status": "RUNNING",
"candidatePercent": 50,
"candidateModelId": "<string>",
"candidateSystemPrompt": "<string>",
"controlModelId": "<string>",
"controlSystemPrompt": "<string>",
"startedAt": "2023-11-07T05:31:56Z",
"stoppedAt": "2023-11-07T05:31:56Z"
},
"variants": [
{
"variant": "CONTROL",
"conversations": 123,
"userTurns": 123,
"thumbsUp": 123,
"thumbsDown": 123,
"thumbsDownRate": 0.5,
"handoverRate": 0.5,
"noRetrievalRate": 0.5,
"emptyRetrievalRate": 0.5,
"credits": 123,
"creditsPerConversation": 123,
"costUsd": 123,
"costPerConversationUsd": 123
}
]
}{
"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"
}