curl --request POST \
--url https://api.getmonitor.io/api/v1/uptime \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Organization-Id: <x-organization-id>' \
--data '
{
"name": "Production API",
"targetUrl": "https://example.com",
"checkType": "UPTIME",
"followRedirects": true,
"regions": [
"us-east-1"
],
"timeout": "15 sec",
"httpMethod": "GET",
"expectedResponseCode": "2xx"
}
'import requests
url = "https://api.getmonitor.io/api/v1/uptime"
payload = {
"name": "Production API",
"targetUrl": "https://example.com",
"checkType": "UPTIME",
"followRedirects": True,
"regions": ["us-east-1"],
"timeout": "15 sec",
"httpMethod": "GET",
"expectedResponseCode": "2xx"
}
headers = {
"X-Organization-Id": "<x-organization-id>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Organization-Id': '<x-organization-id>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'Production API',
targetUrl: 'https://example.com',
checkType: 'UPTIME',
followRedirects: true,
regions: ['us-east-1'],
timeout: '15 sec',
httpMethod: 'GET',
expectedResponseCode: '2xx'
})
};
fetch('https://api.getmonitor.io/api/v1/uptime', 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.getmonitor.io/api/v1/uptime",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Production API',
'targetUrl' => 'https://example.com',
'checkType' => 'UPTIME',
'followRedirects' => true,
'regions' => [
'us-east-1'
],
'timeout' => '15 sec',
'httpMethod' => 'GET',
'expectedResponseCode' => '2xx'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"X-Organization-Id: <x-organization-id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.getmonitor.io/api/v1/uptime"
payload := strings.NewReader("{\n \"name\": \"Production API\",\n \"targetUrl\": \"https://example.com\",\n \"checkType\": \"UPTIME\",\n \"followRedirects\": true,\n \"regions\": [\n \"us-east-1\"\n ],\n \"timeout\": \"15 sec\",\n \"httpMethod\": \"GET\",\n \"expectedResponseCode\": \"2xx\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Organization-Id", "<x-organization-id>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.getmonitor.io/api/v1/uptime")
.header("X-Organization-Id", "<x-organization-id>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Production API\",\n \"targetUrl\": \"https://example.com\",\n \"checkType\": \"UPTIME\",\n \"followRedirects\": true,\n \"regions\": [\n \"us-east-1\"\n ],\n \"timeout\": \"15 sec\",\n \"httpMethod\": \"GET\",\n \"expectedResponseCode\": \"2xx\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getmonitor.io/api/v1/uptime")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Organization-Id"] = '<x-organization-id>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Production API\",\n \"targetUrl\": \"https://example.com\",\n \"checkType\": \"UPTIME\",\n \"followRedirects\": true,\n \"regions\": [\n \"us-east-1\"\n ],\n \"timeout\": \"15 sec\",\n \"httpMethod\": \"GET\",\n \"expectedResponseCode\": \"2xx\"\n}"
response = http.request(request)
puts response.read_body{
"id": "ny4xotpq1ff8h9tjifqvr4b8",
"organizationId": "k2p9x7w4m1n8b3v6c5z0q2r7",
"userId": "u7Kp2Qm9Xa4Lr8Tn1Vb6Zc3Wd5Ye0Hf",
"name": "Production API",
"type": "uptime",
"isActive": true,
"currentStatus": "unknown",
"lastEventAt": null,
"checkIntervalSeconds": null,
"createdAt": "2026-09-27T14:19:02.678Z",
"updatedAt": "2026-09-27T14:19:02.678Z",
"monitorId": "ny4xotpq1ff8h9tjifqvr4b8",
"targetUrl": "https://example.com",
"checkType": "UPTIME",
"expectedResponseCode": "2xx",
"followRedirects": true,
"contentAlert": "NOT_FOUND",
"content": null,
"timeout": "15 sec",
"alertSensitivity": "None",
"httpMethod": "GET",
"body": null,
"headers": [],
"username": null,
"regions": [
"us-east-1"
]
}{
"message": [
"name must be longer than or equal to 1 characters",
"name must be a string",
"targetUrl must be a URL address",
"checkType must be one of the following values: UPTIME, CONTENT",
"followRedirects must be a boolean value",
"each value in regions must be a string",
"regions must be an array"
],
"error": "Bad Request",
"statusCode": 400
}{
"message": "Unauthorized",
"statusCode": 401
}{
"message": "No access to this organization",
"error": "Forbidden",
"statusCode": 403
}Create uptime monitor
Creates an HTTP uptime monitor. Returns 403 when regions exceeds what your plan allows.
Authentication: API key with the monitors:write scope, or a user session. Role: member, admin or owner. Records who created the resource, so organization keys (gm_api_) receive 403; use a personal key or a session.
curl --request POST \
--url https://api.getmonitor.io/api/v1/uptime \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Organization-Id: <x-organization-id>' \
--data '
{
"name": "Production API",
"targetUrl": "https://example.com",
"checkType": "UPTIME",
"followRedirects": true,
"regions": [
"us-east-1"
],
"timeout": "15 sec",
"httpMethod": "GET",
"expectedResponseCode": "2xx"
}
'import requests
url = "https://api.getmonitor.io/api/v1/uptime"
payload = {
"name": "Production API",
"targetUrl": "https://example.com",
"checkType": "UPTIME",
"followRedirects": True,
"regions": ["us-east-1"],
"timeout": "15 sec",
"httpMethod": "GET",
"expectedResponseCode": "2xx"
}
headers = {
"X-Organization-Id": "<x-organization-id>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Organization-Id': '<x-organization-id>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
name: 'Production API',
targetUrl: 'https://example.com',
checkType: 'UPTIME',
followRedirects: true,
regions: ['us-east-1'],
timeout: '15 sec',
httpMethod: 'GET',
expectedResponseCode: '2xx'
})
};
fetch('https://api.getmonitor.io/api/v1/uptime', 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.getmonitor.io/api/v1/uptime",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Production API',
'targetUrl' => 'https://example.com',
'checkType' => 'UPTIME',
'followRedirects' => true,
'regions' => [
'us-east-1'
],
'timeout' => '15 sec',
'httpMethod' => 'GET',
'expectedResponseCode' => '2xx'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"X-Organization-Id: <x-organization-id>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.getmonitor.io/api/v1/uptime"
payload := strings.NewReader("{\n \"name\": \"Production API\",\n \"targetUrl\": \"https://example.com\",\n \"checkType\": \"UPTIME\",\n \"followRedirects\": true,\n \"regions\": [\n \"us-east-1\"\n ],\n \"timeout\": \"15 sec\",\n \"httpMethod\": \"GET\",\n \"expectedResponseCode\": \"2xx\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Organization-Id", "<x-organization-id>")
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.getmonitor.io/api/v1/uptime")
.header("X-Organization-Id", "<x-organization-id>")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Production API\",\n \"targetUrl\": \"https://example.com\",\n \"checkType\": \"UPTIME\",\n \"followRedirects\": true,\n \"regions\": [\n \"us-east-1\"\n ],\n \"timeout\": \"15 sec\",\n \"httpMethod\": \"GET\",\n \"expectedResponseCode\": \"2xx\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getmonitor.io/api/v1/uptime")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Organization-Id"] = '<x-organization-id>'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"Production API\",\n \"targetUrl\": \"https://example.com\",\n \"checkType\": \"UPTIME\",\n \"followRedirects\": true,\n \"regions\": [\n \"us-east-1\"\n ],\n \"timeout\": \"15 sec\",\n \"httpMethod\": \"GET\",\n \"expectedResponseCode\": \"2xx\"\n}"
response = http.request(request)
puts response.read_body{
"id": "ny4xotpq1ff8h9tjifqvr4b8",
"organizationId": "k2p9x7w4m1n8b3v6c5z0q2r7",
"userId": "u7Kp2Qm9Xa4Lr8Tn1Vb6Zc3Wd5Ye0Hf",
"name": "Production API",
"type": "uptime",
"isActive": true,
"currentStatus": "unknown",
"lastEventAt": null,
"checkIntervalSeconds": null,
"createdAt": "2026-09-27T14:19:02.678Z",
"updatedAt": "2026-09-27T14:19:02.678Z",
"monitorId": "ny4xotpq1ff8h9tjifqvr4b8",
"targetUrl": "https://example.com",
"checkType": "UPTIME",
"expectedResponseCode": "2xx",
"followRedirects": true,
"contentAlert": "NOT_FOUND",
"content": null,
"timeout": "15 sec",
"alertSensitivity": "None",
"httpMethod": "GET",
"body": null,
"headers": [],
"username": null,
"regions": [
"us-east-1"
]
}{
"message": [
"name must be longer than or equal to 1 characters",
"name must be a string",
"targetUrl must be a URL address",
"checkType must be one of the following values: UPTIME, CONTENT",
"followRedirects must be a boolean value",
"each value in regions must be a string",
"regions must be an array"
],
"error": "Bad Request",
"statusCode": 400
}{
"message": "Unauthorized",
"statusCode": 401
}{
"message": "No access to this organization",
"error": "Forbidden",
"statusCode": 403
}Authorizations
API key sent as Authorization: Bearer <key>. Personal keys (gm_pat_) act as you, limited by your role and the key's scopes; organization keys (gm_api_) act for one organization. Send X-Organization-Id with every org-scoped request.
Headers
ID of the organization to act in. Required with API keys. A user session may omit it and acts in its active organization.
"k2p9x7w4m1n8b3v6c5z0q2r7"
Body
Display name.
1"Production API"
URL to check. Must be a valid URL.
"https://api.example.com/health"
UPTIME checks the status code; CONTENT also looks for content in the response body.
UPTIME, CONTENT Follow HTTP redirects.
Regions to check from. Currently us-east-1 (all plans) and sa-east-1 (Trial, Pro and Business). The number of regions is capped by your plan.
us-east-1, sa-east-1 ["us-east-1"]
Expected status code or class. Default 2xx.
"2xx"
For CONTENT checks: alert when content is NOT_FOUND or when it is FOUND.
NOT_FOUND, FOUND Text to look for in the response body (CONTENT checks).
Request body sent with POST/PUT/PATCH checks.
Request timeout. Default 30 sec.
5 sec, 15 sec, 30 sec, 60 sec Retries before a failure alerts. Default None.
None, 1 retry, 2 retries, 3 retries HTTP method. Default GET.
GET, POST, PUT, PATCH Extra request headers.
Show child attributes
Show child attributes
HTTP Basic auth username.
HTTP Basic auth password. Write-only: responses never include it.
Response
Created