---
title: List PagerDuty incidents
source: https://docs.newrelic.com/docs/workflow-automation/setup-and-configure/actions-catalog/pagerduty/pagerduty-incident-list
---

For prerequisites, see [PagerDuty incident actions](https://docs.newrelic.com/docs/workflow-automation/setup-and-configure/actions-catalog/pagerduty/pagerduty-incident#prerequisites).

## List PagerDuty incidents

The action identifier is `pagerduty.incident.list`.

Retrieves a list of incidents from PagerDuty with optional filtering parameters such as date ranges and status. Supports all query parameters available in the [PagerDuty List Incidents API](https://developer.pagerduty.com/api-reference/9d0b4b12e36f9-list-incidents) via the `parameters` map.

### Inputs

The following table describes all available input fields for this action.

| Input          | Type   | Description                                                                                                                                                              | Example                                                                          |
| -------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------- |
| **token**      | String | **Required.** PagerDuty API token.                                                                                                                                       | `${{ :secrets:pagerdutyApiToken }}`                                              |
| **parameters** | Map    | **Optional.** Query parameters for filtering. Supports all PagerDuty List Incidents API parameters such as `since`, `until`, `statuses[]`, `offset`, and `incident_key`. | `{"since": "2025-10-14T10:30:00Z", "statuses[]": "resolved"}`                    |
| **selectors**  | List   | **Optional.** JQ selectors to extract fields from the output.                                                                                                            | `[{"name": "incidentId", "expression": ".responseBody | fromjson.incident.id"}]` |

### Outputs

The following table describes all output fields returned by this action.

| Output           | Type    | Description                                            |
| ---------------- | ------- | ------------------------------------------------------ |
| **success**      | Boolean | `true` on success, `false` on failure.                 |
| **response**     | Object  | Contains an `incidents` array with matching incidents. |
| **errorMessage** | String  | Error message on failure. `null` on success.           |

### Example

The following example lists resolved PagerDuty incidents since a given time.

| Workflow example                                                                                                                                                                                                                                                                                                                                                                            |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ```yaml name: list-pagerduty-incidents description: List resolved PagerDuty incidents since a given time steps:   - name: pagerduty_incident_list_1     type: action     action: pagerduty.incident.list     version: 1     inputs:       token: ${{ :secrets:pagerdutyApiToken }}       parameters:         since: '2025-10-14T10:30:00Z'         statuses[]: 'resolved'     next: end ``` |
