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

Base URL: `https://www.comet.com/opik/api`

Tags: `Agent Insights`

## Authorization

This operation requires no authorization.

## Request body

Optional. Media type: `application/json`

### Example request body

```json
{
  "issues": [
    {
      "cause": "string",
      "count": 0,
      "description": "string",
      "id": "00000000-0000-0000-0000-000000000000",
      "metadata": {},
      "name": "string",
      "severity": "critical",
      "suggested_fix": "string",
      "total_count": 0,
      "total_users": 0,
      "traces_query": "string",
      "users_impacted": 0
    }
  ],
  "project_id": "00000000-0000-0000-0000-000000000000",
  "report_day": "2026-06-09"
}
```

## Responses

| Status | Description | Media type |
| --- | --- | --- |
| `204` | Report stored | — |
| `400` | Bad Request | `application/json` |
| `401` | Unauthorized | `application/json` |
| `404` | Project not found | `application/json` |

### Example response: 400 — Bad Request

```json
{
  "code": 0,
  "details": "string",
  "message": "string"
}
```

### Example response: 401 — Unauthorized

```json
{
  "code": 0,
  "details": "string",
  "message": "string"
}
```

### Example response: 404 — Project not found

```json
{
  "code": 0,
  "details": "string",
  "message": "string"
}
```

## Related pages

- [Activate a pairing session](./activatepairingsession.md)
- [Add blueprint to existing config](./updateagentconfig.md)
- [Add items to annotation queue](./additemstoannotationqueue.md)
- [Add span comment](./addspancomment.md)
- [Add span feedback score](./addspanfeedbackscore.md)
- [Add thread comment](./addthreadcomment.md)
- [Add trace comment](./addtracecomment.md)
- [Add trace feedback score](./addtracefeedbackscore.md)
- [Agent Configs](./tags/agent-configs.md)
- [Agent Insights](./tags/agent-insights.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
