---
title: "Find agent insights issues"
method: GET
path: "/v1/private/agent-insights/issues"
tags: ["Agent Insights"]
---

# Find agent insights issues

`GET /v1/private/agent-insights/issues`

Returns a paginated list of issues that have at least one detail row within the requested time window, with metrics aggregated over the window

## Query parameters

- `project_id` string, uuid, required
- `from_date` string, date
- `to_date` string, date
- `status` 'open' | 'resolved' | 'closed'
- `severity` 'critical' | 'high' | 'medium' | 'low'
- `sorting` string
- `page` integer
- `size` integer

## Response `200`

Issues page

- AgentInsightsIssuePage
  - `page` integer
  - `size` integer
  - `total` integer
  - `content` AgentInsightsIssue[]
    - `id` string, uuid
    - `name` string
    - `description` string
    - `cause` string
    - `suggested_fix` string
    - `status` 'open' | 'resolved' | 'closed'
    - `severity` 'critical' | 'high' | 'medium' | 'low'
    - `traces_query` string
    - `total_occurrences` integer — SUM(count) over the requested window
    - `latest_count` integer — Occurrences on the latest report day in the window only. The issue's description/cause narrate that most recent run, so this is the count consistent with them; totalOccurrences instead sums every day in the window.
    - `total` integer — SUM(total_count) over the requested window
    - `users_impacted` integer — SUM(users_impacted) over the requested window
    - `total_users` integer — SUM(total_users) over the requested window
    - `first_seen` string, date — MIN(report_day) in the requested window
    - `last_seen` string, date — MAX(report_day) in the requested window
    - `days_reported` integer — COUNT(DISTINCT report_day) in the requested window
    - `created_by` string
    - `created_at` string, date-time
    - `last_updated_by` string
    - `last_updated_at` string, date-time

## Other responses

- `400` — Bad Request
- `401` — Unauthorized

---

[API](https://skmtc.net/comet-ml/apis/opik-rest-api.md) · [All operations](https://skmtc.net/comet-ml/apis/opik-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/comet-ml/opik-rest-api/versions/4ed2fbc97cc3/schema)
