Skip to main content
POST
/
alerts
/
{identifier}
/
resolve
/
Resolve Alert
curl --request POST \
  --url https://api.warrn.io/alerts/{identifier}/resolve/ \
  --header 'Authorization: Bearer <token>'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "description": "<string>",
  "source": "integration",
  "service_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "service_name": "<string>",
  "team_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "team_name": "<string>",
  "tags": [
    "<string>"
  ],
  "metadata": {},
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "acknowledged_at": "2023-11-07T05:31:56Z",
  "resolved_at": "2023-11-07T05:31:56Z",
  "alert_alias": "<string>",
  "occurrence_count": 123
}
Mark an alert as resolved. Sets the status to resolved and records the resolution timestamp.

Resolve by alias

If you set an alert_alias when creating the alert, you can resolve it by that alias instead of looking up its UUID. Pass identifierType=alias:
# 1. Alert fires - create with an alias you control
curl -X POST "https://api.warrn.io/alerts/" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer warrn_xxx" \
  -d '{
    "name": "High CPU on web-01",
    "description": "CPU > 90% for 5m",
    "severity": "high",
    "team_id": "f1e2d3c4-b5a6-7890-1234-567890abcdef",
    "alert_alias": "prod_system_web-01_cpu_usage_Infra"
  }'

# 2. Issue resolved - resolve by that same alias, no need to track the UUID
curl -X POST "https://api.warrn.io/alerts/prod_system_web-01_cpu_usage_Infra/resolve/?identifierType=alias" \
  -H "Authorization: Bearer warrn_xxx"
Only matches alerts currently open or acknowledged. If the alias has no live alert, the endpoint returns 404 No open alert found with alias: ... rather than silently no-op’ing on a historical resolved row.

Authorizations

Authorization
string
header
required

Bearer token using your Warrn API key.

Path Parameters

identifier
string
required

Alert UUID, or the alert_alias when identifierType=alias.

Query Parameters

identifierType
enum<string>
default:id
Available options:
id,
alias

Response

Resolved

id
string<uuid>
name
string
description
string
severity
enum<string>
Available options:
low,
medium,
high,
critical
status
enum<string>
Available options:
open,
acknowledged,
resolved
source
string
Example:

"integration"

service_id
string<uuid> | null
service_name
string | null
team_id
string<uuid> | null
team_name
string | null
tags
string[]
metadata
object
created_at
string<date-time>
updated_at
string<date-time>
acknowledged_at
string<date-time> | null
resolved_at
string<date-time> | null
alert_alias
string | null
occurrence_count
integer