Skip to main content
GET
Get AI Insight
string
required
AI insight name, <issue>-insight (e.g., payment-service-oom-kill-1773933600-insight)
string
default:"default"
Kubernetes namespace. Defaults to default (it does not search other namespaces), so pass the insight’s namespace explicitly.

Response Fields

spec carries the full insight item (the fields of List AI Insights, including issueRef, provider and model); status is the resource’s raw Kubernetes status, with the analysis fields below.

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

Path Parameters

name
string
required

AIInsight name.

Example:

"payment-oom-insight"

Query Parameters

namespace
string
default:default

Namespace of the object. Defaults to default — pass it for objects in any other namespace.

Response

AI insight details

apiVersion
string
Example:

"v1"

kind
string
Example:

"AIInsight"

resourceMeta
object
spec
object
status
object

The AIInsight CR status, unchanged.