Skip to main content
GET
Get Policy
string
required
approval, notification, escalation or sla
string
required
Policy name
string
Namespace of the policy. When omitted, every namespace is searched and the first policy with that name is returned.
Minimum role: viewer. Read-only: any method other than GET returns 405. spec and status are the CRD fields unchanged; resourceMeta carries name, namespace, UID, creation time, labels and annotations.

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

kind
enum<string>
required

approval, notification, escalation or sla.

Available options:
approval,
notification,
escalation,
sla
name
string
required

Policy name.

Query Parameters

namespace
string

Namespace of the object. When omitted, all namespaces are searched and the first object with this name is used.

Response

Policy

apiVersion
string
Example:

"v1"

kind
string
Example:

"ApprovalPolicy"

spec
object
status
object
resourceMeta
object