younifyd
Menu

Get Past Incidents

Get Past Incidents

GET/incidents/{id}/past_incidents

Use it in a workflow

  1. Add a step and choose the PagerDuty connector.
  2. Pick the Get Past Incidents action (under Incidents).
  3. Fill in the fields below, then reference the result from later steps as {{getPastIncidents.response.data}}.

Request

Path parameters

idstringrequired

The ID of the resource.

Query parameters

limitinteger

The number of results to be returned in the response.

Default 5

totalboolean

By default the `total` field in the response body is set to `null` to provide the fastest possible response times. Set `total` to `true` for this field to be populated with the total number of Past Incidents.

Default false

Headers

Acceptstringrequired

The `Accept` header is used as a versioning header.

Default "application/vnd.pagerduty+json;version=2"

Content-Typestringrequired

One ofapplication/jsonDefault "application/json"

Response

Returns 200 with an object. Read it in later steps with {{getPastIncidents.response.data.<field>}}.

past_incidentsarray<object>

Aggregate of past incidents

incidentobject4 fields

Incident model reference

scorenumber

The computed similarity score associated with the incident and parent incident

totalnumber

The total number of Past Incidents if the total parameter was set in the request

limitnumber

The maximum number of Incidents requested

json
{
  "past_incidents": [
    {
      "incident": {
        "id": "string",
        "created_at": "string",
        "self": "string",
        "title": "string"
      },
      "score": 0
    }
  ],
  "total": 0,
  "limit": 0
}

Need more? See the PagerDuty guide for connection setup and behaviour shared by every action.