---
title: "Generate Incident Postmortem"
method: POST
path: "/api/ai/postmortem"
tags: ["AI Assistant"]
---

# Generate Incident Postmortem

`POST /api/ai/postmortem`

## 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/ai/postmortem`
- Auth: none declared

Generate a production-quality incident postmortem document. Either pass `{incident: {...}}` with custom data, or pass `{switch_name, port_name, hours?}` and the API will gather the last `hours` of risk alerts for that port to seed the document.

## Request body

- object

## Response `200`

Postmortem document — title, summary, timeline, impact, root cause, 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)
