Skip to main content
HealOps queries PagerDuty to retrieve triggered and acknowledged incidents, full incident timelines, and current on-call schedules — giving the AI agent the incident management context it needs to produce faster, more accurate root-cause analyses.

What HealOps fetches

Prerequisites

  • A PagerDuty account with REST API v2 access
  • A PagerDuty API key (User token or service account) with at minimum Read access

Creating an API key

  1. Log into PagerDuty → User IconMy ProfileUser SettingsCreate API User Token
  2. Give the token a descriptive name (e.g. healops-readonly)
  3. Copy the token — it is only shown once
For production use, prefer a Service Account with Read-Only permissions.

Setup

Option 1: Interactive CLI

The wizard will ask for your PagerDuty API key.

Option 2: Environment variables

Add to your .env:

Option 3: Persistent store

Verify

A successful verification prints the word passed and confirms the API key is accepted.

Tool reference

pagerduty_incidents

Lists or searches PagerDuty incidents. Optionally fetches full detail and timeline log entries for a specific incident.

Example: all triggered incidents

Example: full detail for a specific incident

pagerduty_oncall

Returns the current on-call roster, optionally filtered by escalation policy or schedule.

Example: on-call for a specific policy

RCA integration

When PagerDuty is configured, the investigation pipeline automatically:
  1. Fetches the currently triggered/acknowledged incidents to establish incident context
  2. Fetches the on-call schedule to identify who is responsible for the affected service
  3. Includes incident timeline log entries in the RCA summary
This context surfaces in the AI agent’s investigation alongside signals from Datadog, Sentry, CloudWatch, or other observability integrations.

Troubleshooting

auth_error — The API key is invalid or has been revoked. Generate a new token in PagerDuty and update your .env. HTTP 403 — Your API key lacks the required scope. Ensure the token has at minimum Read access to Incidents and On-Call data. Empty incident list — If no incidents are returned, check that your statuses filter matches what is in PagerDuty and that the since/until time range covers the window you expect.