# Get an escalation policy

`GET /api/v1/escalation-policies/{policyId}`

One escalation policy with its levels and who uses it.

Sign-in: a dashboard session, an API token with `alerts:read` or the `monitorly` CLI's sign-in with `alerts:read`.

Section: Escalation policies. Operation id in openapi.json: `get_escalation_policy`.

## Parameters

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `policyId` | path | yes | string (uuid) | The escalation policy's id. |

## Responses

Errors are `application/problem+json` (`Problem`); branch on `type`.

### 200

The policy.

`application/json`: EscalationPolicyView

| Field | Type | Required | Description |
|---|---|---|---|
| `checkCount` | integer | yes | Checks that use it instead of their project's policy. |
| `createdAt` | string | yes |  |
| `id` | string (uuid) | yes |  |
| `levels` | array of LevelView | yes |  |
| `name` | string | yes |  |
| `projects` | array of PolicyProject | yes | Projects that use the policy by default (those the caller sees). |
| `repeatAfterMins` | integer | yes |  |
| `repeatCount` | integer | yes |  |
| `updatedAt` | string | yes |  |
| `workspaceId` | string (uuid) | yes |  |

### 400

Bad Request.

- `auth.credentials_conflict`: the request carries both a session cookie and a token

### 401

Unauthorized.

- `auth.unauthenticated`, `auth.session_expired`: no session, or it ended
- `token.invalid`: the token is malformed, unknown, revoked or expired, or its creator left the workspace

### 403

Forbidden.

- `auth.forbidden`: your role is too low for this
- `token.scope_missing`: the token lacks the scope this needs; `detail` names it

### 404

Not Found.

- `request.not_found`: it does not exist, or you cannot see it

### 429

Too Many Requests.

- `token.rate_limited`: more than 10 requests a second with this token

Schemas named above are listed with their fields in [the schema list](https://docs.monitorly.cloud/api/reference/schemas.md).
