---
title: "Store agent insights report results"
method: POST
path: "/v1/private/agent-insights/issues"
tags: ["Agent Insights"]
---

# Store agent insights report results

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

Upserts the detected issues and their per-day metrics for the given report day in a single transaction. Issue status is never modified by this endpoint.

## Request body

- AgentInsightsReport
  - `project_id` string, uuid, required
  - `report_day` string, date, required
  - `issues` ReportedIssue[], required
    - `id` string, uuid
    - `name` string, required
    - `description` string
    - `cause` string
    - `suggested_fix` string
    - `traces_query` string
    - `severity` 'critical' | 'high' | 'medium' | 'low', required
    - `count` integer, required
    - `total_count` integer, required
    - `users_impacted` integer, required
    - `total_users` integer, required
    - `metadata` JsonNode

## Response `204`

Report stored

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Project not found

## Changes

- **2026-06-19** `dff5e4b15a6e` — 1 breaking
  - added the new required request property `issues/items/severity`
- **2026-06-17** `cc3d16e25f83` — 1 info
  - endpoint added
- **2026-05-04** `d606e84c75e4` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/comet-ml/apis/opik-rest-api/changes/v1/private/agent-insights/issues/post.md)

---

[API](https://skmtc.dev/comet-ml/apis/opik-rest-api.md) · [All operations](https://skmtc.dev/comet-ml/apis/opik-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/comet-ml/opik-rest-api/revisions/a835604ec403/schema)
