Skip to main content
GET
List Policies
string
required
approval, notification, escalation or sla
string
Filter by namespace. Empty lists every namespace.
integer
default:"1"
Page number
integer
default:"20"
Items per page (maximum 100)
Policies are written through kubectl or GitOps, where they are reviewed; the API and the dashboard’s Policies tab only read them. Each item carries the CRD spec and status unchanged, so the fields follow the ApprovalPolicy, NotificationPolicy and EscalationPolicy and IncidentSLA definitions. Minimum role: viewer. Any method other than GET returns 405; an unknown kind returns 404. Items are not filtered by status or sorted.

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

Query Parameters

namespace
string

Filter by namespace; empty lists every namespace.

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

Policy list (kind ApprovalPolicyList, NotificationPolicyList, EscalationPolicyList or IncidentSLAList)

apiVersion
string
Example:

"v1"

kind
string
Example:

"ApprovalPolicyList"

metadata
object
items
object[]