---
title: "Get Performance History"
method: GET
path: "/api/v1/agents/{agent_id}/performance-history"
tags: ["stats"]
---

# Get Performance History

`GET /api/v1/agents/{agent_id}/performance-history`

## Request

- Base URL: `https://api.badgeia.com`
- URL: `https://api.badgeia.com/api/v1/agents/{agent_id}/performance-history`
- Auth: none declared

Get performance history bucketed by day, with regression detection.
Compares the last 7-day window against the prior 7-day window.

NOTE: stats are publicly accessible for leaderboard agents

## Path parameters

- `agent_id` string, uuid, required

## Response `200`

Successful Response

- PerformanceHistoryResponse
  - `agent_id` string, uuid, required
  - `agent_name` string, required
  - `history` PerformancePoint[], required
    - `date` string, required
    - `success_rate` number, required
    - `avg_latency_ms` number, nullable, required
    - `avg_cost_usd` number, nullable, required
    - `run_count` integer, required
    - `composite_score` number, nullable, required
  - `regression_detected` boolean, required
  - `regression_details` string, nullable, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/badgeia/apis/badge.md) · [All operations](https://skmtc.dev/badgeia/apis/badge/llms.txt) · [OpenAPI document](https://skmtc.dev/badgeia/apis/badge/revisions/7e7f7fee8b77?raw)
