List monitors
curl --request GET \
--url https://app.larm.dev/api/v1/monitorsimport requests
url = "https://app.larm.dev/api/v1/monitors"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.larm.dev/api/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://app.larm.dev/api/v1/monitors",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://app.larm.dev/api/v1/monitors"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.larm.dev/api/v1/monitors")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.larm.dev/api/v1/monitors")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Marketing site",
"check_type": "http",
"enabled": true,
"interval_seconds": 180,
"timeout_ms": 10000,
"confirm_down_minutes": 1,
"confirm_up_minutes": 3,
"config": {
"url": "https://example.com",
"method": "GET",
"expected_status_codes": [200],
"follow_redirects": true
},
"current_state": "up",
"alert_channel_ids": ["660e8400-e29b-41d4-a716-446655440000"],
"inserted_at": "2025-03-01T12:00:00Z",
"updated_at": "2025-03-01T12:00:00Z"
}
]
}
Monitors
List monitors
Returns all monitors in the organization
GET
/
api
/
v1
/
monitors
List monitors
curl --request GET \
--url https://app.larm.dev/api/v1/monitorsimport requests
url = "https://app.larm.dev/api/v1/monitors"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://app.larm.dev/api/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://app.larm.dev/api/v1/monitors",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://app.larm.dev/api/v1/monitors"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.larm.dev/api/v1/monitors")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.larm.dev/api/v1/monitors")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Marketing site",
"check_type": "http",
"enabled": true,
"interval_seconds": 180,
"timeout_ms": 10000,
"confirm_down_minutes": 1,
"confirm_up_minutes": 3,
"config": {
"url": "https://example.com",
"method": "GET",
"expected_status_codes": [200],
"follow_redirects": true
},
"current_state": "up",
"alert_channel_ids": ["660e8400-e29b-41d4-a716-446655440000"],
"inserted_at": "2025-03-01T12:00:00Z",
"updated_at": "2025-03-01T12:00:00Z"
}
]
}
Requires
monitors:read permission.
{
"data": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Marketing site",
"check_type": "http",
"enabled": true,
"interval_seconds": 180,
"timeout_ms": 10000,
"confirm_down_minutes": 1,
"confirm_up_minutes": 3,
"config": {
"url": "https://example.com",
"method": "GET",
"expected_status_codes": [200],
"follow_redirects": true
},
"current_state": "up",
"alert_channel_ids": ["660e8400-e29b-41d4-a716-446655440000"],
"inserted_at": "2025-03-01T12:00:00Z",
"updated_at": "2025-03-01T12:00:00Z"
}
]
}
⌘I