<!-- 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 Recovery Planning

## Endpoints

| Endpoint | Method | Purpose |
|---|---|---|
| `POST /api/recovery/plans` | POST | Generate recovery plan |
| `POST /api/recovery/verify/{hostname}` | POST | Verify system integrity |
| `GET /api/recovery/{incident_id}/progress` | GET | Track recovery progress |
| `POST /api/recovery/{incident_id}/declare-normal` | POST | Declare normal operations |

## Agent Script

```bash
node agent.js generate-plan --incident-id INC-2026-0200 \
  --affected-systems '["web-srv-01","db-srv-01"]'
node agent.js verify-integrity --hostname web-srv-01
node agent.js track-recovery --incident-id INC-2026-0200
```
