Skip to main content

PagerDuty Connector

PagerDuty PagerDuty is an industry leading incident management tool.

This component allows the creation and management of Incidents, events, and more.

API Documentation

This component was built using the PagerDuty REST API.

Connections

API Key

Authenticate requests using an API key.

To create a PagerDuty API Key connection, generate a REST API key from the PagerDuty account.

Prerequisites

  • A PagerDuty account with administrative permissions to create API access keys
  • Access to the PagerDuty web app

Setup Steps

  1. Log in to PagerDuty and navigate to Integrations | API Access Keys.
  2. Click Create New API Key.
  3. Enter a description for the API key. Check Read-only API Key if read-only behavior is desired.
  4. Click Create Key.
  5. Copy the provided API Key for use in the connection configuration.

Configure the Connection

  • Create a connection of type API Key.
  • Enter the Token copied from PagerDuty. This is the API token used to authenticate requests.
InputCommentsDefault
TokenThe PagerDuty API token used to authenticate requests.

OAuth 2.0

Authenticate requests using OAuth 2.0.

To create a PagerDuty OAuth 2.0 connection, register an app in PagerDuty to obtain a Client ID and Client Secret. For background, refer to OAuth 2.0 for PagerDuty.

Prerequisites

Setup Steps

  1. Log in to PagerDuty and navigate to Integrations | App Registration.
  2. From the top menu, select Integrations.
  3. Select App Registration from the menu to navigate to the My Apps page.
  4. On the My Apps page, select New App. Enter a name for the app and a brief description.
  5. Check the box next to OAuth 2.0 and/or Events Integration.
  6. For Authorization select one of the following:
    1. Scoped OAuth - New OAuth client that allows granular read or write access to PagerDuty resources like incidents, services, users, with other benefits.
      1. Use the table to select Read or Write access to each Resource the integration requires.
    2. Classic User OAuth - Existing OAuth client that allows apps to act on behalf of users, with read or write to all PagerDuty resources.
      1. Assign a permission scope of Read or Read and Write.
  7. In the Redirect URL field, enter https://oauth2.integrations.acme.com/callback.
  8. Select Register App.
  9. Copy and save the Client ID and Client Secret for use in the connection configuration.

Configure the Connection

  • Create a connection of type OAuth 2.0.
  • Enter the Scopes granted to the app. Use write for read/write access or read for read-only access to all resources (Classic User OAuth).
  • Enter the Client ID copied from the PagerDuty OAuth application.
  • Enter the Client Secret copied from the PagerDuty OAuth application.

This connection uses OAuth 2.0, a common authentication mechanism for integrations. Read about how OAuth 2.0 works here.

InputCommentsDefault
ScopesThe Classic User OAuth scope granting read or read/write access to all resources.write
Client IDThe client ID of the PagerDuty OAuth application.
Client SecretThe client secret of the PagerDuty OAuth application.

Triggers

Incident Webhook

Receive incident webhook notifications from PagerDuty when a selected incident event occurs.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
Incident EventsThe incident events that trigger the webhook.
Webhook DescriptionA descriptive label used to identify the webhook.
Filter IDThe unique identifier of the object used as the filter.
Filter TypeThe type of object used as the filter.

New Incidents

Fetches incidents created since the last execution on a recurring schedule.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
Show New IncidentsWhen enabled, newly created incidents will be included in the trigger output.true

Service Webhook

Receive service webhook notifications from PagerDuty when a selected service event occurs.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
Service EventsThe service events that trigger the webhook.
Webhook DescriptionA descriptive label used to identify the webhook.
Filter IDThe unique identifier of the object used as the filter.
Filter TypeThe type of object used as the filter.

Actions

Create Incident

Create a new incident.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
IncidentThe JSON object body describing the incident to create.

Create Incident Note

Create a note on an incident.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
Incident IDThe unique identifier for the incident.
NoteThe JSON object containing the note content to attach to the incident.

Create Service

Create a new service.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
ServiceThe JSON object body describing the service to create.

Create Template

Create a new template.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
Template ObjectThe JSON object body describing the template to create.

Create User

Create a new user.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
UserThe JSON object body describing the user to create.

Create Webhook Subscription

Create a new webhook subscription.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
Webhook SubscriptionThe JSON object body describing the webhook subscription to create.

Delete All Instance Webhooks

Delete all webhook subscriptions associated with this instance.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.

Delete Service

Delete a service by ID.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
Service IDThe unique identifier for the service.

Delete Template

Delete a template by ID.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
Template IDThe unique identifier for the template.

Delete User

Delete a user by ID.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
User IDThe unique identifier for the user.

Delete Webhook Subscription

Delete a webhook subscription by ID.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
Webhook IDThe unique identifier for the webhook.

Enable Webhook Subscription

Enable a disabled webhook subscription.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
Webhook IDThe unique identifier for the webhook.

Get Change Event

Retrieve a change event by ID.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
Event IDThe unique identifier for the change event.

Get Incident

Retrieve an incident by ID.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
Incident IDThe unique identifier for the incident.
IncludeThe additional details to include in the response.

Get Incident Alert

Retrieve a single alert from an incident.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
Incident IDThe unique identifier for the incident.
Incident Alert IDThe unique identifier for the incident alert.

Get Service

Retrieve a service by ID.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
Service IDThe unique identifier for the service.
IncludeThe additional details to include in the response.

Get Template

Retrieve a template by ID.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
Template IDThe unique identifier for the template.

Get User

Retrieve a user by ID.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
User IDThe unique identifier for the user.
IncludeThe additional models to include in the response.

Get Webhook Subscription

Retrieve a webhook subscription by ID.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
Webhook IDThe unique identifier for the webhook.

List Change Events

List change events with optional filters.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
Fetch AllWhen true, automatically fetches all pages of results. When false, only the first page is returned.false
LimitThe maximum number of results to return per page.
OffsetThe number of results to skip before starting to return results. Used for pagination.
TotalWhen true, the total field in pagination responses is populated. By default this field is null to provide the fastest possible response times.false
Team IDsThe unique identifiers of the teams to filter results by.
Integration IDsThe unique identifiers of the integrations to filter results by.
SinceThe start of the date range over which to search, as a UTC ISO 8601 datetime string.
UntilThe end of the date range over which to search, as a UTC ISO 8601 datetime string.

List Incident Alerts

List alerts for an incident.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
Incident IDThe unique identifier for the incident.
Fetch AllWhen true, automatically fetches all pages of results. When false, only the first page is returned.false
LimitThe maximum number of results to return per page.
OffsetThe number of results to skip before starting to return results. Used for pagination.
TotalWhen true, the total field in pagination responses is populated. By default this field is null to provide the fastest possible response times.false
Alert KeyThe de-duplication key used to prevent duplicate alerts from being created.
StatusesThe statuses to filter incidents by.
Sort ByThe field and direction used to sort results. Field options: created_at, resolved_at. Direction: asc or desc.
IncludeThe additional details to include in the response.

List Incident Notes

List notes for an incident.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
Incident IDThe unique identifier for the incident.

List Incidents

List incidents with optional filters.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
Fetch AllWhen true, automatically fetches all pages of results. When false, only the first page is returned.false
LimitThe maximum number of results to return per page.
OffsetThe number of results to skip before starting to return results. Used for pagination.
TotalWhen true, the total field in pagination responses is populated. By default this field is null to provide the fastest possible response times.false
Date RangeWhen set to 'all', the since and until parameters and defaults are ignored.
Incident KeyThe de-duplication key used to prevent duplicate incidents from being created.
Service IDsThe unique identifiers of the services to filter incidents by. Only incidents associated with the listed services are returned.
Team IDsThe unique identifiers of the teams to filter results by.
User IDsThe unique identifiers of the users currently assigned to the incidents to return.
UrgenciesThe urgency levels to filter incidents by.
Time ZoneThe TZInfo-formatted time zone in which results are rendered. Example: 'America/Los_Angeles'.
StatusesThe statuses to filter incidents by.
Sort ByThe field and direction used to sort results. Field options: incident_number, created_at, resolved_at, urgency. Direction: asc or desc. Example: 'incident_number:desc'.
IncludeThe additional details to include in the response.
SinceThe start of the date range over which to search, as a UTC ISO 8601 datetime string.
UntilThe end of the date range over which to search, as a UTC ISO 8601 datetime string.

List Notifications

List notifications sent within a specified time range.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
Fetch AllWhen true, automatically fetches all pages of results. When false, only the first page is returned.false
SinceThe start of the date range over which to search, as a UTC ISO 8601 datetime string.
UntilThe end of the date range over which to search, as a UTC ISO 8601 datetime string.
LimitThe maximum number of results to return per page.
OffsetThe number of results to skip before starting to return results. Used for pagination.
TotalWhen true, the total field in pagination responses is populated. By default this field is null to provide the fastest possible response times.false
Time ZoneThe TZInfo-formatted time zone in which results are rendered. Example: 'America/Los_Angeles'.
FilterThe notification type to filter results by.
IncludeThe additional details to include in the response.

List Priorities

List available incident priorities.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
Fetch AllWhen true, automatically fetches all pages of results. When false, only the first page is returned.false
LimitThe maximum number of results to return per page.
OffsetThe number of results to skip before starting to return results. Used for pagination.
TotalWhen true, the total field in pagination responses is populated. By default this field is null to provide the fastest possible response times.false

List Services

List services with optional filters.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
Fetch AllWhen true, automatically fetches all pages of results. When false, only the first page is returned.false
QueryThe search query used to filter results. Only records whose name matches the query are returned.
LimitThe maximum number of results to return per page.
OffsetThe number of results to skip before starting to return results. Used for pagination.
TotalWhen true, the total field in pagination responses is populated. By default this field is null to provide the fastest possible response times.false
Team IDsThe unique identifiers of the teams to filter results by.
Time ZoneThe TZInfo-formatted time zone in which results are rendered. Example: 'America/Los_Angeles'.
Sort ByThe field used to sort the results.
IncludeThe additional details to include in the response.
NameThe name to filter results by. Only services with the specified name are returned.

List Templates

List all templates with optional filters.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
Fetch AllWhen true, automatically fetches all pages of results. When false, only the first page is returned.false
LimitThe maximum number of results to return per page.
OffsetThe number of results to skip before starting to return results. Used for pagination.
TotalWhen true, the total field in pagination responses is populated. By default this field is null to provide the fastest possible response times.false
QueryThe template name or description to search for.
Template TypeThe template type used to filter results.
Sort ByThe field and direction used to sort results. Field options: name, created_at. Direction: asc or desc.created_at:asc

List Users

List all users with optional filters.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
Fetch AllWhen true, automatically fetches all pages of results. When false, only the first page is returned.false
QueryThe search query used to filter results. Only records whose name matches the query are returned.
Team IDsThe unique identifiers of the teams to filter results by.
LimitThe maximum number of results to return per page.
OffsetThe number of results to skip before starting to return results. Used for pagination.
TotalWhen true, the total field in pagination responses is populated. By default this field is null to provide the fastest possible response times.false
IncludeThe additional models to include in the response.

List Webhook Subscriptions

List webhook subscriptions with optional filters.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
Fetch AllWhen true, automatically fetches all pages of results. When false, only the first page is returned.false
LimitThe maximum number of results to return per page.
OffsetThe number of results to skip before starting to return results. Used for pagination.
TotalWhen true, the total field in pagination responses is populated. By default this field is null to provide the fastest possible response times.false
Filter TypeThe type of resource to filter results upon.
Filter IDThe unique identifier of the resource to filter results upon.

Manage Incident Alerts

Update multiple alerts on an incident in bulk.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
Incident IDThe unique identifier for the incident.
LimitThe maximum number of results to return per page.
OffsetThe number of results to skip before starting to return results. Used for pagination.
TotalWhen true, the total field in pagination responses is populated. By default this field is null to provide the fastest possible response times.false
AlertsThe JSON array of alert objects, including the parameters to update for each alert.

Manage Incidents

Acknowledge, resolve, or update multiple incidents in bulk.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
LimitThe maximum number of results to return per page.
OffsetThe number of results to skip before starting to return results. Used for pagination.
TotalWhen true, the total field in pagination responses is populated. By default this field is null to provide the fastest possible response times.false
IncidentsThe JSON array of incidents to manage, including the parameters to update.

Raw Request

Issue a raw HTTP request

InputCommentsDefault
Connection
URLThis is the URL to call.
MethodThe HTTP method to use.
DataThe HTTP body payload to send to the URL.
Form DataThe Form Data to be sent as a multipart form upload.
File DataFile Data to be sent as a multipart form upload.
File Data File NamesFile names to apply to the file data inputs. Keys must match the file data keys above.
Query ParameterA list of query parameters to send with the request. This is the portion at the end of the URL similar to ?key1=value1&key2=value2.
HeaderA list of headers to send with the request.
Response TypeThe type of data you expect in the response. You can request json, text, or binary data.json
TimeoutThe maximum time that a client will await a response to its request
Debug RequestEnabling this flag will log out the current request.false
Retry Delay (ms)The delay in milliseconds between retries. This is used when 'Use Exponential Backoff' is disabled.0
Retry On All ErrorsIf true, retries on all erroneous responses regardless of type. This is helpful when retrying after HTTP 429 or other 3xx or 4xx errors. Otherwise, only retries on HTTP 5xx and network errors.false
Max Retry CountThe maximum number of retries to attempt. Specify 0 for no retries.0
Use Exponential BackoffSpecifies whether to use a pre-defined exponential backoff strategy for retries. When enabled, 'Retry Delay (ms)' is ignored.false

Render Template

Render a template for a given incident.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
Incident IDThe unique identifier for the incident.
Template IDThe unique identifier for the template.
Update MessageAn optional status update message sent along with the rendered template.

Send Change Event

Send a change event to the Events API.

InputCommentsDefault
Change Event To SendThe JSON object describing the event payload to send.

Send Event

Send a trigger event to the Events API to report a new event.

InputCommentsDefault
Event to SendThe JSON object describing the event payload to send.

Test Webhook Subscription

Send a test ping to a webhook subscription.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
Webhook IDThe unique identifier for the webhook.

Update Change Event

Update an existing change event.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
Event IDThe unique identifier for the change event.
Change Event to UpdateThe JSON object describing the event payload to send.

Update Incident

Update an existing incident.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
Incident IDThe unique identifier for the incident.
IncidentThe JSON object containing the parameters of the incident to update.

Update Incident Alert

Update a single alert on an incident.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
Incident IDThe unique identifier for the incident.
Incident Alert IDThe unique identifier for the incident alert.
AlertsThe JSON array of alert objects, including the parameters to update for each alert.

Update Service

Update an existing service.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
Service IDThe unique identifier for the service.
ServiceThe JSON object body describing the service to update.

Update Template

Update an existing template.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
Template IDThe unique identifier for the template.
TemplateThe JSON object body describing the template to update.

Update User

Update an existing user.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
User IDThe unique identifier for the user.
UserThe JSON object body describing the user to create.

Update Webhook Subscription

Update an existing webhook subscription.

InputCommentsDefault
ConnectionThe PagerDuty connection to use.
Webhook IDThe unique identifier for the webhook.
Update Webhook PayloadThe JSON object body describing the updated webhook subscription.