> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/p/pager-duty.md).

# Pager Duty

Pager Duty is an incident response and on-call platform. OctoXLabs reads its users to add them to the inventory.

## Use cases

* List Pager Duty users that OctoXLabs has collected.

```
Adapters = pager-duty
```

## Before you begin

### Network

| Source              | Destination         | Port | Protocol |
| ------------------- | ------------------- | ---- | -------- |
| OctoXLabs connector | `api.pagerduty.com` | 443  | HTTPS    |

### Required permissions

A read-only API key is enough to list users. The sources do not name a finer permission. Not verified.

## Create credentials in Pager Duty

{% stepper %}
{% step %}

### Sign in as an administrator

Log in to Pager Duty as an administrator.
{% endstep %}

{% step %}

### Open API access keys

Go to **Integrations > Developer Tools > API Access Keys** and click **Create New API Key**.
{% endstep %}

{% step %}

### Describe the key

Enter a description for the key. Optionally select **Read-only**, since OctoXLabs only reads data.
{% endstep %}

{% step %}

### Copy the key

Create the key and copy it now. It is not shown again. Store it securely.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter | Required | Type    | Default                     | Description                                                                                    |
| --------- | -------- | ------- | --------------------------- | ---------------------------------------------------------------------------------------------- |
| Domain    | Yes      | String  | <https://api.pagerduty.com> | Base URL of the Pager Duty API. The code default includes `https://`. Enter the full base URL. |
| API Token | Yes      | String  |                             | API key, sent as `Authorization: Token token=<key>`.                                           |
| Timeout   | No       | Integer | 30                          | Seconds to wait for API responses.                                                             |

## Troubleshooting

| Error message | Cause | Fix |
| ------------- | ----- | --- |

## Change history

{% hint style="info" %}
Available starting from version 5.5.1.
{% endhint %}
