# PagerDuty

## Connection Requirements

{% stepper %}
{% step %}

### Domain

The default API domain for PagerDuty is `https://api.pagerduty.com`. Use this domain unless your organization has a custom API endpoint.
{% endstep %}

{% step %}

### API Token

To create an API token:

1. Log into your PagerDuty account with an administrator user.
2. Go to Integrations → Developer Tools → API Access Keys.
3. Click Create New API Key.
4. Give the key a description so you recognize its purpose.
5. (Optional) Choose Read-only if you only need to fetch data.
6. Create the key and copy it — this is the only time it will be shown. Store it securely.
   {% endstep %}
   {% endstepper %}

{% hint style="warning" %}
⚠️ Attention

Please perform a connection test to ensure there is a valid connection to the host.\
When the discovery operation is finalized, you will be able to see the details on the **Assets** page.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.octoxlabs.com/adapters/adapters/pagerduty.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
