Observability & incidents
PagerDuty mock API
PagerDuty REST API v2: incidents, notes, services, users, escalation policies and v3 webhook subscriptions.
At a glance
- Operations
- 473
- Stateful operations
- 29
- Stateful resources
- 4
- Webhook events
- 8
- Vendor API version
- REST API v2 + Webhooks v3
- Verification
- Spec-verified
How it works
Use PagerDuty without calling PagerDuty, Inc.
- Install the mock from the library into a workspace. It runs as a virtual service.
- Point your client's base URL at the virtual service instead of the vendor.
- Authenticate the way you already do. The mock accepts the same credential shape:
authorization: Token token=u+AbCdEfGhIjKlMnOpQr State
Resources that remember
Writes persist per caller, so a create followed by a read returns what you created.
| Resource | Operations |
|---|---|
| Incidents | 9 |
| Services | 6 |
| Users | 7 |
| Webhook subscriptions | 7 |
Webhooks
Events your handlers can receive
- incident.acknowledged
- incident.resolved
- incident.annotated
- incident.triggered
- service.created
- service.deleted
- service.updated
- pagey.ping
Deliveries are signed with the hmac scheme, so your verification code runs unchanged.
Coverage
473 operations
29 of them are stateful. The largest groups:
| Group | Operations |
|---|---|
| Other operations | 444 |
| Incidents | 9 |
| Users | 7 |
| Webhook subscriptions | 7 |
| Services | 6 |
Verification
Spec-verified
Generated operations are checked against the vendor OpenAPI description, which proves shape and routing. Stateful operations and scenario suites prove behaviour. Responses are not yet compared with a live vendor sandbox.
23 operations cannot be checked against the specification.
Source and limits
License, source and limits
- Generated from the PagerDuty, Inc. API description, licensed under none declared.
- PagerDuty, Inc. API documentation
- Source specification
Each collection (incidents, alerts, notes, services, users, webhook subscriptions) holds up to 1 MiB of objects per Authorization header value; writes beyond that are dropped (x-maxoperf-vs-state: capacity). Lists support limit (max 100) and offset, total only with total=true, one value per statuses[], service_ids[] and urgencies[] filter, sort_by incident_number direction, and a name query on services and users. Incident writes need a From header (presence only). Incident alerts exist one per incident and are read-only; log entries, responders, snoozing, merging, custom fields and incident-type features are generated, not stateful. PUT /incidents updates the status of the first 3 listed incidents and fires no webhook. Webhook subscriptions are signed with HMAC-SHA256 hex prefixed v1= in X-PagerDuty-Signature over the raw body keyed by the subscription secret, which is returned only when the subscription is created; delivered events are incident.triggered, acknowledged, resolved, annotated and service.created, updated, deleted, plus pagey.ping; only the first 6 subscribed events are validated against the documented list and custom_headers are stored but not applied to deliveries. The first seeded incident, service, user, escalation policy and (inactive) webhook subscription share the id PCONF01 so the shared {id} path parameter resolves for each. Everything else is generated from the vendor schemas.
MaxoPerf is not affiliated with, endorsed by, or sponsored by PagerDuty, Inc. PagerDuty is a trademark of its owner.