Skip to main content

PagerDuty Integration

Connect PagerDuty to enable the AI agent to access incidents, on-call schedules, and alert data during investigations.

Capabilities

Once connected, the AI agent can:

CapabilityDescription
View IncidentsAccess PagerDuty incident details and timelines
On-Call SchedulesLook up who is currently on call
Alert DataRetrieve alert details and trigger information
Service StatusCheck service health and escalation policies
Incident HistorySearch past incidents for similar patterns

Prerequisites

  • A PagerDuty account with API access
  • A REST API Key (General Access or User Token)
  • Read permissions for incidents, services, and schedules

Setup

1
Get Your API Key
  1. Log in to your PagerDuty account
  2. Navigate to IntegrationsDeveloper ToolsAPI Access Keys
  3. Click Create New API Key
  4. Enter a description (e.g., "Autoheal Integration")
  5. Select Read-only API Key if available
  6. Copy the generated API key
2
Add Integration in Autoheal
  1. Go to Integrations in Autoheal
  2. Click PagerDuty
  3. Enter a name (e.g., "Production PagerDuty")
3
Configure Credentials

Enter the following:

  • API Key: Your PagerDuty REST API key
4
Test and Save

Click Test Connection to verify, then Save.

API Key Types

PagerDuty supports two types of REST API keys:

TypeScopeRecommended
General Access REST API KeyAccount-wide accessYes (for org-level visibility)
User Token REST API KeyScoped to a specific userYes (for limited access)
tip

Use a General Access REST API Key for the broadest visibility into incidents and services. If you need to limit scope, use a User Token REST API Key tied to a service account.

Required Permissions

The API key should have at least these permissions:

PermissionWhy It's Needed
Read access to IncidentsView incident details and timelines
Read access to ServicesCheck service status
Read access to SchedulesLook up on-call information
Read access to UsersIdentify responders

Example Queries

Once connected, you can ask the AI agent questions like:

Who is currently on call for the payments team?
Show me all open PagerDuty incidents
What incidents were triggered for the checkout service this week?
Get the timeline for PagerDuty incident #12345

Troubleshooting

401 Unauthorized Error
  • Verify the API key is correct and has not been revoked
  • Check that the API key has the required permissions
  • Ensure the key is a REST API key (not an Events API key)
No Incidents Found
  • Verify the time range includes active incidents
  • Check that the API key has access to the relevant services
  • Ensure there are incidents matching your query criteria
Rate Limiting
  • PagerDuty enforces API rate limits
  • Reduce query frequency if you encounter 429 errors
  • Use more specific queries to reduce the number of API calls