PagerDuty

Real-Time Operations and Incident Response

Go to site
Explore
/
Apps
/
PagerDuty

PagerDuty API Integrations

Build and run workflows using the PagerDuty API. Use 1000s of source-available triggers and actions across 1000+ apps. Or write custom code to integrate any app or API in seconds.

Overview

PagerDuty's APIs allow you to integrate the powerful incident response capabilities of PagerDuty with your own custom applications. With PagerDuty's APIs, you can build applications to optimize your incident response process, collaborate with teams more effectively, and analyze data from your incident response process. Here are some examples of what you can do with PagerDuty's APIs:

  • Create and manage automated incident response workflows
  • Automatically trigger actions based on incident response events
  • Enable communication between PagerDuty and other third party applications
  • Pull data from your previous incident response processes to identify best practices
  • Create custom reporting tools and insights into incident response processes
  • Monitor multiple teams and services at once
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    pagerduty: {
      type: "app",
      app: "pagerduty",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.pagerduty.com/users/me`,
      headers: {
        Authorization: `Bearer ${this.pagerduty.$auth.oauth_access_token}`,
        "Accept": `application/vnd.pagerduty+json;version=2`,
      },
    })
  },
})

Choose an API to Connect with PagerDuty API

1
-
12
of
1000+
apps by most popular

Acknowledge Incident with PagerDuty API on New Requests (Payload Only) from HTTP / Webhook API
HTTP / Webhook + PagerDuty
 
Try it
Send Message (Advanced) with Discord Webhook API on New or Updated Incident from PagerDuty API
PagerDuty + Discord Webhook
 
Try it
Add Multiple Rows with Google Sheets API on New or Updated Incident from PagerDuty API
PagerDuty + Google Sheets
 
Try it
Acknowledge Incident with PagerDuty API on New Item in Feed from RSS API
RSS + PagerDuty
 
Try it
Acknowledge Incident with PagerDuty API on New Message from Discord API
Discord + PagerDuty
 
Try it
New On-Call Rotation from the PagerDuty API

Emit new event each time a new user rotates onto an on-call rotation

 
Try it
New or Updated Incident from the PagerDuty API

Emit new event each time an incident is created or updated

 
Try it
Acknowledge Incident with the PagerDuty API

Acknowledge an incident. See the docs here

 
Try it
Find Oncall User with the PagerDuty API

Find the user on call for a specific schedule. See the docs here

 
Try it
Resolve Incident with the PagerDuty API

Resolve an incident. See the docs here

 
Try it
Trigger Incident with the PagerDuty API

Trigger an incident. See the docs here

 
Try it

Authentication

PagerDuty uses OAuth authentication. When you connect your PagerDuty account, Pipedream will open a popup window where you can sign into PagerDuty and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any PagerDuty API.

Pipedream requests the following authorization scopes when you connect your account:

OAuth Request Configurations:
  1. authorization
    GEThttps://identity.pagerduty.com/oauth/authorize?client_id={{oauth.client_id}}&redirect_uri={{oauth.redirect_uri}}&state={{oauth.state}}&response_type=code&scope={{oauth.space_separated_scopes}}
  2. accessToken
    POSThttps://identity.pagerduty.com/oauth/tokencontent-type: application/x-www-form-urlencodedaccept: application/json
    client_id={{oauth.client_id}}&client_secret={{oauth.client_secret}}&redirect_uri={{oauth.redirect_uri}}&grant_type=authorization_code&code={{oauth.code}}
  3. refreshToken
    POSThttps://identity.pagerduty.com/oauth/tokencontent-type: application/x-www-form-urlencodedaccept: application/json
    client_id={{oauth.client_id}}&client_secret={{oauth.client_secret}}&grant_type=refresh_token&refresh_token={{oauth.refresh_token}}
Run a Pipedream workflow on PagerDuty on-call rotations
Run a Pipedream workflow on PagerDuty on-call rotations
Run common workflows, or any Node.js code you'd like, each time a new user rotates onto an on-call schedule.