---
title: "Get Agent Failures"
method: GET
path: "/api/v1/agents/{agent_id}/failures"
tags: ["insights"]
---

# Get Agent Failures

`GET /api/v1/agents/{agent_id}/failures`

## Request

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

Top failure clusters for the agent's last 100 runs. PRD-006 FR-04.

Returns up to 5 clusters sorted by count desc. Each cluster includes a
representative run id (the most recent failed run in that cluster) and
a sample reason snippet for the UI.

## Path parameters

- `agent_id` string, uuid, required

## Response `200`

Successful Response

- object

## 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)
