> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rootly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Installation

> Install the PagerDuty integration, connect PagerDuty with OAuth, and configure webhook delivery for alert and incident activity in Rootly.

## PagerDuty Permissions

PagerDuty permissions in Rootly are tied to the PagerDuty user who completes the OAuth connection.

That means Rootly can only read from and write to the PagerDuty objects that the authenticated PagerDuty user has access to. Choose the PagerDuty account carefully, and use a service account when possible so the integration remains stable over time.

<Frame>
  <img alt="PagerDuty permissions during setup" src="https://mintcdn.com/rootly/TIlGh9cK2EiEJpcz/images/integrations/pagerduty/installation/images-1.webp?fit=max&auto=format&n=TIlGh9cK2EiEJpcz&q=85&s=94aa87dae088a7b366544815d357c7fa" width="897" height="325" data-path="images/integrations/pagerduty/installation/images-1.webp" />
</Frame>

## Install PagerDuty in Rootly

<Steps>
  <Step title="Open PagerDuty in the integrations catalog" icon="plug">
    Locate **PagerDuty** in the [Integrations catalog](https://rootly.com/account/integrations) and select **Setup**.

    <Frame>
      <img alt="PagerDuty in the Rootly integrations catalog" src="https://mintcdn.com/rootly/TIlGh9cK2EiEJpcz/images/integrations/pagerduty/installation/images-2.webp?fit=max&auto=format&n=TIlGh9cK2EiEJpcz&q=85&s=70c51cc66d0bed53f3591851932a76b1" width="1722" height="1084" data-path="images/integrations/pagerduty/installation/images-2.webp" />
    </Frame>
  </Step>

  <Step title="Sign in to PagerDuty" icon="right-to-bracket">
    During setup, you will be prompted to sign in to PagerDuty or create a PagerDuty account if needed.

    <Frame>
      <img alt="PagerDuty sign-in prompt" src="https://mintcdn.com/rootly/TIlGh9cK2EiEJpcz/images/integrations/pagerduty/installation/images-3.webp?fit=max&auto=format&n=TIlGh9cK2EiEJpcz&q=85&s=4486f1f83ace0e9e19432f24565152b7" width="907" height="740" data-path="images/integrations/pagerduty/installation/images-3.webp" />
    </Frame>
  </Step>

  <Step title="Authorize Rootly in PagerDuty" icon="shield-check">
    After signing in, grant Rootly permission to connect to your PagerDuty account.

    <Frame>
      <img alt="Grant Rootly permission in PagerDuty" src="https://mintcdn.com/rootly/TIlGh9cK2EiEJpcz/images/integrations/pagerduty/installation/images-4.webp?fit=max&auto=format&n=TIlGh9cK2EiEJpcz&q=85&s=f1e0ce321c67cc1c384a290b5272f71f" width="1730" height="1057" data-path="images/integrations/pagerduty/installation/images-4.webp" />
    </Frame>
  </Step>

  <Step title="Complete the installation" icon="circle-check">
    Once authorization is complete, the PagerDuty integration is connected in Rootly.

    <Frame>
      <img alt="PagerDuty installation complete" src="https://mintcdn.com/rootly/TIlGh9cK2EiEJpcz/images/integrations/pagerduty/installation/images-5.webp?fit=max&auto=format&n=TIlGh9cK2EiEJpcz&q=85&s=dd4c27f2c2cf18e605c3f1088bc96f65" width="894" height="408" data-path="images/integrations/pagerduty/installation/images-5.webp" />
    </Frame>
  </Step>
</Steps>

## Set Up PagerDuty Webhooks

PagerDuty webhooks allow Rootly to receive supported PagerDuty webhook events for alerts and incident-related activity.

<Note>
  Rootly attempts to create the webhook for you automatically if the authenticated PagerDuty user has permission to create webhooks. If not, you can still create the webhook manually in PagerDuty.
</Note>

### Via the PagerDuty Web UI

<Steps>
  <Step title="Open Generic Webhooks in PagerDuty" icon="webhook">
    In PagerDuty, navigate to **Integrations > Generic Webhooks**.

    <Frame>
      <img alt="PagerDuty Generic Webhooks page" src="https://mintcdn.com/rootly/TIlGh9cK2EiEJpcz/images/integrations/pagerduty/installation/images-6.webp?fit=max&auto=format&n=TIlGh9cK2EiEJpcz&q=85&s=1615224cf4306493e97e3d7969709ce3" width="873" height="226" data-path="images/integrations/pagerduty/installation/images-6.webp" />
    </Frame>
  </Step>

  <Step title="Create a new webhook" icon="plus">
    Select **+ New Webhook** to open the webhook creation form.

    <Frame>
      <img alt="Create a new PagerDuty webhook" src="https://mintcdn.com/rootly/TIlGh9cK2EiEJpcz/images/integrations/pagerduty/installation/images-7.webp?fit=max&auto=format&n=TIlGh9cK2EiEJpcz&q=85&s=9787468c1b5d30ed3e3f515c17dc54b1" width="909" height="398" data-path="images/integrations/pagerduty/installation/images-7.webp" />
    </Frame>
  </Step>

  <Step title="Enter the Rootly webhook settings" icon="sliders">
    Use the following configuration in PagerDuty:

    * **Webhook URL:** `https://webhooks.rootly.com/webhooks/incoming/pagerduty_webhooks`
    * **Scope Type:** Choose one of:
      * `Service` — only events for the selected service are sent to Rootly
      * `Team` — only events for the selected team are sent to Rootly
      * `Account` — events across the PagerDuty account are sent to Rootly
    * **Description:** Optional
    * **Custom Header Name:** `secret`
    * **Custom Header Value:** `<secret>`

    You can find the webhook URL and header secret in Rootly on the **Integrations > PagerDuty** setup screen.

    <Frame>
      <img alt="PagerDuty webhook URL and secret in Rootly" src="https://mintcdn.com/rootly/TIlGh9cK2EiEJpcz/images/integrations/pagerduty/installation/images-8.webp?fit=max&auto=format&n=TIlGh9cK2EiEJpcz&q=85&s=86b20f06cd3f70c3c496b775a433feca" width="914" height="778" data-path="images/integrations/pagerduty/installation/images-8.webp" />
    </Frame>

    The webhook URL is shared across Rootly accounts. The `secret` value is unique to your Rootly account.

    <Frame>
      <img alt="PagerDuty webhook form completed" src="https://mintcdn.com/rootly/TIlGh9cK2EiEJpcz/images/integrations/pagerduty/installation/images-9.webp?fit=max&auto=format&n=TIlGh9cK2EiEJpcz&q=85&s=60fecf399c19eda63a7f589563d8fa63" width="919" height="1224" data-path="images/integrations/pagerduty/installation/images-9.webp" />
    </Frame>
  </Step>

  <Step title="Choose webhook event subscriptions" icon="list-check">
    Rootly supports the following PagerDuty webhook event types:

    ```text theme={null}
    incident.acknowledged
    incident.annotated
    incident.delegated
    incident.escalated
    incident.priority_updated
    incident.reassigned
    incident.reopened
    incident.resolved
    incident.responder.added
    incident.responder.replied
    incident.triggered
    incident.unacknowledged
    pagey.ping
    ```

    We recommend selecting the supported incident events relevant to your Rootly workflows.
  </Step>

  <Step title="Finish the webhook setup" icon="check">
    After completing the form, select **Add Webhook**.

    PagerDuty may display a PagerDuty-generated webhook secret as part of its confirmation flow. You do not need that value for the Rootly integration.

    <Frame>
      <img alt="PagerDuty webhook confirmation" src="https://mintcdn.com/rootly/TIlGh9cK2EiEJpcz/images/integrations/pagerduty/installation/images-10.webp?fit=max&auto=format&n=TIlGh9cK2EiEJpcz&q=85&s=3a0b70c170723ff40a433bfeae527b06" width="884" height="425" data-path="images/integrations/pagerduty/installation/images-10.webp" />
    </Frame>
  </Step>
</Steps>

### Via the PagerDuty API

PagerDuty webhooks can also be created through the PagerDuty API.

Use the same Rootly endpoint and secret shown in the web UI setup:

* **URL:** `https://webhooks.rootly.com/webhooks/incoming/pagerduty_webhooks`
* **Header:** `secret: <TOKEN>`

You can find the secret token on the Rootly **Integrations > PagerDuty** setup screen.

Use the same supported event list shown above when configuring subscriptions.

## Next Steps

After installation, continue with:

<CardGroup cols={3}>
  <Card title="Smart Defaults" icon="sliders" href="/integrations/pagerduty/smart-defaults">
    Review the default PagerDuty settings and recommended configuration options.
  </Card>

  ```js theme={null}
  incident.acknowledged
  incident.annotated
  incident.delegated
  incident.escalated
  incident.priority_updated
  incident.reassigned
  incident.resolved
  incident.responder.added
  incident.responder.replied
  incident.triggered
  incident.unacknowledged
  service.created
  service.deleted
  service.updated
  ```

  <Card title="Alerts" icon="triangle-exclamation" href="/integrations/pagerduty/alerts">
    Configure how Rootly ingests supported PagerDuty webhook events as alerts.
  </Card>
</CardGroup>
