# List an incident's escalation options

List who an incident can be escalated to, which can be people, teams, escalation policies, on-call calendars and the whole organization. Send an option's fields to [Escalate an incident](/docs/uptime/api/escalate-an-ongoing-incident/).

[endpoint]
method = "GET"
base_url = "https://incidents.betterstack.com"
path = "/api/v6/incidents/{id}/escalation-options"

[[path_param]]
name = "id"
required = true
type = "string"
description = "The ID of the incident."

[[query_param]]
name = "escalation_type"
type = "string"
description = "Only options of this kind.<br/>Valid values:<br/>`User`: A person.<br/>`Team`: A team.<br/>`Policy`: An escalation policy.<br/>`Schedule`: An on-call calendar.<br/>`Organization`: The whole organization."

[[query_param]]
name = "search"
type = "string"
description = "Only options whose name, e-mail or team name contains this text, ignoring case."

[[query_param]]
name = "team_id"
type = "string"
description = "Team to use, such as `t123`. Get the ID via [List teams](/docs/uptime/api/teams/list/). Required when you can access more than one team."

[[header]]
name = "Authorization"
description = "Bearer `$TOKEN`"
required = true
type = "string"
[/endpoint]

[responses]
[[response]]
status = 200
description = "Returns the escalation options."
body = '''
{
  "data": [
    {
      "type": "escalation_option",
      "attributes": {
        "escalation_type": "User",
        "name": "Jane Smith",
        "user_id": "u123",
        "user_email": "jane@example.com",
        "team_id": "t123",
        "team_name": "Platform",
        "escalation_policy_id": "456",
        "schedule_id": "789",
        "default_schedule": true
      }
    }
  ]
}
'''

[[response]]
status = 401
description = "The API token is missing or invalid."
body = '''
{
  "errors": "Invalid Team API token. How to find your Team API token: https://betterstack.com/docs/uptime/api/getting-started-with-uptime-api/#get-an-incidents-api-token"
}
'''

[[response]]
status = 403
description = "Your role doesn't allow viewing this, or the token can't be used for this API. The incident belongs to another team and was escalated here."
body = '''
{
  "errors": "You can't escalate this incident because it was shared with your team."
}
'''

[[response]]
status = 404
description = "The incident doesn't exist, or the token can't access it."

[[response]]
status = 409
description = "The incident is already resolved."
body = '''
{
  "errors": "Cannot escalate a resolved incident."
}
'''

[[response]]
status = 422
description = "The `escalation_type` parameter isn't one of the listed values, `search` isn't a single string, or another query parameter was sent."
body = '''
{
  "errors": "Sorry, these attributes have unsupported values",
  "allowed_values": {
    "escalation_type": [
      "User",
      "Policy",
      "Team",
      "Schedule",
      "Organization"
    ]
  }
}
'''
[/responses]

[params]
title = "Response attributes"

[[param]]
name = "type"
type = "string"
description = "Always `escalation_option`."

[[param]]
name = "escalation_type"
type = "string"
description = "What the option escalates to. Pass it to escalate as `escalation_type`.<br/>Valid values:<br/>`User`: A person.<br/>`Team`: A team.<br/>`Policy`: An escalation policy.<br/>`Schedule`: An on-call calendar.<br/>`Organization`: The whole organization."

[[param]]
name = "name"
type = "string"
description = "The person's, team's or escalation policy's name. For an on-call calendar, who it alerts, such as `Current on-call person in Primary`."

[[param]]
name = "user_id"
type = "string or null"
description = "The person's user ID, for a User option."

[[param]]
name = "user_email"
type = "string"
description = "The person's e-mail, for a User option."

[[param]]
name = "team_id"
type = "string"
description = "The team's ID, for every option but the Organization."

[[param]]
name = "team_name"
type = "string"
description = "The team's name, for every option but the Organization."

[[param]]
name = "escalation_policy_id"
type = "string"
description = "The escalation policy's ID, for a Policy option."

[[param]]
name = "schedule_id"
type = "string"
description = "The on-call calendar's ID, for a Schedule option."

[[param]]
name = "default_schedule"
type = "boolean"
description = "Whether this is your team's default on-call calendar, for a Schedule option."
[/params]

#### Example cURL

```shell
[label List escalation options]
curl --request GET \
  --url https://incidents.betterstack.com/api/v6/incidents/123456/escalation-options \
  --header "Authorization: Bearer $TOKEN"
```
