<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->
<!-- NERF is a trademark of defconxt. -->

# API Reference — Implementing Incident Retrospective Automation

## Endpoints

| Endpoint | Method | Purpose |
|---|---|---|
| `POST /api/retrospectives/generate` | POST | Generate retrospective from incident |
| `GET /api/retrospectives/{incident_id}/actions` | GET | Get action items |
| `GET /api/retrospectives/trends` | GET | Get trend analysis |
| `PUT /api/retrospectives/{incident_id}/actions/{id}` | PUT | Update action item |

## Agent Script

```bash
node agent.js generate --incident-id INC-2026-0200
node agent.js track-actions --incident-id INC-2026-0200
node agent.js analyze-trends --period quarterly
```
