curl --request GET \
--url https://api.orbit.devotel.io/api/v1/insights/agent-roi \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.orbit.devotel.io/api/v1/insights/agent-roi"
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-roi', 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-roi",
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-roi"
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-roi")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/insights/agent-roi")
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",
"config": {
"default_outcome_value_cents": 5000,
"per_rubric_value_cents": {
"rub_01J8Z9K3P4Q5R6S7T8U9V0W1X2": 10000
}
},
"totals": {
"cost_cents": 184300,
"attributed_revenue_cents": 620000,
"margin_cents": 435700,
"margin_percent": 70.3,
"outcomes_count": 62,
"conversation_count": 842,
"agent_count": 6,
"shown_count": 6,
"truncated": false
},
"agents": [
{
"agent_id": "agt_01J8Z9K3P4Q5R6S7T8U9V0W1X2",
"agent_name": "Billing Bot",
"model": "gpt-4o",
"cost_cents": 41200,
"attributed_revenue_cents": 180000,
"margin_cents": 138800,
"margin_percent": 77.1,
"outcomes_count": 18,
"conversation_count": 210,
"outcomes": [
{
"rubric_id": "rub_01J8Z9K3P4Q5R6S7T8U9V0W1X2",
"rubric_name": "Payment resolved",
"passed_count": 18,
"value_cents": 10000,
"subtotal_cents": 180000
}
]
}
]
},
"meta": {
"request_id": "req_01J8Z9K3P4Q5R6S7T8U9V0W1X2",
"timestamp": "2026-08-07T12:00:00.000Z"
}
}Get per-agent ROI summary
Joins each AI agent’s LLM/telco cost with the outcome-revenue attributed to its resolved rubric outcomes (priced via the agent-roi config) into cost, attributed revenue, margin, and margin percent per agent, plus org-wide totals. Use it to see which agents are profitable and by how much. All money is integer cents. Read-only, tenant-scoped, defaults to a trailing 30-day window.
curl --request GET \
--url https://api.orbit.devotel.io/api/v1/insights/agent-roi \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.orbit.devotel.io/api/v1/insights/agent-roi"
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-roi', 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-roi",
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-roi"
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-roi")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.orbit.devotel.io/api/v1/insights/agent-roi")
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",
"config": {
"default_outcome_value_cents": 5000,
"per_rubric_value_cents": {
"rub_01J8Z9K3P4Q5R6S7T8U9V0W1X2": 10000
}
},
"totals": {
"cost_cents": 184300,
"attributed_revenue_cents": 620000,
"margin_cents": 435700,
"margin_percent": 70.3,
"outcomes_count": 62,
"conversation_count": 842,
"agent_count": 6,
"shown_count": 6,
"truncated": false
},
"agents": [
{
"agent_id": "agt_01J8Z9K3P4Q5R6S7T8U9V0W1X2",
"agent_name": "Billing Bot",
"model": "gpt-4o",
"cost_cents": 41200,
"attributed_revenue_cents": 180000,
"margin_cents": 138800,
"margin_percent": 77.1,
"outcomes_count": 18,
"conversation_count": 210,
"outcomes": [
{
"rubric_id": "rub_01J8Z9K3P4Q5R6S7T8U9V0W1X2",
"rubric_name": "Payment resolved",
"passed_count": 18,
"value_cents": 10000,
"subtotal_cents": 180000
}
]
}
]
},
"meta": {
"request_id": "req_01J8Z9K3P4Q5R6S7T8U9V0W1X2",
"timestamp": "2026-08-07T12:00:00.000Z"
}
}Authorizations
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.
Max agent rows returned in agents (1-200, default 50). Totals always cover every agent in the window, not just the returned page.
Response
Per-agent cost/attributed-revenue/margin rows plus org-wide totals for the window, all money in integer cents.
The response is of type object.