# Get an escalation policy

`GET https://evohub.io/api/v1/escalation-policies/{id}`

Part of the [On-Call API](https://docs-dev.evohub.io/oncall.md) reference · operationId `getEscalationPolicy`.

Returns one policy with its steps.
A policy that belongs to a team is visible only to callers in that team (and
to administrators acting in person); others get 404, as if it did not exist.

**Permission (API-key scope):** `oncall:escalation:read`.

## Authorization

Any one of:

- `bearerAuth` (oncall:escalation:read)
- `apiKeyHeader` (oncall:escalation:read)

Where:

- `bearerAuth`: HTTP Bearer — An EvoHub API key (`evohub_…`) as a bearer token.
- `apiKeyHeader`: API key in the header `X-API-Key` — An EvoHub API key (`evohub_…`).

## Path parameters

- `id` (string, required, example `3f8a0b2c-4d6e-4f8a-b1c3-d5e7f9a1b3c5`): The escalation policy's id.

## Responses

### 200 — The policy.

Content type: `application/json`

Type: `object`

- `data` (EscalationPolicy, required)
  - `id` (string)
  - `org_id` (string)
  - `team_id` (string)
  - `name` (string)
  - `description` (string)
  - `repeat_count` (integer)
  - `repeat_delay_minutes` (integer)
  - `repeat_enabled` (boolean)
  - `ack_timeout_minutes` (integer): Escalate again when an acknowledged alert stays unresolved this long; 0 is off.
  - `ack_timeout_repeat` (integer): How many times that may happen per alert.
  - `ack_timeout_reach` (string, one of ``, `others`, `acker_first`): `others` goes past whoever acknowledged; `acker_first` reminds them once first. Empty means `others`.
  - `steps` (array of EscalationStep)
    - `id` (string)
    - `policy_id` (string)
    - `step_number` (integer)
    - `delay_minutes` (integer): Wait before this step.
    - `target_type` (EscalationTargetType, one of `user`, `schedule`, `webhook`, `slack`)
    - `target_user_id` (string)
    - `target_schedule_id` (string)
    - `target_schedule_layer_id` (string): Page only this layer of the schedule.
    - `target_webhook_url` (string)
    - `target_slack_channel_id` (string): A Slack channel this step also posts to.
    - `target_slack_channel_name` (string)
    - `target_chat_channel_id` (string): A Microsoft Teams channel this step also posts to.
    - `notify_method` (NotifyMethod, one of ``, `push`, `call`, `email`, `sms`)
    - `attempts` (integer): How many times the step notifies before the policy moves on.
    - `attempt_delay_minutes` (integer)
    - `created_at` (string (date-time))
    - `updated_at` (string (date-time))
  - `external_source` (string)
  - `external_id` (string)
  - `created_at` (string (date-time))
  - `updated_at` (string (date-time))
- `success` (boolean, required, value `true`)

### 401 — No API key was sent, or it is unknown, revoked or expired (`UNAUTHORIZED`).

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required): Machine-readable code. Branch on this.
  - `message` (string, required): Human-readable explanation.

### 403 — The key lacks the scope this endpoint needs (`FORBIDDEN`).

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required): Machine-readable code. Branch on this.
  - `message` (string, required): Human-readable explanation.

### 404 — No escalation policy with this id in your organization (`NOT_FOUND`).

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required): Machine-readable code. Branch on this.
  - `message` (string, required): Human-readable explanation.

### 429 — Too many requests (`RATE_LIMITED`). Wait `Retry-After` seconds.

Headers:

- `Retry-After` (integer): Seconds to wait.

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required): Machine-readable code. Branch on this.
  - `message` (string, required): Human-readable explanation.

### 500 — Something went wrong on EvoHub's side (`INTERNAL_ERROR`). Retry later.

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required): Machine-readable code. Branch on this.
  - `message` (string, required): Human-readable explanation.

## Example request

```bash
curl -X GET 'https://evohub.io/api/v1/escalation-policies/3f8a0b2c-4d6e-4f8a-b1c3-d5e7f9a1b3c5' \
  -H 'Authorization: Bearer <TOKEN>'
```
