Compare AI agents on cost, revenue, and quality KPIs
curl --request GET \
--url https://api.orbit.devotel.io/api/v1/insights/agent-comparison \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.orbit.devotel.io/api/v1/insights/agent-comparison"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.orbit.devotel.io/api/v1/insights/agent-comparison', 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.orbit.devotel.io/api/v1/insights/agent-comparison",
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.orbit.devotel.io/api/v1/insights/agent-comparison"
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.orbit.devotel.io/api/v1/insights/agent-comparison")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/insights/agent-comparison")
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{
"data": {
"from": "2026-07-08T00:00:00.000Z",
"to": "2026-08-07T00:00:00.000Z",
"currency": "USD",
"timezone": "America/New_York",
"metrics": [
{
"key": "containment_rate",
"label": "Containment %",
"unit": "percent",
"higherIsBetter": true
}
],
"population_size": 6,
"ranked_population_size": 6,
"population_truncated": false,
"org_average": {
"containment_rate": 75.1,
"resolution_rate": 71,
"escalation_rate": 24.9,
"cost_cents": 30716,
"attributed_revenue_cents": 103333,
"margin_cents": 72617,
"margin_percent": 70.3
},
"agents": [
{
"agent_id": "agt_01J8Z9K3P4Q5R6S7T8U9V0W1X2",
"agent_name": "Billing Bot",
"model": "gpt-4o",
"conversation_count": 210,
"cost_cents": 41200,
"attributed_revenue_cents": 180000,
"margin_cents": 138800,
"margin_percent": 77.1,
"containment_rate": 81.9,
"resolution_rate": 76.2,
"escalation_rate": 18.1
}
]
},
"meta": {
"request_id": "req_01J8Z9K3P4Q5R6S7T8U9V0W1X2",
"timestamp": "2026-08-07T12:00:00.000Z"
}
}API Reference
Compare AI agents on cost, revenue, and quality KPIs
Ranks the named agents (2 or more, via agentIds) against each other and the org-wide average on containment, resolution, escalation, cost, attributed revenue, and margin, reusing the agent-roi and containment aggregates. Use it to build a side-by-side agent comparison table. Read-only, tenant-scoped, defaults to a trailing 30-day window.
GET
/
api
/
v1
/
insights
/
agent-comparison
Compare AI agents on cost, revenue, and quality KPIs
curl --request GET \
--url https://api.orbit.devotel.io/api/v1/insights/agent-comparison \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.orbit.devotel.io/api/v1/insights/agent-comparison"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.orbit.devotel.io/api/v1/insights/agent-comparison', 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.orbit.devotel.io/api/v1/insights/agent-comparison",
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.orbit.devotel.io/api/v1/insights/agent-comparison"
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.orbit.devotel.io/api/v1/insights/agent-comparison")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/insights/agent-comparison")
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{
"data": {
"from": "2026-07-08T00:00:00.000Z",
"to": "2026-08-07T00:00:00.000Z",
"currency": "USD",
"timezone": "America/New_York",
"metrics": [
{
"key": "containment_rate",
"label": "Containment %",
"unit": "percent",
"higherIsBetter": true
}
],
"population_size": 6,
"ranked_population_size": 6,
"population_truncated": false,
"org_average": {
"containment_rate": 75.1,
"resolution_rate": 71,
"escalation_rate": 24.9,
"cost_cents": 30716,
"attributed_revenue_cents": 103333,
"margin_cents": 72617,
"margin_percent": 70.3
},
"agents": [
{
"agent_id": "agt_01J8Z9K3P4Q5R6S7T8U9V0W1X2",
"agent_name": "Billing Bot",
"model": "gpt-4o",
"conversation_count": 210,
"cost_cents": 41200,
"attributed_revenue_cents": 180000,
"margin_cents": 138800,
"margin_percent": 77.1,
"containment_rate": 81.9,
"resolution_rate": 76.2,
"escalation_rate": 18.1
}
]
},
"meta": {
"request_id": "req_01J8Z9K3P4Q5R6S7T8U9V0W1X2",
"timestamp": "2026-08-07T12:00:00.000Z"
}
}Authorizations
BearerApiKey
Dashboard JWT token from Clerk
Query Parameters
Window start, ISO-8601 with offset. Defaults to 30 days before to. Range is capped at 365 days.
Window end, ISO-8601 with offset. Defaults to now.
Required. Comma-separated agent ids to compare (at least 2, at most 200).
Response
200 - application/json
The requested agents' flat KPI rows plus the metric catalogue and the org-wide average baseline.
The response is of type object.
⌘I