# List monitors that need attention

`GET https://evohub.io/api/v1/monitors/attention`

Part of the [Uptime API](https://docs-dev.evohub.io/uptime.md) reference · operationId `listMonitorsNeedingAttention`.

The caller's active monitors that are down or degraded: down ones
first, then by how long they have been in that state, oldest first.
`since` is when the monitor went down (from its open outage) or when
its slow alert was raised.

`incident_id` and `cause` are filled for a down monitor with an open
outage, and only when the caller also holds `uptime:incident:read`;
otherwise they are `null`.

Requires the `uptime:monitor:read` scope.

## Authorization

Any one of:

- `bearerKey`
- `headerKey`

Where:

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

## Query parameters

- `team_id` (string, example `none`): Narrow to one team's monitors, or `none` for only the organization-wide ones. It never widens what the caller can see.
- `limit` (integer, default `20`, min 1, max 100): How many monitors to return. Values above 100 are read as 100.

## Responses

### 200 — The monitors needing attention; an empty list when all is well.

Content type: `application/json`

Type: `object`

- `data` (array of AttentionMonitor)
  - `id` (string, required)
  - `name` (string, required)
  - `last_status` (string, required, one of `down`, `degraded`)
  - `since` (string (date-time) | null, required)
  - `incident_id` (string | null, required)
  - `cause` (string | null, required)

### 400 — `limit` is not a positive integer (`INVALID_LIMIT`).

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required, example `MONITOR_NOT_FOUND`)
  - `message` (string, required, example `monitor not found`)
  - `request_id` (string)

### 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, example `MONITOR_NOT_FOUND`)
  - `message` (string, required, example `monitor not found`)
  - `request_id` (string)

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

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required, example `MONITOR_NOT_FOUND`)
  - `message` (string, required, example `monitor not found`)
  - `request_id` (string)

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

Headers:

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

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required, example `MONITOR_NOT_FOUND`)
  - `message` (string, required, example `monitor not found`)
  - `request_id` (string)

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

Content type: `application/json`

Type: `Error`

- `error` (object, required)
  - `code` (string, required, example `MONITOR_NOT_FOUND`)
  - `message` (string, required, example `monitor not found`)
  - `request_id` (string)

## Example request

```bash
curl -X GET 'https://evohub.io/api/v1/monitors/attention' \
  -H 'Authorization: Bearer <TOKEN>'
```
