<!-- 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 — Incident Escalation Procedures

## PagerDuty Events API v2

| Endpoint | Method | Purpose |
|---|---|---|
| `POST /v2/enqueue` | POST | Trigger/acknowledge/resolve events |
| `GET /escalation_policies` | GET | List escalation policies |
| `GET /schedules` | GET | List on-call schedules |
| `GET /oncalls` | GET | Current on-call responders |

## Opsgenie API

| Endpoint | Method | Purpose |
|---|---|---|
| `POST /v2/alerts` | POST | Create alert with escalation |
| `GET /v2/escalations` | GET | List escalation policies |
| `POST /v2/alerts/{id}/escalate` | POST | Manually escalate |

## Agent Script

```bash
node agent.js sla --severity S1
node agent.js evaluate --severity S2 --elapsed-minutes 20
node agent.js evaluate --severity S3 --elapsed-minutes 45 --scope-expanding
node agent.js tiers
```
