curl --request GET \
--url {scheme}://{host}:{port}/{basePath}/postmortems \
--header 'X-API-Key: <api-key>'import requests
url = "{scheme}://{host}:{port}/{basePath}/postmortems"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('{scheme}://{host}:{port}/{basePath}/postmortems', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "62437",
CURLOPT_URL => "{scheme}://{host}:{port}/{basePath}/postmortems",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{scheme}://{host}:{port}/{basePath}/postmortems"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("{scheme}://{host}:{port}/{basePath}/postmortems")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("{scheme}://{host}:{port}/{basePath}/postmortems")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"apiVersion": "v1",
"kind": "PostMortemList",
"metadata": {
"totalCount": 2,
"page": 1,
"pageSize": 20
},
"items": [
{
"name": "pm-checkout-service-oom-kill-1773871200",
"namespace": "production",
"issueRef": "checkout-service-oom-kill-1773871200",
"resource": {
"kind": "Deployment",
"name": "checkout-service",
"namespace": "production"
},
"severity": "critical",
"state": "Open",
"summary": "checkout-service pods were OOMKilled repeatedly; memory limit raised and pods stabilized.",
"rootCause": "Memory limit of 512Mi below the working set of the payment webhook handler",
"impact": "Checkout requests failed while pods restarted",
"duration": "45m0s",
"generatedAt": "2026-03-18T22:45:00Z",
"creationTimestamp": "2026-03-18T22:45:00Z"
},
{
"name": "pm-api-gateway-high-latency-1773766200",
"namespace": "production",
"issueRef": "api-gateway-high-latency-1773766200",
"resource": {
"kind": "Deployment",
"name": "api-gateway",
"namespace": "production"
},
"severity": "high",
"state": "Closed",
"duration": "20m0s",
"generatedAt": "2026-03-17T18:50:00Z",
"reviewedAt": "2026-03-18T10:00:00Z",
"creationTimestamp": "2026-03-17T18:50:00Z"
}
]
}
List PostMortems
Returns the list of postmortems automatically generated by the platform
curl --request GET \
--url {scheme}://{host}:{port}/{basePath}/postmortems \
--header 'X-API-Key: <api-key>'import requests
url = "{scheme}://{host}:{port}/{basePath}/postmortems"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('{scheme}://{host}:{port}/{basePath}/postmortems', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "62437",
CURLOPT_URL => "{scheme}://{host}:{port}/{basePath}/postmortems",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "{scheme}://{host}:{port}/{basePath}/postmortems"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("{scheme}://{host}:{port}/{basePath}/postmortems")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("{scheme}://{host}:{port}/{basePath}/postmortems")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"apiVersion": "v1",
"kind": "PostMortemList",
"metadata": {
"totalCount": 2,
"page": 1,
"pageSize": 20
},
"items": [
{
"name": "pm-checkout-service-oom-kill-1773871200",
"namespace": "production",
"issueRef": "checkout-service-oom-kill-1773871200",
"resource": {
"kind": "Deployment",
"name": "checkout-service",
"namespace": "production"
},
"severity": "critical",
"state": "Open",
"summary": "checkout-service pods were OOMKilled repeatedly; memory limit raised and pods stabilized.",
"rootCause": "Memory limit of 512Mi below the working set of the payment webhook handler",
"impact": "Checkout requests failed while pods restarted",
"duration": "45m0s",
"generatedAt": "2026-03-18T22:45:00Z",
"creationTimestamp": "2026-03-18T22:45:00Z"
},
{
"name": "pm-api-gateway-high-latency-1773766200",
"namespace": "production",
"issueRef": "api-gateway-high-latency-1773766200",
"resource": {
"kind": "Deployment",
"name": "api-gateway",
"namespace": "production"
},
"severity": "high",
"state": "Closed",
"duration": "20m0s",
"generatedAt": "2026-03-17T18:50:00Z",
"reviewedAt": "2026-03-18T10:00:00Z",
"creationTimestamp": "2026-03-17T18:50:00Z"
}
]
}
critical, high, medium, lowOpen, InReview, Closed (exact match)2026-03-01T00:00:00Z)viewer. A PostMortem is named pm-<issue name> and each item has the same fields as Get PostMortem. An unparseable from/to value is ignored.
{
"apiVersion": "v1",
"kind": "PostMortemList",
"metadata": {
"totalCount": 2,
"page": 1,
"pageSize": 20
},
"items": [
{
"name": "pm-checkout-service-oom-kill-1773871200",
"namespace": "production",
"issueRef": "checkout-service-oom-kill-1773871200",
"resource": {
"kind": "Deployment",
"name": "checkout-service",
"namespace": "production"
},
"severity": "critical",
"state": "Open",
"summary": "checkout-service pods were OOMKilled repeatedly; memory limit raised and pods stabilized.",
"rootCause": "Memory limit of 512Mi below the working set of the payment webhook handler",
"impact": "Checkout requests failed while pods restarted",
"duration": "45m0s",
"generatedAt": "2026-03-18T22:45:00Z",
"creationTimestamp": "2026-03-18T22:45:00Z"
},
{
"name": "pm-api-gateway-high-latency-1773766200",
"namespace": "production",
"issueRef": "api-gateway-high-latency-1773766200",
"resource": {
"kind": "Deployment",
"name": "api-gateway",
"namespace": "production"
},
"severity": "high",
"state": "Closed",
"duration": "20m0s",
"generatedAt": "2026-03-17T18:50:00Z",
"reviewedAt": "2026-03-18T10:00:00Z",
"creationTimestamp": "2026-03-17T18:50:00Z"
}
]
}
Authorizations
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
Kubernetes namespace. Empty means all namespaces.
Exact match on spec.severity.
critical, high, medium, low Exact match on status.state.
Open, InReview, Closed Start of the time range (RFC3339). Unparseable values are ignored.
"2026-03-01T00:00:00Z"
End of the time range (RFC3339). Unparseable values are ignored.
"2026-03-19T23:59:59Z"
Page number (1-based). Invalid values fall back to 1.
x >= 1Items per page. Values above 100 are capped at 100.
1 <= x <= 100