Skip to main content
The ChatCLI AIOps Platform REST API provides full programmatic access to every platform feature. Built on Kubernetes-like patterns (apiVersion + kind + metadata + spec + status), with API key authentication and per-role rate limiting.

Incidents

Detection, ack, snooze, timeline, remediation, and resolution

Runbooks

Full CRUD for remediation plans

Analytics

MTTD, MTTR, trends, top resources, capacity, compliance

SLOs

Targets, error budget, burn rate, and history

Federation

Multi-cluster status, cross-tier correlations

Health

Liveness and readiness probes

Base URL

The default port is 8090 but can be changed via Helm (--set apiPort=...) or env var CHATCLI_API_PORT. In production, expose behind an Ingress with TLS.

Request flow


Authentication

All requests must include the X-API-Key header with a valid key:

Roles

viewer

Read-only. GET on all endpoints. Ideal for dashboards and observability tools.

operator

Daily ops. GET + POST actions (acknowledge, approve, reject). NOC, SRE, and on-call.

admin

Full access. GET, POST, PUT, DELETE. CI/CD, privileged automation, management tooling.
API keys are configured in the operator’s ConfigMap:
In dev environments, if the chatcli-api-keys ConfigMap is missing, the operator runs in dev mode without auth β€” useful for local tests, never for production.

Rate limiting

Rate limit headers returned in every response:
When the limit is exceeded the operator returns 429 Too Many Requests with a Retry-After header (seconds). Implement exponential backoff in production clients.

Response format

All responses follow a Kubernetes-like pattern:

Error codes


Pagination

Endpoints that return lists support pagination via query parameters:
integer
default:"1"
Page number (starts at 1)
integer
default:"20"
Items per page (maximum: 100)
The response includes metadata.totalCount so you can compute the total number of pages.

Versioning

The API uses path-based versioning (/api/v1/). Future versions will be added as /api/v2/ while maintaining backward compatibility with v1.
Breaking changes only happen across major versions. Within a version only compatible additions (new optional fields, new endpoints) are released.

Next steps

AIOps Platform overview

How the platform detects, analyzes, and remediates incidents

Kubernetes Operator

Operator deployment, CRDs, and configuration

Incident lifecycle

Full flow: detection β†’ analysis β†’ remediation β†’ resolution

AIOps in production

Cookbook: full setup with TLS, RBAC, notifications, and SLOs