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

# PagerDuty

> PagerDuty is an American cloud computing company specializing in a SaaS incident response platform for IT departments.

## Creating a PagerDuty connection

Create the connection by using one of the following methods:

* [OAuth](#using-oauth)
* [API Key](#using-api-key)

## Using OAuth

### Creating your connection

1. In the Blink platform, navigate to the **Connections** page > **Add connection**. A New Connection dialog box opens displaying icons of external service providers available.
2. Select the **PagerDuty** icon. A dialog box with name of the connection and connection methods appears.
3. (Optional) Edit the name of the connection. At a later stage you cannot edit the name.
4. Click **PagerDuty** to authenticate using OAuth.
5. Sign in using your credentials.

## Using API key

To create the connection you need:

* An API key
* An API address

### Obtaining the credentials

There are two types of REST API keys:

* [General Access REST API Keys](#generate-a-general-access-rest-api-key)
* [User Token REST API Keys](#generate-a-user-token-rest-api-key)

#### Generate a General Access REST API Key

<Info>
  **Note**
  Only **Admins** and **Account Owners** can create, disable, enable and delete **general access REST API keys**.
</Info>

1. Log in to PagerDuty.

2. Click **Integrations** > **API Access Key**.

<img src="https://mintcdn.com/blinkops-2/PFTOr0XB-jxgtyO2/img/PagerDuty/Untitled1.png?fit=max&auto=format&n=PFTOr0XB-jxgtyO2&q=85&s=b98580eb9f0980a6a22928753d6da6e1" alt="Untitled" width="1034" height="415" data-path="img/PagerDuty/Untitled1.png" />

3. Click **Create New API Key**.

<img src="https://mintcdn.com/blinkops-2/PFTOr0XB-jxgtyO2/img/PagerDuty/Untitled2.png?fit=max&auto=format&n=PFTOr0XB-jxgtyO2&q=85&s=e5d37fc1de49ad8c6f31c2d54ce1fbcf" alt="Untitled" width="1454" height="940" data-path="img/PagerDuty/Untitled2.png" />

4. Add a description > **Create Key**.

<img src="https://mintcdn.com/blinkops-2/PFTOr0XB-jxgtyO2/img/PagerDuty/Untitled3.png?fit=max&auto=format&n=PFTOr0XB-jxgtyO2&q=85&s=a7b82fa22069d7f9c4643ee02ff5b7f4" alt="Untitled" width="987" height="540" data-path="img/PagerDuty/Untitled3.png" />

5. Copy the API Key.

<img src="https://mintcdn.com/blinkops-2/PFTOr0XB-jxgtyO2/img/PagerDuty/Untitled4.png?fit=max&auto=format&n=PFTOr0XB-jxgtyO2&q=85&s=a04e6f58a19f4e88b591892148f8b1e2" alt="Untitled" width="558" height="487" data-path="img/PagerDuty/Untitled4.png" />

#### Generate a User Token REST API Key

<Info>
  **Note**

  Only accounts with [**Advanced Permissions**](https://support.pagerduty.com/main/docs/advanced-permissions) enable **users** to create **personal REST API keys**. Please refer to [Pager Duty's Documentation](https://support.pagerduty.com/main/docs/advanced-permissions#role-types) to read more about **roles** and their supported **capabilities**.
</Info>

1. In the web app, navigate to **User Icon** > **My Profile** > **User Settings**.

2. In the section **API Access**, click **Create API User Token**.

3. Enter a **Description** to help you identify the key later.

4. Click **Create Key**.

5. Click **Close**.

### Creating your connection

1. In the Blink platform, navigate to the **Connections** page > **Add connection**. A New Connection dialog box opens displaying icons of external service providers available.
2. Select the **PagerDuty** icon. A dialog box with name of the connection and connection methods appears.
3. (Optional) Edit the name of the connection. At a later stage you cannot edit the name.
4. Select **API Key** as the method to create the connection.
5. Fill in the parameters:
   * The API key
   * The API address
6. (Optional) Click **Test Connection** to test it.
7. Click **Create connection**. The new connection appears on the **Connections** page.
