Skip to main content
Opik Documentation

Search documentation

Type to search this documentation.

Find agent insights issues

GET/v1/private/agent-insights/issuesFind 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

Parameters

project_idstring · uuidqueryrequired
from_datestring · datequery
to_datestring · datequery
statusstringquery

one of "open", "resolved", "closed"

one of "open", "resolved", "closed"

severitystringquery

one of "critical", "high", "medium", "low"

one of "critical", "high", "medium", "low"

sortingstringquery
pageinteger · int32query

default 1 · minimum 1

sizeinteger · int32query

default 10 · maximum 100 · minimum 1

Responses

200Issues pageapplication/json
objectAgentInsightsIssuePage
contentarray of object
Show child attributes
Show array items
causestring
created_atstring · date-time
created_bystring
days_reportedinteger · int64

COUNT(DISTINCT report_day) in the requested window

descriptionstring
first_seenstring · date

MIN(report_day) in the requested window

idstring · uuid
last_seenstring · date

MAX(report_day) in the requested window

last_updated_atstring · date-time
last_updated_bystring
latest_countinteger · int64

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.

namestring
severitystring

one of "critical", "high", "medium", "low"

statusstring

one of "open", "resolved", "closed"

suggested_fixstring
totalinteger · int64

SUM(total_count) over the requested window

total_occurrencesinteger · int64

SUM(count) over the requested window

total_usersinteger · int64

SUM(total_users) over the requested window

traces_querystring
users_impactedinteger · int64

SUM(users_impacted) over the requested window

pageinteger · int32
sizeinteger · int32
totalinteger · int64
Example response
{
  "content": [
    {
      "cause": "string",
      "created_at": "2026-06-09T00:00:00Z",
      "created_by": "string",
      "days_reported": 0,
      "description": "string",
      "first_seen": "2026-06-09",
      "id": "00000000-0000-0000-0000-000000000000",
      "last_seen": "2026-06-09",
      "last_updated_at": "2026-06-09T00:00:00Z",
      "last_updated_by": "string",
      "latest_count": 0,
      "name": "string",
      "severity": "critical",
      "status": "closed",
      "suggested_fix": "string",
      "total": 0,
      "total_occurrences": 0,
      "total_users": 0,
      "traces_query": "string",
      "users_impacted": 0
    }
  ],
  "page": 0,
  "size": 0,
  "total": 0
}
400Bad Requestapplication/json
objectErrorMessage
codeinteger · int32
detailsstring
messagestring
Example response
{
  "code": 0,
  "details": "string",
  "message": "string"
}
401Unauthorizedapplication/json
objectErrorMessage
codeinteger · int32
detailsstring
messagestring
Example response
{
  "code": 0,
  "details": "string",
  "message": "string"
}
Documentation menu