---
metadata:
  - name: generator
    content: Diplodoc Platform v5.54.2
alternate:
  - https://yandex.ru/dev/kit/ru/openapi/Alerty/GetAlerts.md
  - href: ru/openapi/Alerty/GetAlerts.md
    type: text/markdown
    title: Markdown version
  - href: ../../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.ru/dev/kit/ru/llms.txt

<div class="openapi">

# Получение списка алертов

<!-- markdownlint-disable-file -->

Возвращает системные алерты магазина. Фильтр по статусу обязателен.

Порядок: сначала критичные алерты, внутри одной важности — новые сверху.

## Request

<div class="openapi__requests">

<div class="openapi__request__wrapper" style="--method: var(--dc-openapi-methods-get);margin-bottom: 12px">

<div class="openapi__request">

GET {.openapi__method}
```text translate=no
https://api.kit.yandex.net/v1/alerts
```

</div>

</div>

</div>

### Query parameters

#|
|| **Name** | **Description** ||
||

_status_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: [AlertStatus](#entity-AlertStatus)[]

Фильтр по статусу алерта.

_Example:_{.json-schema-reset .json-schema-example} ``
{.table-cell}
||
||

_page_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer

Номер страницы.

_Default:_{.json-schema-reset .json-schema-value} `1`

_Min value:_{.json-schema-reset .json-schema-assertion} `1`
{.table-cell}
||
||

_per_page_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer

Количество элементов на странице.

_Default:_{.json-schema-reset .json-schema-value} `25`

_Min value:_{.json-schema-reset .json-schema-assertion} `1`

_Max value:_{.json-schema-reset .json-schema-assertion} `100`
{.table-cell}
||
|#{.json-schema-properties}

<div class="openapi-entity">

### AlertStatus {#entity-AlertStatus}

Статус алерта:
- `ACTIVE` — проблема актуальна.
- `RESOLVED` — алерт закрыт.

**Type**: string

_Enum:_{.json-schema-reset .json-schema-value} `ACTIVE`, `RESOLVED`

</div>

## Responses

<div class="openapi__response__code__200">

## 200 OK

Список алертов.

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "alerts": [
    {
      "id": "certificateExpiry",
      "message": "Срок действия SSL-сертификата истекает через 7 дней",
      "severity": "WARNING",
      "created_at": "2026-01-15T10:30:00Z",
      "resolved_at": "2026-01-16T09:00:00Z"
    }
  ],
  "total_count": 3
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_alerts_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: [Alert](#entity-Alert)[]

Список алертов.

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
[
  {
    "id": "certificateExpiry",
    "message": "Срок действия SSL-сертификата истекает через 7 дней",
    "severity": "WARNING",
    "created_at": "2026-01-15T10:30:00Z",
    "resolved_at": "2026-01-16T09:00:00Z"
  }
]
```

{% endcut %}
{.table-cell}
||
||

_total_count_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer

Общее количество алертов.
{.table-cell}
||
|#{.json-schema-properties}

</div>

<div class="openapi-entity">

### AlertID {#entity-AlertID}

Идентификатор алерта.

**Type**: string

_Min length:_{.json-schema-reset .json-schema-assertion} `1`

_Example:_{.json-schema-reset .json-schema-example} `certificateExpiry`

</div>

<div class="openapi-entity">

### AlertSeverity {#entity-AlertSeverity}

Важность алерта:
- `WARNING` — предупреждение, можно закрыть вручную.
- `CRITICAL` — критичная проблема, закрывается только автоматически.

**Type**: string

_Enum:_{.json-schema-reset .json-schema-value} `WARNING`, `CRITICAL`

</div>

<div class="openapi-entity">

### Alert {#entity-Alert}

#|
|| **Name** | **Description** ||
||

_created_at_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string&lt;date-time&gt;

Дата и время создания алерта.

_Example:_{.json-schema-reset .json-schema-example} `2026-01-15T10:30:00Z`
{.table-cell}
||
||

_id_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: [AlertID](#entity-AlertID)

Идентификатор алерта.

_Min length:_{.json-schema-reset .json-schema-assertion} `1`

_Example:_{.json-schema-reset .json-schema-example} `certificateExpiry`
{.table-cell}
||
||

_message_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Текст алерта.

_Example:_{.json-schema-reset .json-schema-example} `Срок действия SSL-сертификата истекает через 7 дней`
{.table-cell}
||
||

_severity_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: [AlertSeverity](#entity-AlertSeverity)

Важность алерта:
- `WARNING` — предупреждение, можно закрыть вручную.
- `CRITICAL` — критичная проблема, закрывается только автоматически.

_Enum:_{.json-schema-reset .json-schema-value} `WARNING`, `CRITICAL`
{.table-cell}
||
||

_resolved_at_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string&lt;date-time&gt;

Дата и время закрытия алерта. Отсутствует у активных алертов.

_Example:_{.json-schema-reset .json-schema-example} `2026-01-16T09:00:00Z`
{.table-cell}
||
|#{.json-schema-properties}

{% cut "**Example**" %}{.json-schema-example}

```json translate=no
{
  "id": "certificateExpiry",
  "message": "Срок действия SSL-сертификата истекает через 7 дней",
  "severity": "WARNING",
  "created_at": "2026-01-15T10:30:00Z",
  "resolved_at": "2026-01-16T09:00:00Z"
}
```

{% endcut %}

</div>

</div>

<div class="openapi__response__code__400">

## 400 Bad Request

Некорректный запрос.

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "code": "VALIDATION_ERROR",
  "message": "Invalid input",
  "trace_id": "00000000000000000000000000000000"
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_code_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `VALIDATION_ERROR`
{.table-cell}
||
||

_message_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `Invalid input`
{.table-cell}
||
||

_trace_id_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Уникальный идентификатор запроса для отладки.

_Example:_{.json-schema-reset .json-schema-example} `00000000000000000000000000000000`
{.table-cell}
||
|#{.json-schema-properties}

</div>

</div>

<div class="openapi__response__code__401">

## 401 Unauthorized

Не авторизован.

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "code": "VALIDATION_ERROR",
  "message": "Invalid input",
  "trace_id": "00000000000000000000000000000000"
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_code_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `VALIDATION_ERROR`
{.table-cell}
||
||

_message_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `Invalid input`
{.table-cell}
||
||

_trace_id_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Уникальный идентификатор запроса для отладки.

_Example:_{.json-schema-reset .json-schema-example} `00000000000000000000000000000000`
{.table-cell}
||
|#{.json-schema-properties}

</div>

</div>

<div class="openapi__response__code__500">

## 500 Internal Server Error

Внутренняя ошибка сервера.

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "code": "VALIDATION_ERROR",
  "message": "Invalid input",
  "trace_id": "00000000000000000000000000000000"
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_code_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `VALIDATION_ERROR`
{.table-cell}
||
||

_message_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

_Example:_{.json-schema-reset .json-schema-example} `Invalid input`
{.table-cell}
||
||

_trace_id_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Уникальный идентификатор запроса для отладки.

_Example:_{.json-schema-reset .json-schema-example} `00000000000000000000000000000000`
{.table-cell}
||
|#{.json-schema-properties}

</div>

</div>

</div>

[*Deprecated]: No longer supported, please use an alternative and newer version.