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

---

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