ZevSight
Open app

API reference

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. Guide: Alerts and rules.

Base URL: https://eu.zevsight.com. Machine-readable: /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

NameInTypeRequiredDescription
projectquerystringProject public ids, comma-separated, or all (default).
statequerystringOne of open, all. Default open.

Responses

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

Response fields (200):

FieldTypeRequiredDescription
alertsarray of Alertyes
alerts[].idstring (uuid)yesUUIDv7. The incident opened for the alert is linked to it.
alerts[].statestringyesOne of firing, acknowledged, resolved.
alerts[].ruleobjectyes
alerts[].rule.idstring or nullRule public id; null for a manual alert.
alerts[].rule.namestring
alerts[].rule.kindstringOne of check, heartbeat, log, manual.
alerts[].severitystringyesOne of sev1, sev2, sev3, sev4.
alerts[].projectstringyesProject public id.
alerts[].project_idstring (uuid)
alerts[].servicestring
alerts[].environmentstring
alerts[].started_atstring (date-time)yes
alerts[].causestringyes
alerts[].acknowledgedobject or null
alerts[].acknowledged.bystring or null (uuid)Member UUID; null when someone outside the workspace acted through a partner.
alerts[].acknowledged.viastringOne of dashboard, email, api, zevthread.
alerts[].acknowledged.atstring (date-time)
alerts[].acknowledged.actorobjectWho acted through a cross-account partner connection (not a member).
alerts[].acknowledged.actor.namestring
alerts[].acknowledged.actor.zevid_account_idstring
alerts[].acknowledged.actor.workspace_namestring
alerts[].next_step_atstring or null (date-time)When escalation runs next, if it will.
alerts[].targetsarray of ScopeTargetWhere the alert is: services in environments.
alerts[].targets[].environmentstring or nullUp to 64 characters.
alerts[].targets[].servicestring or nullUp to 128 characters.
alerts[].allbooleanA declared alert about the whole project.
alerts[].resolved_atstring (date-time)
alerts[].snoozed_untilstring (date-time)Reminders and escalation pause until then.

Example

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

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

{
  "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.

FieldTypeRequiredDescription
projectstringyesProject public id.
titlestringyesUp to 200 characters.
severitystringOne of sev1, sev2, sev3, sev4. Default sev3.
policy_idstring or nullEscalation policy, as its UUID or public id (esc_…); null = the organization’s default.
servicestringUse targets. Kept as the first target. Deprecated.
environmentstringUse targets. Kept as the first target. Deprecated.
targetsarray of ScopeTargetThe services in environments the incident is about. Empty with all=false and no service/environment is the whole project. 0 to 50 items.
targets[].environmentstring or nullUp to 64 characters.
targets[].servicestring or nullUp to 128 characters.
allbooleanThe whole project, chosen on purpose. Default false.

Responses

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

Response fields (200):

FieldTypeRequiredDescription
alertobjectyes
alert.idstring (uuid)yesUUIDv7. The incident opened for the alert is linked to it.
alert.statestringyesOne of firing, acknowledged, resolved.
alert.ruleobjectyes
alert.rule.idstring or nullRule public id; null for a manual alert.
alert.rule.namestring
alert.rule.kindstringOne of check, heartbeat, log, manual.
alert.severitystringyesOne of sev1, sev2, sev3, sev4.
alert.projectstringyesProject public id.
alert.project_idstring (uuid)
alert.servicestring
alert.environmentstring
alert.started_atstring (date-time)yes
alert.causestringyes
alert.acknowledgedobject or null
alert.acknowledged.bystring or null (uuid)Member UUID; null when someone outside the workspace acted through a partner.
alert.acknowledged.viastringOne of dashboard, email, api, zevthread.
alert.acknowledged.atstring (date-time)
alert.acknowledged.actorobjectWho acted through a cross-account partner connection (not a member).
alert.acknowledged.actor.namestring
alert.acknowledged.actor.zevid_account_idstring
alert.acknowledged.actor.workspace_namestring
alert.next_step_atstring or null (date-time)When escalation runs next, if it will.
alert.targetsarray of ScopeTargetWhere the alert is: services in environments.
alert.targets[].environmentstring or nullUp to 64 characters.
alert.targets[].servicestring or nullUp to 128 characters.
alert.allbooleanA declared alert about the whole project.
alert.resolved_atstring (date-time)
alert.snoozed_untilstring (date-time)Reminders and escalation pause until then.

Example

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):

{
  "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

NameInTypeRequiredDescription
alert_idpathstring (uuid)yes

Responses

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

Response fields (200):

FieldTypeRequiredDescription
alertobjectyes
alert.idstring (uuid)yesUUIDv7. The incident opened for the alert is linked to it.
alert.statestringyesOne of firing, acknowledged, resolved.
alert.ruleobjectyes
alert.rule.idstring or nullRule public id; null for a manual alert.
alert.rule.namestring
alert.rule.kindstringOne of check, heartbeat, log, manual.
alert.severitystringyesOne of sev1, sev2, sev3, sev4.
alert.projectstringyesProject public id.
alert.project_idstring (uuid)
alert.servicestring
alert.environmentstring
alert.started_atstring (date-time)yes
alert.causestringyes
alert.acknowledgedobject or null
alert.acknowledged.bystring or null (uuid)Member UUID; null when someone outside the workspace acted through a partner.
alert.acknowledged.viastringOne of dashboard, email, api, zevthread.
alert.acknowledged.atstring (date-time)
alert.acknowledged.actorobjectWho acted through a cross-account partner connection (not a member).
alert.acknowledged.actor.namestring
alert.acknowledged.actor.zevid_account_idstring
alert.acknowledged.actor.workspace_namestring
alert.next_step_atstring or null (date-time)When escalation runs next, if it will.
alert.targetsarray of ScopeTargetWhere the alert is: services in environments.
alert.targets[].environmentstring or nullUp to 64 characters.
alert.targets[].servicestring or nullUp to 128 characters.
alert.allbooleanA declared alert about the whole project.
alert.resolved_atstring (date-time)
alert.snoozed_untilstring (date-time)Reminders and escalation pause until then.

Example

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):

{
  "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

NameInTypeRequiredDescription
alert_idpathstring (uuid)yes

Responses

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

Response fields (200):

FieldTypeRequiredDescription
alertobjectyes
alert.idstring (uuid)yesUUIDv7. The incident opened for the alert is linked to it.
alert.statestringyesOne of firing, acknowledged, resolved.
alert.ruleobjectyes
alert.rule.idstring or nullRule public id; null for a manual alert.
alert.rule.namestring
alert.rule.kindstringOne of check, heartbeat, log, manual.
alert.severitystringyesOne of sev1, sev2, sev3, sev4.
alert.projectstringyesProject public id.
alert.project_idstring (uuid)
alert.servicestring
alert.environmentstring
alert.started_atstring (date-time)yes
alert.causestringyes
alert.acknowledgedobject or null
alert.acknowledged.bystring or null (uuid)Member UUID; null when someone outside the workspace acted through a partner.
alert.acknowledged.viastringOne of dashboard, email, api, zevthread.
alert.acknowledged.atstring (date-time)
alert.acknowledged.actorobjectWho acted through a cross-account partner connection (not a member).
alert.acknowledged.actor.namestring
alert.acknowledged.actor.zevid_account_idstring
alert.acknowledged.actor.workspace_namestring
alert.next_step_atstring or null (date-time)When escalation runs next, if it will.
alert.targetsarray of ScopeTargetWhere the alert is: services in environments.
alert.targets[].environmentstring or nullUp to 64 characters.
alert.targets[].servicestring or nullUp to 128 characters.
alert.allbooleanA declared alert about the whole project.
alert.resolved_atstring (date-time)
alert.snoozed_untilstring (date-time)Reminders and escalation pause until then.

Example

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):

{
  "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

NameInTypeRequiredDescription
alert_idpathstring (uuid)yes

Request body

Content type: application/json.

FieldTypeRequiredDescription
minutesintegeryes5 to 1440.

Responses

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

Response fields (200):

FieldTypeRequiredDescription
alertobjectyes
alert.idstring (uuid)yesUUIDv7. The incident opened for the alert is linked to it.
alert.statestringyesOne of firing, acknowledged, resolved.
alert.ruleobjectyes
alert.rule.idstring or nullRule public id; null for a manual alert.
alert.rule.namestring
alert.rule.kindstringOne of check, heartbeat, log, manual.
alert.severitystringyesOne of sev1, sev2, sev3, sev4.
alert.projectstringyesProject public id.
alert.project_idstring (uuid)
alert.servicestring
alert.environmentstring
alert.started_atstring (date-time)yes
alert.causestringyes
alert.acknowledgedobject or null
alert.acknowledged.bystring or null (uuid)Member UUID; null when someone outside the workspace acted through a partner.
alert.acknowledged.viastringOne of dashboard, email, api, zevthread.
alert.acknowledged.atstring (date-time)
alert.acknowledged.actorobjectWho acted through a cross-account partner connection (not a member).
alert.acknowledged.actor.namestring
alert.acknowledged.actor.zevid_account_idstring
alert.acknowledged.actor.workspace_namestring
alert.next_step_atstring or null (date-time)When escalation runs next, if it will.
alert.targetsarray of ScopeTargetWhere the alert is: services in environments.
alert.targets[].environmentstring or nullUp to 64 characters.
alert.targets[].servicestring or nullUp to 128 characters.
alert.allbooleanA declared alert about the whole project.
alert.resolved_atstring (date-time)
alert.snoozed_untilstring (date-time)Reminders and escalation pause until then.

Example

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):

{
  "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"
  }
}

Built 29 November 2026 · View as Markdown