Skip to main content
PagerDuty

Integrate PagerDuty incidents with Torq for automated workflow triggers, updates, and streamlined communications.

Updated over 2 weeks ago

PagerDuty can help you resolve incidents, communicate between teams, facilitate escalation, and more.

Torq enables quick and easy integration with PagerDuty, so you can automate anything and everything within moments. Torq's public PagerDuty steps include:

  • Acknowledge Incident

  • Create a Note on an Incident

  • Get Aggregated Service Data

  • List Escalation Policies

  • +12 more...

If you don't see a step you need, you can create your own in various ways, such as using the Send an HTTP Request step or Torq’s Step Builder, and share it across your organization.

To trigger a Torq workflow based on events sent from PagerDuty, look here.

To use PagerDuty steps in Torq workflows, look here.

Use PagerDuty to Trigger Workflows in Torq

To ingest PagerDuty alerts, detections, incidents, etc., as events in Torq, you need to create a PagerDuty trigger and use the generated webhook URL (Torq endpoint) to configure a webhook plugin in PagerDuty.

Step One: Create a PagerDuty Trigger Integration in Torq

  1. Navigate to Integration: Go to Build > Integrations > Triggers > PagerDuty and click Add.

  2. Name Integration: Give the integration a unique and meaningful name.

  3. Optionally Add Headers: Optionally, add Authentication headers by clicking Add and Generate Random Secret. Give the header a name such as Bearer. Copy the secret to use later.

  4. Finalize: Click Add.

    1. Copy the Webhook URL generated.

Step Two: Create a Webhook Extension in PagerDuty

You need to configure the unique webhook URL for each corresponding service defined in PagerDuty, which will trigger workflows in Torq.

  1. In PagerDuty Go to Webhooks: Navigate to Integrations > Developer Tools > Generic Webhooks (v3), and click New Webhook.

  2. Create Webhook: Paste the webhook you created earlier in Torq.

    1. Select a scope type:

      1. Service to listen to a specific PagerDuty service

        1. Then, select the service you want to subscribe to.

      2. Team to listen to a specific team's events

      3. Account for your specific account

    2. Give the webhook a unique description.

    3. Pick which events to subscribe to, such as incident.triggered or incident.acknowledged.

    4. If you optionally added Authentication Headers when creating the webhook, click Add Custom Header. Enter the same name and paste the generated secret in the Value parameter.

  3. Finalize: Click Add Webhook.

Now that you've successfully created a PagerDuty trigger, you can build your first PagerDuty-initiated workflow!

In Torq, go to Build > Workflows > Create a Workflow > New Blank Workflow, and select the trigger type: Integrations > PagerDuty. Find your new trigger, and automate away!


Use PagerDuty Steps in Torq

To use PagerDuty steps in a workflow, you must first generate a PagerDuty API key. This key will be required when configuring the PagerDuty steps integration in Torq.

Step One: Create a PagerDuty API Key

  1. Go to Integrations: Go to Integrations > Developer Tools > API Acess Keys.

  2. Create New: Click Create New API Key.

  3. Details: Give the API Key a unique name and optionally click Read Only API Key.

  4. Copy Key: A unique API key will be generated. Copy it for later use in Torq.

Step Two: Create a PagerDuty Steps Integration in Torq

  1. Navigate to Integration: Go to Build > Integrations > Steps > PagerDuty and click Add.

  2. Fill in Details:

    1. Enter a meaningful name for the integration.

    2. Paste the API key you created earlier.

  3. Finalize: Click Add.


Templates

Now that you've added both step and trigger integrations, check out these templates specially crafted by Torq's security experts. Visit Torq's template library for more.

Did this answer your question?