The agent's runs, failures and eval results per day, and this week against last week
curl --request GET \
--url https://api.decimal.ai/api/v1/agents/{agent_name}/activity \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.decimal.ai/api/v1/agents/{agent_name}/activity"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.decimal.ai/api/v1/agents/{agent_name}/activity', 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.decimal.ai/api/v1/agents/{agent_name}/activity",
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.decimal.ai/api/v1/agents/{agent_name}/activity"
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.decimal.ai/api/v1/agents/{agent_name}/activity")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.decimal.ai/api/v1/agents/{agent_name}/activity")
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{
"agent_name": "support-agent",
"days": [
{
"date": "2026-11-19",
"runs": 52,
"failed": 1,
"evaluated": 18,
"passed": 16
},
{
"date": "2026-11-20",
"runs": 47,
"failed": 0,
"evaluated": 15,
"passed": 13
}
],
"this_week": {
"runs": 342,
"failed": 6,
"evaluated": 120,
"passed": 104
},
"last_week": {
"runs": 305,
"failed": 4,
"evaluated": 110,
"passed": 89
},
"top_failure": {
"message": "lookup_order timed out",
"count": 4
},
"last_run_at": "2026-11-20T09:41:02+00:00"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}agents
The agent's runs, failures and eval results per day, and this week against last week
How the agent has been doing, in counts that agree with each other.
days holds one entry per UTC day, oldest first, today included and zero-filled: runs, runs that
failed (status error), runs with an eval verdict (pass, fail or review), and runs that passed.
this_week and last_week are the same counts over the rolling last 7 days and the 7 before.
top_failure is the most common first line of an error message among this week’s failed runs.
Every count reads the agent’s traces by created_at inside the window, through the
(org, agent name, created_at) index, so the cost follows the window, not the agent’s history.
GET
/
api
/
v1
/
agents
/
{agent_name}
/
activity
The agent's runs, failures and eval results per day, and this week against last week
curl --request GET \
--url https://api.decimal.ai/api/v1/agents/{agent_name}/activity \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.decimal.ai/api/v1/agents/{agent_name}/activity"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.decimal.ai/api/v1/agents/{agent_name}/activity', 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.decimal.ai/api/v1/agents/{agent_name}/activity",
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.decimal.ai/api/v1/agents/{agent_name}/activity"
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.decimal.ai/api/v1/agents/{agent_name}/activity")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.decimal.ai/api/v1/agents/{agent_name}/activity")
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{
"agent_name": "support-agent",
"days": [
{
"date": "2026-11-19",
"runs": 52,
"failed": 1,
"evaluated": 18,
"passed": 16
},
{
"date": "2026-11-20",
"runs": 47,
"failed": 0,
"evaluated": 15,
"passed": 13
}
],
"this_week": {
"runs": 342,
"failed": 6,
"evaluated": 120,
"passed": 104
},
"last_week": {
"runs": 305,
"failed": 4,
"evaluated": 110,
"passed": 89
},
"top_failure": {
"message": "lookup_order timed out",
"count": 4
},
"last_run_at": "2026-11-20T09:41:02+00:00"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Query Parameters
Response
Successful Response
The response is of type Response Get Agent Activity Api V1 Agents Agent Name Activity Get · object.