# Get an alert plan — API reference

> Returns one alert plan with its ordered steps and repeat settings.

Source: https://upfour.io/docs/api/escalation-policies/get-an-alert-plan

[Developers](https://upfour.io/docs/api.md)/[Alert plans (escalation policies)](https://upfour.io/docs/api/escalation-policies.md)

Returns one alert plan with its ordered steps and repeat settings.

GET https://app.upfour.io/v1/escalation-policies/{policyID}

scope escalation_policy.read stable returns 200

## Parameters

| Field | Type | Description |
| --- | --- | --- |
| `policyID` required | uuid | path parameter |

## Returns

A successful request returns `200` with application/json.

Response fields 1 top-level fields

| Field | Type | Description |
| --- | --- | --- |
| `data` | EscalationPolicy | |
| EscalationPolicy · 18 fields FieldTypeDescription `created_at` string (date-time) `description` string `id` uuid `monitor_count` integer Monitors currently assigned to the plan. Only filled in the list. `name` string `organization_id` uuid `repeat_count` integer `repeat_interval_seconds` integer Pause between repeats of the plan; fixed at 15 minutes. `steps` EscalationStep[]  · nullable Each item · 7 fields FieldTypeDescription `created_at` string (date-time) `escalation_policy_id` uuid `id` uuid `position` integer Zero-based position within the plan. `targets` string[]  · nullable Alert channel IDs and on-call rotations written as oncall:<schedule ID>. `urgency` string one of`high` `low` `sms` `voice` `wait_seconds` integer Seconds to wait after the previous step. `updated_at` string (date-time) `client_id` uuid | | |

## Errors

Only the errors this operation can return. Every error uses the [same envelope](https://upfour.io/docs/api/responses.md).

| Status | Code | Meaning |
| --- | --- | --- |
| 400 | [bad_request](https://upfour.io/docs/api/errors#code-bad_request) | The request is malformed or fails validation. |
| 404 | [not_found](https://upfour.io/docs/api/errors#code-not_found) | The requested resource does not exist or is outside the caller's scope. |

Every call can also return `unauthorized` (401), `rate_limit_exceeded` (429) or `internal_error` (500 / 502). See [Responses and errors](https://upfour.io/docs/api/responses.md).

[PreviousCreate an alert plan](https://upfour.io/docs/api/escalation-policies/create-an-alert-plan.md) [NextUpdate an alert plan](https://upfour.io/docs/api/escalation-policies/update-an-alert-plan.md)

## Request

### cURL

```bash
curl -s "https://app.upfour.io/v1/escalation-policies/00000000-0000-4000-8000-000000000001" \
  -H "Authorization: Bearer $UP4_API_KEY"
```

### JavaScript

```javascript
const res = await fetch("https://app.upfour.io/v1/escalation-policies/00000000-0000-4000-8000-000000000001", {
  headers: {
    Authorization: `Bearer ${process.env.UP4_API_KEY}`,
  },
});
console.log(res.status, await res.json());
```

### Python

```python
import os
import requests

res = requests.get(
    "https://app.upfour.io/v1/escalation-policies/00000000-0000-4000-8000-000000000001",
    headers={"Authorization": f"Bearer {os.environ['UP4_API_KEY']}"},
)
print(res.status_code, res.json())
```

### Go

```go
package main

import (
	"fmt"
	"io"
	"net/http"
	"os"
)

func main() {
	req, _ := http.NewRequest("GET", "https://app.upfour.io/v1/escalation-policies/00000000-0000-4000-8000-000000000001", nil)
	req.Header.Set("Authorization", "Bearer "+os.Getenv("UP4_API_KEY"))
	res, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer res.Body.Close()
	out, _ := io.ReadAll(res.Body)
	fmt.Println(res.StatusCode, string(out))
}
```

### PHP

```php
<?php
$ch = curl_init("https://app.upfour.io/v1/escalation-policies/00000000-0000-4000-8000-000000000001");
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer " . getenv("UP4_API_KEY"),
    ],
]);
$response = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE), " ", $response, "\n";
curl_close($ch);
```

## Response

### 200

```json
{
  "data": {
    "created_at": "2026-10-27T09:00:00Z",
    "description": "Email the on-call mailbox, repeat once.",
    "id": "00000000-0000-4000-8000-000000000001",
    "monitor_count": 0,
    "name": "Default escalation",
    "organization_id": "00000000-0000-4000-8000-000000000002",
    "repeat_count": 1,
    "repeat_interval_seconds": 900,
    "steps": [
      {
        "created_at": "2026-10-27T09:00:00Z",
        "escalation_policy_id": "00000000-0000-4000-8000-000000000001",
        "id": "00000000-0000-4000-8000-000000000003",
        "position": 0,
        "targets": [
          "00000000-0000-4000-8000-000000000004"
        ],
        "urgency": "high",
        "wait_seconds": 0
      }
    ],
    "updated_at": "2026-10-27T09:00:00Z"
  }
}
```

### 400

```json
{
  "error": {
    "code": "bad_request",
    "message": "The request is malformed or fails validation.",
    "request_id": "req_…"
  }
}
```

### 404

```json
{
  "error": {
    "code": "not_found",
    "message": "The requested resource does not exist or is outside the caller's scope.",
    "request_id": "req_…"
  }
}
```
