---
title: Alerts API reference
description: Reference for listing alerts and acknowledging, resolving, snoozing and declaring them, generated from the ZevSight OpenAPI file.
url: https://docs.zevsight.com/api/reference/alerts
---

# Alerts API reference

> Reference for listing alerts and acknowledging, resolving, snoozing and declaring them, generated from the ZevSight OpenAPI file.

Open alerts, acknowledge, resolve and declare. These routes answer 503 with Retry-After while the alerts service is unavailable; nothing changes, so retry.

Listing needs `read`; acknowledge, resolve and snooze need an API key with the `respond` permission. Notes on alerts and incidents are on a separate host: see [Notes](/api/notes). Guide: [Alerts and rules](/respond/alerts).

Base URL: `https://eu.zevsight.com`. Machine-readable: [/openapi.yaml](/openapi.yaml).

## List alerts

`GET https://eu.zevsight.com/v1/alerts`

Open alerts (or also each rule's last resolved alert) in the caller's readable projects.

A key limited to targets sees only alerts about one of its service environments (rule, check or heartbeat source, or a manual alert's targets); an alert about a whole project is seen by any target in that project. The same rule applies to acknowledge, resolve and snooze, which answer `404` outside it.

**Authentication:** `Authorization: Bearer <token>` with dashboard session, or API key (`zsr_…`), or legacy agent key (`zsa_…`).

### Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `project` | query | string |  | Project public ids, comma-separated, or `all` (default). |
| `state` | query | string |  | One of `open`, `all`. Default `open`. |

### Responses

| Status | Description |
|---|---|
| `200` | Newest first. |
| `400` | The request, or every event in it, is invalid. |
| `401` | Missing, unknown, expired or wrong-kind credential. |
| `404` | No such object, or not visible to this credential (never 403 across tenants). |

Response fields (`200`):

| Field | Type | Required | Description |
|---|---|---|---|
| `alerts` | array of Alert | yes |  |
| `alerts[].id` | string (uuid) | yes | UUIDv7. The incident opened for the alert is linked to it. |
| `alerts[].state` | string | yes | One of `firing`, `acknowledged`, `resolved`. |
| `alerts[].rule` | object | yes |  |
| `alerts[].rule.id` | string or null |  | Rule public id; null for a manual alert. |
| `alerts[].rule.name` | string |  |  |
| `alerts[].rule.kind` | string |  | One of `check`, `heartbeat`, `log`, `manual`. |
| `alerts[].severity` | string | yes | One of `sev1`, `sev2`, `sev3`, `sev4`. |
| `alerts[].project` | string | yes | Project public id. |
| `alerts[].project_id` | string (uuid) |  |  |
| `alerts[].service` | string |  |  |
| `alerts[].environment` | string |  |  |
| `alerts[].started_at` | string (date-time) | yes |  |
| `alerts[].cause` | string | yes |  |
| `alerts[].acknowledged` | object or null |  |  |
| `alerts[].acknowledged.by` | string or null (uuid) |  | Member UUID; null when someone outside the workspace acted through a partner. |
| `alerts[].acknowledged.via` | string |  | One of `dashboard`, `email`, `api`, `zevthread`. |
| `alerts[].acknowledged.at` | string (date-time) |  |  |
| `alerts[].acknowledged.actor` | object |  | Who acted through a cross-account partner connection (not a member). |
| `alerts[].acknowledged.actor.name` | string |  |  |
| `alerts[].acknowledged.actor.zevid_account_id` | string |  |  |
| `alerts[].acknowledged.actor.workspace_name` | string |  |  |
| `alerts[].next_step_at` | string or null (date-time) |  | When escalation runs next, if it will. |
| `alerts[].targets` | array of ScopeTarget |  | Where the alert is: services in environments. |
| `alerts[].targets[].environment` | string or null |  | Up to 64 characters. |
| `alerts[].targets[].service` | string or null |  | Up to 128 characters. |
| `alerts[].all` | boolean |  | A declared alert about the whole project. |
| `alerts[].resolved_at` | string (date-time) |  |  |
| `alerts[].snoozed_until` | string (date-time) |  | Reminders and escalation pause until then. |

### Example

```bash
curl https://eu.zevsight.com/v1/alerts \
  -H "Authorization: Bearer <API_KEY>"
```

Example response (built from the schema; values are illustrative):

```json
{
  "alerts": [
    {
      "id": "01937a4e-8c2f-7d3a-9b1e-4f6a2c8d0e5b",
      "state": "firing",
      "rule": {
        "id": null,
        "name": "Checkout API",
        "kind": "check"
      },
      "severity": "sev1",
      "project": "prj_8KdT3mQ2wXr7nB4cVhY9p",
      "project_id": "01937a4e-8c2f-7d3a-9b1e-4f6a2c8d0e5b",
      "service": "api",
      "environment": "production",
      "started_at": "2026-11-29T09:41:07.512Z",
      "cause": "status 503 · 2 of 3 regions",
      "acknowledged": null,
      "next_step_at": null,
      "targets": [
        {
          "environment": "production",
          "service": "api"
        }
      ],
      "all": false,
      "resolved_at": "2026-11-29T09:41:07.512Z",
      "snoozed_until": "2026-11-29T09:41:07.512Z"
    }
  ]
}
```

## Declare an alert

`POST https://eu.zevsight.com/v1/alerts`

Declare a manual alert, which runs an escalation policy like any other.

ZevSight opens an incident for it. Members, admins and owners can declare from the dashboard. API keys need the `respond` permission; a `read` key gets 403.

**Authentication:** `Authorization: Bearer <token>` with dashboard session, or API key (`zsr_…`), or legacy agent key (`zsa_…`).

### Request body

Content type: `application/json`.

| Field | Type | Required | Description |
|---|---|---|---|
| `project` | string | yes | Project public id. |
| `title` | string | yes | Up to 200 characters. |
| `severity` | string |  | One of `sev1`, `sev2`, `sev3`, `sev4`. Default `sev3`. |
| `policy_id` | string or null |  | Escalation policy, as its UUID or public id (esc_…); null = the organization's default. |
| `service` | string |  | Use targets. Kept as the first target. Deprecated. |
| `environment` | string |  | Use targets. Kept as the first target. Deprecated. |
| `targets` | array of ScopeTarget |  | The services in environments the incident is about. Empty with all=false and no service/environment is the whole project. 0 to 50 items. |
| `targets[].environment` | string or null |  | Up to 64 characters. |
| `targets[].service` | string or null |  | Up to 128 characters. |
| `all` | boolean |  | The whole project, chosen on purpose. Default `false`. |

### Responses

| Status | Description |
|---|---|
| `200` | The alert after the change. |
| `400` | The request, or every event in it, is invalid. |
| `401` | Missing, unknown, expired or wrong-kind credential. |
| `403` | Viewers, and API keys without the `respond` permission, cannot change anything. |
| `404` | No such object, or not visible to this credential (never 403 across tenants). |
| `503` | The alerts service is not answering. Nothing changed; retry. Headers: `Retry-After`. |

Response fields (`200`):

| Field | Type | Required | Description |
|---|---|---|---|
| `alert` | object | yes |  |
| `alert.id` | string (uuid) | yes | UUIDv7. The incident opened for the alert is linked to it. |
| `alert.state` | string | yes | One of `firing`, `acknowledged`, `resolved`. |
| `alert.rule` | object | yes |  |
| `alert.rule.id` | string or null |  | Rule public id; null for a manual alert. |
| `alert.rule.name` | string |  |  |
| `alert.rule.kind` | string |  | One of `check`, `heartbeat`, `log`, `manual`. |
| `alert.severity` | string | yes | One of `sev1`, `sev2`, `sev3`, `sev4`. |
| `alert.project` | string | yes | Project public id. |
| `alert.project_id` | string (uuid) |  |  |
| `alert.service` | string |  |  |
| `alert.environment` | string |  |  |
| `alert.started_at` | string (date-time) | yes |  |
| `alert.cause` | string | yes |  |
| `alert.acknowledged` | object or null |  |  |
| `alert.acknowledged.by` | string or null (uuid) |  | Member UUID; null when someone outside the workspace acted through a partner. |
| `alert.acknowledged.via` | string |  | One of `dashboard`, `email`, `api`, `zevthread`. |
| `alert.acknowledged.at` | string (date-time) |  |  |
| `alert.acknowledged.actor` | object |  | Who acted through a cross-account partner connection (not a member). |
| `alert.acknowledged.actor.name` | string |  |  |
| `alert.acknowledged.actor.zevid_account_id` | string |  |  |
| `alert.acknowledged.actor.workspace_name` | string |  |  |
| `alert.next_step_at` | string or null (date-time) |  | When escalation runs next, if it will. |
| `alert.targets` | array of ScopeTarget |  | Where the alert is: services in environments. |
| `alert.targets[].environment` | string or null |  | Up to 64 characters. |
| `alert.targets[].service` | string or null |  | Up to 128 characters. |
| `alert.all` | boolean |  | A declared alert about the whole project. |
| `alert.resolved_at` | string (date-time) |  |  |
| `alert.snoozed_until` | string (date-time) |  | Reminders and escalation pause until then. |

### Example

```bash
curl -X POST https://eu.zevsight.com/v1/alerts \
  -H "Authorization: Bearer <API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{"project":"prj_8KdT3mQ2wXr7nB4cVhY9p","title":"Checkout errors after deploy","severity":"sev2","targets":[{"service":"checkout","environment":"production"}]}'
```

Example response (built from the schema; values are illustrative):

```json
{
  "alert": {
    "id": "01937a4e-8c2f-7d3a-9b1e-4f6a2c8d0e5b",
    "state": "firing",
    "rule": {
      "id": null,
      "name": "Checkout API",
      "kind": "check"
    },
    "severity": "sev1",
    "project": "prj_8KdT3mQ2wXr7nB4cVhY9p",
    "project_id": "01937a4e-8c2f-7d3a-9b1e-4f6a2c8d0e5b",
    "service": "api",
    "environment": "production",
    "started_at": "2026-11-29T09:41:07.512Z",
    "cause": "status 503 · 2 of 3 regions",
    "acknowledged": null,
    "next_step_at": null,
    "targets": [
      {
        "environment": "production",
        "service": "api"
      }
    ],
    "all": false,
    "resolved_at": "2026-11-29T09:41:07.512Z",
    "snoozed_until": "2026-11-29T09:41:07.512Z"
  }
}
```

## Acknowledge an alert

`POST https://eu.zevsight.com/v1/alerts/{alert_id}/acknowledge`

Stop escalation for an open alert. Idempotent.

API keys need the `respond` permission; a `read` key gets 403.

**Authentication:** `Authorization: Bearer <token>` with dashboard session, or API key (`zsr_…`), or legacy agent key (`zsa_…`).

### Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `alert_id` | path | string (uuid) | yes |  |

### Responses

| Status | Description |
|---|---|
| `200` | The alert after the change. |
| `401` | Missing, unknown, expired or wrong-kind credential. |
| `403` | Viewers, and API keys without the `respond` permission, cannot change anything. |
| `404` | No such object, or not visible to this credential (never 403 across tenants). |
| `409` | The alert is already resolved (`CONFLICT`). |
| `503` | The alerts service is not answering. Nothing changed; retry. Headers: `Retry-After`. |

Response fields (`200`):

| Field | Type | Required | Description |
|---|---|---|---|
| `alert` | object | yes |  |
| `alert.id` | string (uuid) | yes | UUIDv7. The incident opened for the alert is linked to it. |
| `alert.state` | string | yes | One of `firing`, `acknowledged`, `resolved`. |
| `alert.rule` | object | yes |  |
| `alert.rule.id` | string or null |  | Rule public id; null for a manual alert. |
| `alert.rule.name` | string |  |  |
| `alert.rule.kind` | string |  | One of `check`, `heartbeat`, `log`, `manual`. |
| `alert.severity` | string | yes | One of `sev1`, `sev2`, `sev3`, `sev4`. |
| `alert.project` | string | yes | Project public id. |
| `alert.project_id` | string (uuid) |  |  |
| `alert.service` | string |  |  |
| `alert.environment` | string |  |  |
| `alert.started_at` | string (date-time) | yes |  |
| `alert.cause` | string | yes |  |
| `alert.acknowledged` | object or null |  |  |
| `alert.acknowledged.by` | string or null (uuid) |  | Member UUID; null when someone outside the workspace acted through a partner. |
| `alert.acknowledged.via` | string |  | One of `dashboard`, `email`, `api`, `zevthread`. |
| `alert.acknowledged.at` | string (date-time) |  |  |
| `alert.acknowledged.actor` | object |  | Who acted through a cross-account partner connection (not a member). |
| `alert.acknowledged.actor.name` | string |  |  |
| `alert.acknowledged.actor.zevid_account_id` | string |  |  |
| `alert.acknowledged.actor.workspace_name` | string |  |  |
| `alert.next_step_at` | string or null (date-time) |  | When escalation runs next, if it will. |
| `alert.targets` | array of ScopeTarget |  | Where the alert is: services in environments. |
| `alert.targets[].environment` | string or null |  | Up to 64 characters. |
| `alert.targets[].service` | string or null |  | Up to 128 characters. |
| `alert.all` | boolean |  | A declared alert about the whole project. |
| `alert.resolved_at` | string (date-time) |  |  |
| `alert.snoozed_until` | string (date-time) |  | Reminders and escalation pause until then. |

### Example

```bash
curl -X POST https://eu.zevsight.com/v1/alerts/<ALERT_ID>/acknowledge \
  -H "Authorization: Bearer <API_KEY>"
```

Example response (built from the schema; values are illustrative):

```json
{
  "alert": {
    "id": "01937a4e-8c2f-7d3a-9b1e-4f6a2c8d0e5b",
    "state": "firing",
    "rule": {
      "id": null,
      "name": "Checkout API",
      "kind": "check"
    },
    "severity": "sev1",
    "project": "prj_8KdT3mQ2wXr7nB4cVhY9p",
    "project_id": "01937a4e-8c2f-7d3a-9b1e-4f6a2c8d0e5b",
    "service": "api",
    "environment": "production",
    "started_at": "2026-11-29T09:41:07.512Z",
    "cause": "status 503 · 2 of 3 regions",
    "acknowledged": null,
    "next_step_at": null,
    "targets": [
      {
        "environment": "production",
        "service": "api"
      }
    ],
    "all": false,
    "resolved_at": "2026-11-29T09:41:07.512Z",
    "snoozed_until": "2026-11-29T09:41:07.512Z"
  }
}
```

## Resolve an alert

`POST https://eu.zevsight.com/v1/alerts/{alert_id}/resolve`

Resolve an open alert now.

A rule whose condition still holds opens again after its `for_s` (within the cooldown, as the same alert). API keys need the `respond` permission; a `read` key gets 403.

**Authentication:** `Authorization: Bearer <token>` with dashboard session, or API key (`zsr_…`), or legacy agent key (`zsa_…`).

### Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `alert_id` | path | string (uuid) | yes |  |

### Responses

| Status | Description |
|---|---|
| `200` | The alert after the change. |
| `401` | Missing, unknown, expired or wrong-kind credential. |
| `403` | Viewers, and API keys without the `respond` permission, cannot change anything. |
| `404` | No such object, or not visible to this credential (never 403 across tenants). |
| `409` | The alert is already resolved (`CONFLICT`). |
| `503` | The alerts service is not answering. Nothing changed; retry. Headers: `Retry-After`. |

Response fields (`200`):

| Field | Type | Required | Description |
|---|---|---|---|
| `alert` | object | yes |  |
| `alert.id` | string (uuid) | yes | UUIDv7. The incident opened for the alert is linked to it. |
| `alert.state` | string | yes | One of `firing`, `acknowledged`, `resolved`. |
| `alert.rule` | object | yes |  |
| `alert.rule.id` | string or null |  | Rule public id; null for a manual alert. |
| `alert.rule.name` | string |  |  |
| `alert.rule.kind` | string |  | One of `check`, `heartbeat`, `log`, `manual`. |
| `alert.severity` | string | yes | One of `sev1`, `sev2`, `sev3`, `sev4`. |
| `alert.project` | string | yes | Project public id. |
| `alert.project_id` | string (uuid) |  |  |
| `alert.service` | string |  |  |
| `alert.environment` | string |  |  |
| `alert.started_at` | string (date-time) | yes |  |
| `alert.cause` | string | yes |  |
| `alert.acknowledged` | object or null |  |  |
| `alert.acknowledged.by` | string or null (uuid) |  | Member UUID; null when someone outside the workspace acted through a partner. |
| `alert.acknowledged.via` | string |  | One of `dashboard`, `email`, `api`, `zevthread`. |
| `alert.acknowledged.at` | string (date-time) |  |  |
| `alert.acknowledged.actor` | object |  | Who acted through a cross-account partner connection (not a member). |
| `alert.acknowledged.actor.name` | string |  |  |
| `alert.acknowledged.actor.zevid_account_id` | string |  |  |
| `alert.acknowledged.actor.workspace_name` | string |  |  |
| `alert.next_step_at` | string or null (date-time) |  | When escalation runs next, if it will. |
| `alert.targets` | array of ScopeTarget |  | Where the alert is: services in environments. |
| `alert.targets[].environment` | string or null |  | Up to 64 characters. |
| `alert.targets[].service` | string or null |  | Up to 128 characters. |
| `alert.all` | boolean |  | A declared alert about the whole project. |
| `alert.resolved_at` | string (date-time) |  |  |
| `alert.snoozed_until` | string (date-time) |  | Reminders and escalation pause until then. |

### Example

```bash
curl -X POST https://eu.zevsight.com/v1/alerts/<ALERT_ID>/resolve \
  -H "Authorization: Bearer <API_KEY>"
```

Example response (built from the schema; values are illustrative):

```json
{
  "alert": {
    "id": "01937a4e-8c2f-7d3a-9b1e-4f6a2c8d0e5b",
    "state": "firing",
    "rule": {
      "id": null,
      "name": "Checkout API",
      "kind": "check"
    },
    "severity": "sev1",
    "project": "prj_8KdT3mQ2wXr7nB4cVhY9p",
    "project_id": "01937a4e-8c2f-7d3a-9b1e-4f6a2c8d0e5b",
    "service": "api",
    "environment": "production",
    "started_at": "2026-11-29T09:41:07.512Z",
    "cause": "status 503 · 2 of 3 regions",
    "acknowledged": null,
    "next_step_at": null,
    "targets": [
      {
        "environment": "production",
        "service": "api"
      }
    ],
    "all": false,
    "resolved_at": "2026-11-29T09:41:07.512Z",
    "snoozed_until": "2026-11-29T09:41:07.512Z"
  }
}
```

## Snooze an alert

`POST https://eu.zevsight.com/v1/alerts/{alert_id}/snooze`

Pause reminders and escalation for an open alert.

The alert stays open; escalation steps that fall due meanwhile run when the snooze ends. Snoozing again replaces the end time. API keys need the `respond` permission; a `read` key gets 403.

**Authentication:** `Authorization: Bearer <token>` with dashboard session, or API key (`zsr_…`), or legacy agent key (`zsa_…`).

### Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `alert_id` | path | string (uuid) | yes |  |

### Request body

Content type: `application/json`.

| Field | Type | Required | Description |
|---|---|---|---|
| `minutes` | integer | yes | 5 to 1440. |

### Responses

| Status | Description |
|---|---|
| `200` | The alert after the change. |
| `400` | The request, or every event in it, is invalid. |
| `401` | Missing, unknown, expired or wrong-kind credential. |
| `403` | Viewers, and API keys without the `respond` permission, cannot change anything. |
| `404` | No such object, or not visible to this credential (never 403 across tenants). |
| `409` | The alert is already resolved (`CONFLICT`). |
| `503` | The alerts service is not answering. Nothing changed; retry. Headers: `Retry-After`. |

Response fields (`200`):

| Field | Type | Required | Description |
|---|---|---|---|
| `alert` | object | yes |  |
| `alert.id` | string (uuid) | yes | UUIDv7. The incident opened for the alert is linked to it. |
| `alert.state` | string | yes | One of `firing`, `acknowledged`, `resolved`. |
| `alert.rule` | object | yes |  |
| `alert.rule.id` | string or null |  | Rule public id; null for a manual alert. |
| `alert.rule.name` | string |  |  |
| `alert.rule.kind` | string |  | One of `check`, `heartbeat`, `log`, `manual`. |
| `alert.severity` | string | yes | One of `sev1`, `sev2`, `sev3`, `sev4`. |
| `alert.project` | string | yes | Project public id. |
| `alert.project_id` | string (uuid) |  |  |
| `alert.service` | string |  |  |
| `alert.environment` | string |  |  |
| `alert.started_at` | string (date-time) | yes |  |
| `alert.cause` | string | yes |  |
| `alert.acknowledged` | object or null |  |  |
| `alert.acknowledged.by` | string or null (uuid) |  | Member UUID; null when someone outside the workspace acted through a partner. |
| `alert.acknowledged.via` | string |  | One of `dashboard`, `email`, `api`, `zevthread`. |
| `alert.acknowledged.at` | string (date-time) |  |  |
| `alert.acknowledged.actor` | object |  | Who acted through a cross-account partner connection (not a member). |
| `alert.acknowledged.actor.name` | string |  |  |
| `alert.acknowledged.actor.zevid_account_id` | string |  |  |
| `alert.acknowledged.actor.workspace_name` | string |  |  |
| `alert.next_step_at` | string or null (date-time) |  | When escalation runs next, if it will. |
| `alert.targets` | array of ScopeTarget |  | Where the alert is: services in environments. |
| `alert.targets[].environment` | string or null |  | Up to 64 characters. |
| `alert.targets[].service` | string or null |  | Up to 128 characters. |
| `alert.all` | boolean |  | A declared alert about the whole project. |
| `alert.resolved_at` | string (date-time) |  |  |
| `alert.snoozed_until` | string (date-time) |  | Reminders and escalation pause until then. |

### Example

```bash
curl -X POST https://eu.zevsight.com/v1/alerts/<ALERT_ID>/snooze \
  -H "Authorization: Bearer <API_KEY>" \
  -H "Content-Type: application/json" \
  -d '{"minutes":30}'
```

Example response (built from the schema; values are illustrative):

```json
{
  "alert": {
    "id": "01937a4e-8c2f-7d3a-9b1e-4f6a2c8d0e5b",
    "state": "firing",
    "rule": {
      "id": null,
      "name": "Checkout API",
      "kind": "check"
    },
    "severity": "sev1",
    "project": "prj_8KdT3mQ2wXr7nB4cVhY9p",
    "project_id": "01937a4e-8c2f-7d3a-9b1e-4f6a2c8d0e5b",
    "service": "api",
    "environment": "production",
    "started_at": "2026-11-29T09:41:07.512Z",
    "cause": "status 503 · 2 of 3 regions",
    "acknowledged": null,
    "next_step_at": null,
    "targets": [
      {
        "environment": "production",
        "service": "api"
      }
    ],
    "all": false,
    "resolved_at": "2026-11-29T09:41:07.512Z",
    "snoozed_until": "2026-11-29T09:41:07.512Z"
  }
}
```
