Skip to main content
GET
/
v2
/
escalations
List
curl --request GET \
  --url https://api.incident.io/v2/escalations
{
  "escalations": [
    {
      "created_at": "2021-08-17T13:28:57.801578Z",
      "creator": {
        "alert": {
          "id": "01GW2G3V0S59R238FAHPDS1R66",
          "title": "*errors.withMessage: PG::Error failed to connect"
        },
        "user": {
          "email": "lisa@incident.io",
          "id": "01FCNDV6P870EA6S7TK1DSYDG0",
          "name": "Lisa Karlin Curtis",
          "role": "viewer",
          "slack_user_id": "U02AYNF2XJM"
        },
        "workflow": {
          "id": "01FCNDV6P870EA6S7TK1DSYDG0",
          "name": "My little workflow"
        }
      },
      "escalation_path_id": "01G0J1EXE7AXZ2C93K61WBPYEH",
      "events": [
        {
          "channels": [
            {
              "microsoft_teams_channel_id": "abc123",
              "microsoft_teams_team_id": "abc123",
              "slack_channel_id": "abc123",
              "slack_team_id": "abc123"
            }
          ],
          "event": "entered_grace_period",
          "id": "01G0J1EXE7AXZ2C93K61WBPYEH",
          "occurred_at": "2021-08-17T13:28:57.801578Z",
          "urgency": "high",
          "users": [
            {
              "email": "lisa@incident.io",
              "id": "01FCNDV6P870EA6S7TK1DSYDG0",
              "name": "Lisa Karlin Curtis",
              "role": "viewer",
              "slack_user_id": "U02AYNF2XJM"
            }
          ]
        }
      ],
      "id": "01G0J1EXE7AXZ2C93K61WBPYEH",
      "priority": {
        "name": "P1"
      },
      "related_alerts": [
        {
          "alert_source_id": "01GW2G3V0S59R238FAHPDS1R66",
          "created_at": "2021-08-17T13:28:57.801578Z",
          "deduplication_key": "4293868629",
          "description": "CPU on the payments service has exceeded 75 percent for 5 minutes",
          "id": "01GW2G3V0S59R238FAHPDS1R66",
          "resolved_at": "2021-08-17T14:28:57.801578Z",
          "source_url": "https://www.my-alerting-platform.com/alerts/my-alert-123",
          "status": "firing",
          "title": "*errors.withMessage: PG::Error failed to connect",
          "updated_at": "2021-08-17T13:28:57.801578Z"
        }
      ],
      "related_incidents": [
        {
          "external_id": 123,
          "id": "01FDAG4SAP5TYPT98WGR2N7W91",
          "name": "Our database is sad",
          "reference": "INC-123",
          "status_category": "triage",
          "summary": "Our database is really really sad, and we don't know why yet.",
          "visibility": "public"
        }
      ],
      "status": "pending",
      "title": "Database CPU is high",
      "updated_at": "2021-08-17T13:28:57.801578Z"
    }
  ],
  "pagination_meta": {
    "after": "01FCNDV6P870EA6S7TK1DSYDG0",
    "page_size": 25
  }
}

Query Parameters

page_size
integer<int64>
default:25

Number of escalations to return per page

Required range: 1 <= x <= 50
Example:

25

after
string

An escalation's ID. This endpoint will return a list of escalations after this ID in relation to the API response order.

Example:

"01FDAG4SAP5TYPT98WGR2N7W91"

escalation_path
object

Filter on the escalation path for which the escalation was triggered. Accepted operators are 'one_of' and 'not_in'.

Example:
{ "one_of": ["01J479052SSQAA4531ASFPR3BF"] }
status
object

Filter on the status of the escalation. Accepted operators are 'one_of' and 'not_in'.

Example:
{ "one_of": ["triggered"] }
alert
object

Filter on the alert that created an escalation. Accepted operators are 'one_of' and 'not_in'.

Example:
{ "one_of": ["01J479052SSQAA4531ASFPR3BF"] }
created_at
object

Filter on the created_at timestamp of the escalation. Accepted operators are 'gte', 'lte' and 'date_range'.

Example:
{ "gte": ["2021-08-17"] }
updated_at
object

Filter on the updated_at timestamp of the escalation. Accepted operators are 'gte', 'lte' and 'date_range'.

Example:
{ "gte": ["2021-08-17"] }
idempotency_key
object

Filter on the idempotency key of the escalation. This is the key set when creating escalations via the API, and is distinct from alert deduplication keys. Accepted operators are 'is' for exact matches and 'starts_with' for prefix matching.

Example:
{ "starts_with": ["team-a:"] }

Response

200 - application/json

OK response.

escalations
object[]
required
Example:
[
{
"created_at": "2021-08-17T13:28:57.801578Z",
"creator": {
"alert": {
"id": "01GW2G3V0S59R238FAHPDS1R66",
"title": "*errors.withMessage: PG::Error failed to connect"
},
"user": {
"email": "lisa@incident.io",
"id": "01FCNDV6P870EA6S7TK1DSYDG0",
"name": "Lisa Karlin Curtis",
"role": "viewer",
"slack_user_id": "U02AYNF2XJM"
},
"workflow": {
"id": "01FCNDV6P870EA6S7TK1DSYDG0",
"name": "My little workflow"
}
},
"escalation_path_id": "01G0J1EXE7AXZ2C93K61WBPYEH",
"events": [
{
"channels": [
{
"microsoft_teams_channel_id": "abc123",
"microsoft_teams_team_id": "abc123",
"slack_channel_id": "abc123",
"slack_team_id": "abc123"
}
],
"event": "entered_grace_period",
"id": "01G0J1EXE7AXZ2C93K61WBPYEH",
"occurred_at": "2021-08-17T13:28:57.801578Z",
"urgency": "high",
"users": [
{
"email": "lisa@incident.io",
"id": "01FCNDV6P870EA6S7TK1DSYDG0",
"name": "Lisa Karlin Curtis",
"role": "viewer",
"slack_user_id": "U02AYNF2XJM"
}
]
}
],
"id": "01G0J1EXE7AXZ2C93K61WBPYEH",
"priority": { "name": "P1" },
"related_alerts": [
{
"alert_source_id": "01GW2G3V0S59R238FAHPDS1R66",
"created_at": "2021-08-17T13:28:57.801578Z",
"deduplication_key": "4293868629",
"description": "CPU on the payments service has exceeded 75 percent for 5 minutes",
"id": "01GW2G3V0S59R238FAHPDS1R66",
"resolved_at": "2021-08-17T14:28:57.801578Z",
"source_url": "https://www.my-alerting-platform.com/alerts/my-alert-123",
"status": "firing",
"title": "*errors.withMessage: PG::Error failed to connect",
"updated_at": "2021-08-17T13:28:57.801578Z"
}
],
"related_incidents": [
{
"external_id": 123,
"id": "01FDAG4SAP5TYPT98WGR2N7W91",
"name": "Our database is sad",
"reference": "INC-123",
"status_category": "triage",
"summary": "Our database is really really sad, and we don't know why yet.",
"visibility": "public"
}
],
"status": "pending",
"title": "Database CPU is high",
"updated_at": "2021-08-17T13:28:57.801578Z"
}
]
pagination_meta
object
required
Example:
{
"after": "01FCNDV6P870EA6S7TK1DSYDG0",
"page_size": 25
}