---
title: dots.v2.monitoring.alerts.get()
description: List Alert Policies
product: Reference
url: https://docs.digitalocean.com/reference/dots/reference/monitoring/monitoring-list-alertpolicy/
last_updated: "2026-11-18"
---

> **For AI agents:** The documentation index is at [https://docs.digitalocean.com/llms.txt](https://docs.digitalocean.com/llms.txt). Markdown versions of pages use the same URL with `index.html.md` in place of the HTML page (for example, append `index.html.md` to the directory path instead of opening the HTML document).

# dots.v2.monitoring.alerts.get()

Generated on 18 Nov 2026 from DoTs version [`v1.25.0`](https://github.com/digitalocean/dots/releases/tag/v1.25.0)

## Usage

```typescript
client.v2.monitoring.alerts.get(requestConfiguration?: RequestConfiguration<AlertsRequestBuilderGetQueryParameters>): Promise<undefined | AlertsGetResponse>
```

## Description

Returns all alert policies that are configured for the given account. To List all alert policies, send a GET request to [`/v2/monitoring/alerts`](https://docs.digitalocean.com/reference/api/reference/monitoring/index.html.md#monitoring_list_alertPolicy).

## Parameters

`perPage` integer optional

Example: `2`

Number of items returned per page

Default: `20`

Min: `1`

Max: `200`

`page` integer optional

Example: `1`

Which 'page' of paginated results to return.

Default: `1`

Min: `1`

## Request Sample

## Show Request Sample

```typescript
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
    createDigitalOceanClient,
    DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";

const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);

const response = await client.v2.monitoring.alerts.get();
```

## Pagination

This method returns paginated results. The response includes a `links.pages` object with URLs for navigating between pages. To retrieve the next page, parse the `next` URL and pass the `page` query parameter:

```typescript
let response = await client.v2.monitoring.alerts.get();
let pages = response?.links?.pages;

while (pages && "next" in pages && typeof pages.next === "string") {
    const page = Number(new URL(pages.next).searchParams.get("page"));
    response = await client.v2.monitoring.alerts.get({
        queryParameters: {
            page,
        },
    });
    pages = response?.links?.pages;
}
```

## Response Example

## Show Response Example

```json
{
  "policies": [
    {
      "alerts": {
        "email": [
          "bob@example.com"
        ],
        "slack": [
          {
            "channel": "Production Alerts",
            "url": "https://hooks.slack.com/services/T1234567/AAAAAAAA/ZZZZZZ\""
          }
        ]
      },
      "compare": "GreaterThan",
      "description": "CPU Alert",
      "enabled": true,
      "entities": [
        192018292
      ],
      "tags": [
        "production_droplets"
      ],
      "type": "v1/insights/droplet/cpu",
      "uuid": "78b3da62-27e5-49ba-ac70-5db0b5935c64",
      "value": 80,
      "window": "5m"
    }
  ],
  "links": {
    "first": "https//api.digitalocean.com/v2/monitoring/alerts?page=1&per_page=10",
    "prev": "https//api.digitalocean.com/v2/monitoring/alerts?page=2&per_page=10",
    "next": "https//api.digitalocean.com/v2/monitoring/alerts?page=4&per_page=10",
    "last": "https//api.digitalocean.com/v2/monitoring/alerts?page=5&per_page=10"
  },
  "meta": {
    "total": 50
  }
}
```

## More Information

See [`/v2/monitoring/alerts`](https://docs.digitalocean.com/reference/api/reference/monitoring/index.html.md#monitoring_list_alertPolicy) in the API reference for additional detail on responses, headers, parameters, and more.