PagerDuty Integration
Opsrift integrates natively with PagerDuty to import incident data directly into the postmortem, shift handover, and runbook generators. Connect your API key once, then select any incident to auto-fill the generation form — no copy-pasting from browser tabs.
How It Works
- Go to any generator page (Postmortem, Shift Handover, or Runbook)
- Click the PagerDuty tab in the import panel
- Enter your PagerDuty API key (stored securely per-user, reused for future sessions)
- Browse your recent incidents or search
- Select an incident — details auto-fill: title, severity, timeline, affected services, responders
- Click "Import & Generate" — Opsrift produces a complete structured report
For a walkthrough of the full automated postmortem workflow, see How to Automate Incident Postmortems.
What Gets Imported
Fields pulled from PagerDuty when you import an incident:
- Incident title and description
- Severity / priority level
- Creation and resolution timestamps
- Affected service(s)
- Assigned responders
- Incident timeline and log entries
- Escalation policy info
Shift Handover: Auto-Fetch by Time Window
When using the Shift Handover Generator, Opsrift can auto-fetch all PagerDuty incidents that occurred during a specific shift window. Select your shift (morning, evening, night, or custom time range) and click "Fetch from PD" — all incidents from that period are pulled in and included in the handover report.
This eliminates the most tedious part of shift handovers: manually listing what happened during your shift. PagerDuty already has the data; Opsrift just pulls it into a structured document.
Setup Requirements
- A PagerDuty account with API access
- A PagerDuty REST API key (v2) — read-only access is sufficient
- Available on all Opsrift plans, including Starter
Security
- Your PagerDuty API key is stored per-user in Supabase with row-level security
- Keys are never shared across users or exposed in client-side code
- Opsrift only reads incident data — it does not modify, create, or delete anything in your PagerDuty account
- Incident data passes through the Anthropic API for generation only and is not used for model training
Frequently Asked Questions
What PagerDuty permissions does Opsrift need?
A REST API v2 key with read-only access. Opsrift only reads incident data and never modifies your PagerDuty account.
Is PagerDuty integration available on the Starter plan?
Yes. PagerDuty import is available on all plans including Starter.
Can I use PagerDuty data for shift handovers too?
Yes. The Shift Handover Generator can auto-fetch all PagerDuty incidents within your selected shift time window.