Skip to main content
GET
List AI Insights
string
Filter by Kubernetes namespace (omit for all namespaces)
string
Filter by the name of the parent Issue (e.g., payment-service-oom-kill-1773933600)
integer
default:"1"
Page number for pagination
integer
default:"20"
Items per page (max 100)

What Are AI Insights?

When an incident enters analysis, the operator creates one AIInsight resource for it, named <issue>-insight, and fills it with the analysis returned by the ChatCLI server it is connected to. provider and model are copied from the first ready Instance (model is empty when the Instance sets none). This includes:
  • Root cause analysis with a confidence score (confidence, 0.0–1.0)
  • Recommendations in human-readable format
  • Suggested actions with concrete parameters (e.g., ScaleDeployment with replicas: "5")
  • Enrichment data (each present only when collected): log analysis, Prometheus metrics, source code, GitOps context, cascade analysis, and blast radius prediction
This endpoint is essential for understanding how the AI reasoned about each incident, especially when incidents are escalated to human operators.

Authorizations

X-API-Key
string
header
required

API key sent in the X-API-Key header. Keys are read from the Secret chatcli-operator-secrets, key api-keys (fallback: ConfigMap chatcli-operator-config, key api-keys) in the operator namespace, as a YAML list of {key, role, name, description} (name is the identity recorded on approval decisions); the operator chart creates it only with apiKeys.create: true. Roles: viewer < operator < admin — any other role string is denied everywhere. Changes are picked up within about 30 seconds; deleting both the Secret and the ConfigMap revokes every key. With no keys configured every /api/ call returns 401, unless CHATCLI_OPERATOR_DEV_MODE=true, which grants admin without a key (development only).

Query Parameters

namespace
string

Kubernetes namespace. Empty means all namespaces.

issue
string

Exact match on spec.issueRef.name.

page
integer
default:1

Page number (1-based). Invalid values fall back to 1.

Required range: x >= 1
pageSize
integer
default:20

Items per page. Values above 100 are capped at 100.

Required range: 1 <= x <= 100

Response

Paginated list of AI insights

apiVersion
string
Example:

"v1"

kind
string
Example:

"AIInsightList"

metadata
object
items
object[]