---
title: "Incident Postmortem from Alert"
method: POST
path: "/api/postmortem/from-alert"
tags: ["Postmortem"]
---

# Incident Postmortem from Alert

`POST /api/postmortem/from-alert`

## Request

- Base URL: `https://api.fiber.ac` (the document declares no server; this is the origin it was published from)
- URL: `https://api.fiber.ac/api/postmortem/from-alert`
- Auth: none declared

Generate a structured postmortem for the highest-severity alert on a given port. Collects timeline from ClickHouse readings + PostgreSQL alerts, aggregates affected GPU/Job impact via simulate_failure, then calls ai_agent.generate_postmortem for narrative + 5-whys + action items. Returns a JSON postmortem suitable for retrospectives.

## Request body

- object

## Response `200`

Structured postmortem report (timeline, impact, 5-whys, action items)

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/fiber-ac/apis/fiber-api.md) · [All operations](https://skmtc.dev/fiber-ac/apis/fiber-api/llms.txt) · [OpenAPI document](https://skmtc.dev/fiber-ac/apis/fiber-api/revisions/58267250d793?raw)
