List monitors
curl --request GET \
--url https://api.coval.dev/v1/monitors \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.coval.dev/v1/monitors"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.coval.dev/v1/monitors', 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.coval.dev/v1/monitors",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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.coval.dev/v1/monitors"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.coval.dev/v1/monitors")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.coval.dev/v1/monitors")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"monitors": [
{
"ulid": "01HZ0EXAMPLE00000000000000",
"name": "Latency SLA Monitor",
"description": "Alert when average response latency exceeds 500ms",
"status": "ACTIVE",
"evaluation_type": "ON_RUN_COMPLETE",
"scope": "MONITORING",
"match_mode": "ALL",
"cooldown_seconds": 3600,
"trigger_count": 5,
"last_triggered_at": "2026-03-01T12:00:00Z",
"conditions": [
{
"ulid": "01HZCOND100000000000000000",
"metric_id": "01HZMETRIC0000000000000000",
"aggregation": "RUN_AVERAGE",
"operator": "GT",
"threshold_float": 500
}
],
"channels": [
{
"ulid": "01HZCHAN100000000000000000",
"channel_type": "SLACK",
"config": {
"channel_id": "C0123ABC",
"channel_name": "#sla-alerts"
}
}
],
"create_time": "2026-02-15T10:30:00Z",
"update_time": "2026-02-15T10:30:00Z"
}
],
"next_page_token": null,
"total_count": 1
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "Authentication failed",
"details": [
{
"field": "X-API-Key",
"description": "Invalid or missing API key"
}
]
}
}{
"error": {
"code": "PERMISSION_DENIED",
"message": "Insufficient permissions",
"details": [
{
"field": "permissions",
"description": "Required scope: monitors:read"
}
]
}
}{
"error": {
"code": "INTERNAL",
"message": "Internal server error",
"details": [
{
"description": "An unexpected error occurred"
}
]
}
}Monitors
List monitors
Returns all active monitors for the authenticated organization.
Supports optional filtering by scope and pagination.
GET
/
monitors
List monitors
curl --request GET \
--url https://api.coval.dev/v1/monitors \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.coval.dev/v1/monitors"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.coval.dev/v1/monitors', 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.coval.dev/v1/monitors",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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.coval.dev/v1/monitors"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.coval.dev/v1/monitors")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.coval.dev/v1/monitors")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"monitors": [
{
"ulid": "01HZ0EXAMPLE00000000000000",
"name": "Latency SLA Monitor",
"description": "Alert when average response latency exceeds 500ms",
"status": "ACTIVE",
"evaluation_type": "ON_RUN_COMPLETE",
"scope": "MONITORING",
"match_mode": "ALL",
"cooldown_seconds": 3600,
"trigger_count": 5,
"last_triggered_at": "2026-03-01T12:00:00Z",
"conditions": [
{
"ulid": "01HZCOND100000000000000000",
"metric_id": "01HZMETRIC0000000000000000",
"aggregation": "RUN_AVERAGE",
"operator": "GT",
"threshold_float": 500
}
],
"channels": [
{
"ulid": "01HZCHAN100000000000000000",
"channel_type": "SLACK",
"config": {
"channel_id": "C0123ABC",
"channel_name": "#sla-alerts"
}
}
],
"create_time": "2026-02-15T10:30:00Z",
"update_time": "2026-02-15T10:30:00Z"
}
],
"next_page_token": null,
"total_count": 1
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "Authentication failed",
"details": [
{
"field": "X-API-Key",
"description": "Invalid or missing API key"
}
]
}
}{
"error": {
"code": "PERMISSION_DENIED",
"message": "Insufficient permissions",
"details": [
{
"field": "permissions",
"description": "Required scope: monitors:read"
}
]
}
}{
"error": {
"code": "INTERNAL",
"message": "Internal server error",
"details": [
{
"description": "An unexpected error occurred"
}
]
}
}Authorizations
API key for authentication
Query Parameters
Filter monitors by scope
Available options:
ALL, MONITORING, SIMULATION Number of results per page
Required range:
1 <= x <= 100Token for fetching the next page of results
Was this page helpful?
⌘I