FinOps dashboard: per-agent cost/token rows plus fleet-wide summary.
curl --request GET \
--url https://api.example.com/api/observability/finops/dashboardimport requests
url = "https://api.example.com/api/observability/finops/dashboard"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/observability/finops/dashboard', 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.example.com/api/observability/finops/dashboard",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/api/observability/finops/dashboard"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/api/observability/finops/dashboard")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/observability/finops/dashboard")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"agents": [
{
"agent_id": "<string>",
"agent_name": "<string>",
"avg_cost_per_operation": 123,
"cache_creation_tokens": 1,
"cache_read_tokens": 1,
"completion_tokens": 1,
"container_hours": 123,
"is_capped": true,
"operations": 1,
"prompt_tokens": 1,
"tool_call_count": 1,
"total_cost": 123,
"total_tokens": 1,
"avg_latency_ms": 123,
"avg_latency_p95_ms": 123,
"avg_latency_p99_ms": 123,
"version": "<string>"
}
],
"attributions": {
"rows": [
{
"agent_id": "<string>",
"agent_name": "<string>",
"avg_cost_per_operation": 123,
"cache_creation_tokens": 1,
"cache_read_tokens": 1,
"completion_tokens": 1,
"container_hours": 123,
"is_capped": true,
"operations": 1,
"prompt_tokens": 1,
"tool_call_count": 1,
"total_cost": 123,
"total_tokens": 1,
"avg_latency_ms": 123,
"avg_latency_p95_ms": 123,
"avg_latency_p99_ms": 123,
"version": "<string>"
}
],
"view": "agent"
},
"kpis": {
"active_agents": {
"current": 123,
"previous": 123,
"change_pct": 123
},
"avg_latency_ms": {
"current": 123,
"previous": 123,
"change_pct": 123
},
"cost_per_operation": {
"current": 123,
"previous": 123,
"change_pct": 123
},
"latency_p95_ms": {
"current": 123,
"previous": 123,
"change_pct": 123
},
"latency_p99_ms": {
"current": 123,
"previous": 123,
"change_pct": 123
},
"total_agents": {
"current": 123,
"previous": 123,
"change_pct": 123
},
"total_operations": {
"current": 123,
"previous": 123,
"change_pct": 123
},
"total_spend": {
"current": 123,
"previous": 123,
"change_pct": 123
},
"total_tokens": {
"current": 123,
"previous": 123,
"change_pct": 123
},
"total_tool_calls": {
"current": 123,
"previous": 123,
"change_pct": 123
}
},
"spend_by_agent": {
"slices": [
{
"agent_name": "<string>",
"pct": 123,
"spend_usd": 123
}
],
"total_spend_usd": 123
},
"summary": {
"active_agents": 1,
"average_cost": 123,
"estimated_cost": 123,
"operations_last_24h": 1,
"total_agents": 1,
"total_container_hours": 123,
"total_cost": 123,
"total_operations": 1,
"unknown_confidence_calls": 1,
"unpriced_calls": 1
},
"token_usage": {
"avg_tokens_per_operation": 1,
"cache_creation_tokens": 1,
"cache_read_tokens": 1,
"completion_tokens": 1,
"prompt_tokens": 1,
"total_tokens": 1
}
},
"message": "<string>",
"status_code": 1
}Query Parameters
ISO-8601 window start (default: 30 days ago). Ignored when range is set.
ISO-8601 window end (default: now). Without it a past-month selection means "that month through today" rather than that month.
"24h" | "7d" | "30d" — quick-select range, overrides start_time.
Agent UUID or name — scopes the whole response to one agent.
Exact model id, matched against span model attributes.
Provider name filter (e.g. "openai", "anthropic"), matched against
the provider column in trace_usage (derived from model_pricing).
Org-unit filter — resolved to user_ids by the EE auth layer. OSS accepts the param but ignores it (no org hierarchy). EE reads it in the handler and passes user_ids to the service.
"agent" | "workflow" — which attribution source powers the response's
attributions field (default "agent").
When true, restricts results to agents owned by the caller.
Ignored when agent_id is also set (already scoped to one agent).
curl --request GET \
--url https://api.example.com/api/observability/finops/dashboardimport requests
url = "https://api.example.com/api/observability/finops/dashboard"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/observability/finops/dashboard', 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.example.com/api/observability/finops/dashboard",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/api/observability/finops/dashboard"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/api/observability/finops/dashboard")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/observability/finops/dashboard")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"agents": [
{
"agent_id": "<string>",
"agent_name": "<string>",
"avg_cost_per_operation": 123,
"cache_creation_tokens": 1,
"cache_read_tokens": 1,
"completion_tokens": 1,
"container_hours": 123,
"is_capped": true,
"operations": 1,
"prompt_tokens": 1,
"tool_call_count": 1,
"total_cost": 123,
"total_tokens": 1,
"avg_latency_ms": 123,
"avg_latency_p95_ms": 123,
"avg_latency_p99_ms": 123,
"version": "<string>"
}
],
"attributions": {
"rows": [
{
"agent_id": "<string>",
"agent_name": "<string>",
"avg_cost_per_operation": 123,
"cache_creation_tokens": 1,
"cache_read_tokens": 1,
"completion_tokens": 1,
"container_hours": 123,
"is_capped": true,
"operations": 1,
"prompt_tokens": 1,
"tool_call_count": 1,
"total_cost": 123,
"total_tokens": 1,
"avg_latency_ms": 123,
"avg_latency_p95_ms": 123,
"avg_latency_p99_ms": 123,
"version": "<string>"
}
],
"view": "agent"
},
"kpis": {
"active_agents": {
"current": 123,
"previous": 123,
"change_pct": 123
},
"avg_latency_ms": {
"current": 123,
"previous": 123,
"change_pct": 123
},
"cost_per_operation": {
"current": 123,
"previous": 123,
"change_pct": 123
},
"latency_p95_ms": {
"current": 123,
"previous": 123,
"change_pct": 123
},
"latency_p99_ms": {
"current": 123,
"previous": 123,
"change_pct": 123
},
"total_agents": {
"current": 123,
"previous": 123,
"change_pct": 123
},
"total_operations": {
"current": 123,
"previous": 123,
"change_pct": 123
},
"total_spend": {
"current": 123,
"previous": 123,
"change_pct": 123
},
"total_tokens": {
"current": 123,
"previous": 123,
"change_pct": 123
},
"total_tool_calls": {
"current": 123,
"previous": 123,
"change_pct": 123
}
},
"spend_by_agent": {
"slices": [
{
"agent_name": "<string>",
"pct": 123,
"spend_usd": 123
}
],
"total_spend_usd": 123
},
"summary": {
"active_agents": 1,
"average_cost": 123,
"estimated_cost": 123,
"operations_last_24h": 1,
"total_agents": 1,
"total_container_hours": 123,
"total_cost": 123,
"total_operations": 1,
"unknown_confidence_calls": 1,
"unpriced_calls": 1
},
"token_usage": {
"avg_tokens_per_operation": 1,
"cache_creation_tokens": 1,
"cache_read_tokens": 1,
"completion_tokens": 1,
"prompt_tokens": 1,
"total_tokens": 1
}
},
"message": "<string>",
"status_code": 1
}