curl --request GET \
--url https://api.cloud.corbado.io/v1/observe/alertInstances \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.cloud.corbado.io/v1/observe/alertInstances"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.cloud.corbado.io/v1/observe/alertInstances', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cloud.corbado.io/v1/observe/alertInstances",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.cloud.corbado.io/v1/observe/alertInstances"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.cloud.corbado.io/v1/observe/alertInstances")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloud.corbado.io/v1/observe/alertInstances")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"valueFormat": {
"unit": "percent",
"decimals": 1,
"suffix": "<string>"
},
"vocabulary": {
"value": {
"key": "<string>",
"name": "<string>",
"help": "<string>"
},
"measures": [
{
"key": "<string>",
"name": "<string>",
"help": "<string>",
"detailKey": "<string>",
"reference": true
}
],
"minimum": {
"key": "<string>",
"name": "<string>",
"help": "<string>",
"detailKey": "<string>",
"reference": true
},
"gateMeasure": "<string>",
"settings": [
{
"key": "<string>",
"name": "<string>",
"help": "<string>"
}
]
},
"alertRuleID": "<string>",
"alertRuleName": "<string>",
"ruleType": "relative_flow_count",
"labelSetHash": "<string>",
"hasOverride": true,
"createdMs": 123,
"updatedMs": 123,
"status": "normal",
"labels": {},
"currentValue": 123,
"thresholdValue": 123,
"firstBreachedMs": 123,
"lastEvaluatedMs": 123,
"lastStatusChangeMs": 123,
"lastNotificationMs": 123,
"errorMessage": "<string>",
"severity": "info",
"highWaterSeverity": "info",
"noDataReason": "no_data",
"previousStatus": "normal",
"currentFiringID": "<string>"
}
]{
"error": {
"message": "Validation failed",
"details": [
{
"field": "projectID",
"message": "required"
}
]
}
}List alert instances
Lists Observe alert instances for the project. Paginated; newest-evaluated first unless orderBy says otherwise. Empty until the alerting evaluator runs.
Required API key permission: observe:alerts:read.
curl --request GET \
--url https://api.cloud.corbado.io/v1/observe/alertInstances \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.cloud.corbado.io/v1/observe/alertInstances"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.cloud.corbado.io/v1/observe/alertInstances', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cloud.corbado.io/v1/observe/alertInstances",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.cloud.corbado.io/v1/observe/alertInstances"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.cloud.corbado.io/v1/observe/alertInstances")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloud.corbado.io/v1/observe/alertInstances")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"valueFormat": {
"unit": "percent",
"decimals": 1,
"suffix": "<string>"
},
"vocabulary": {
"value": {
"key": "<string>",
"name": "<string>",
"help": "<string>"
},
"measures": [
{
"key": "<string>",
"name": "<string>",
"help": "<string>",
"detailKey": "<string>",
"reference": true
}
],
"minimum": {
"key": "<string>",
"name": "<string>",
"help": "<string>",
"detailKey": "<string>",
"reference": true
},
"gateMeasure": "<string>",
"settings": [
{
"key": "<string>",
"name": "<string>",
"help": "<string>"
}
]
},
"alertRuleID": "<string>",
"alertRuleName": "<string>",
"ruleType": "relative_flow_count",
"labelSetHash": "<string>",
"hasOverride": true,
"createdMs": 123,
"updatedMs": 123,
"status": "normal",
"labels": {},
"currentValue": 123,
"thresholdValue": 123,
"firstBreachedMs": 123,
"lastEvaluatedMs": 123,
"lastStatusChangeMs": 123,
"lastNotificationMs": 123,
"errorMessage": "<string>",
"severity": "info",
"highWaterSeverity": "info",
"noDataReason": "no_data",
"previousStatus": "normal",
"currentFiringID": "<string>"
}
]{
"error": {
"message": "Validation failed",
"details": [
{
"field": "projectID",
"message": "required"
}
]
}
}Authorizations
Query Parameters
Filter by instance status - comma-separated, and read as "or". A set rather than one value because the panel's status cards are a multi-select: asking for firing and pending separately would page the two answers independently and leave them impossible to merge into one ordered list.
5normal, pending, firing, no_data, error Field to order by. lastEvaluated, the default, is the order the panel's lists open in; the others are the columns those lists can be sorted on. status orders by urgency (normal, no_data, error, pending, firing) and severity by level (info, warning, critical) rather than alphabetically, so descending puts the alert that needs attention first; ties within such a column resolve newest-evaluated first. An instance with no value for the field - never notified, no severity yet - sorts as the lowest.
lastEvaluated, status, severity, currentValue, lastStatusChange, lastNotification Response
Paginated list of alert instances. Paging metadata is returned in X-Corbado-Page, X-Corbado-TotalPages, and X-Corbado-TotalItems response headers.
1000The severity band matched at the last evaluation, absent when none matched. Status says whether the instance is firing, level says how badly, and the two move independently. The level is deliberately not part of labelSetHash - an identity that moved with the level would fork one incident into two.
info, warning, critical The most severe level this firing episode has already notified at, reset when the instance returns to normal. It is why a de-escalation is silent and why a re-escalation below this mark does not mail again: an instance notifies once per level per episode, and only ever as things get worse.
info, warning, critical Why this instance has no value, absent when it has one. The first three come from the rule type - no rows at all, an empty denominator, or a group under the sample gate - and the rest from the framework: the rule produced more groups than maxInstances, its grouping was edited, a dimension it groups by is gone from the project, the series it reads is no longer available for the project, or the evaluation instant is outside the evaluation hours that apply to this instance. outside_evaluation_hours is the one reason that comes with any status, because outside its hours an instance keeps the status it had. Missing, zero and errored stay three distinct things, so a group with no flows expected never reads as a drop to 0%.
no_data, division_by_zero, guard_not_met, too_many_instances, rule_changed, dimension_not_available, series_not_available, outside_evaluation_hours, forecast_unavailable Was this page helpful?