Complete maintenance
curl --request POST \
--url https://api.getmonitor.io/api/v1/status-pages/{statusPageId}/maintenance/{maintenanceId}/complete \
--header 'Authorization: Bearer <token>' \
--header 'X-Organization-Id: <x-organization-id>'import requests
url = "https://api.getmonitor.io/api/v1/status-pages/{statusPageId}/maintenance/{maintenanceId}/complete"
headers = {
"X-Organization-Id": "<x-organization-id>",
"Authorization": "Bearer <token>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Organization-Id': '<x-organization-id>', Authorization: 'Bearer <token>'}
};
fetch('https://api.getmonitor.io/api/v1/status-pages/{statusPageId}/maintenance/{maintenanceId}/complete', 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/status-pages/{statusPageId}/maintenance/{maintenanceId}/complete",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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"
"net/http"
"io"
)
func main() {
url := "https://api.getmonitor.io/api/v1/status-pages/{statusPageId}/maintenance/{maintenanceId}/complete"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-Organization-Id", "<x-organization-id>")
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.post("https://api.getmonitor.io/api/v1/status-pages/{statusPageId}/maintenance/{maintenanceId}/complete")
.header("X-Organization-Id", "<x-organization-id>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getmonitor.io/api/v1/status-pages/{statusPageId}/maintenance/{maintenanceId}/complete")
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>'
response = http.request(request)
puts response.read_body{
"id": "awg4f0exhfwludmucxc5arhd",
"statusPageId": "ue36sb5hjehntxcd7iau14cz",
"title": "Database upgrade",
"description": "Customer-facing status",
"status": "completed",
"scheduledStartAt": "2026-12-01T10:00:00.000Z",
"scheduledEndAt": "2026-12-01T11:00:00.000Z",
"actualStartAt": "2026-09-27T14:20:42.503Z",
"actualEndAt": "2026-09-27T14:20:43.044Z",
"createdAt": "2026-09-27T14:20:38.961Z",
"updatedAt": "2026-09-27T14:20:43.044Z",
"userId": "u7Kp2Qm9Xa4Lr8Tn1Vb6Zc3Wd5Ye0Hf",
"organizationId": "k2p9x7w4m1n8b3v6c5z0q2r7"
}{
"message": [
"name must be longer than or equal to 1 characters",
"regions must be an array"
],
"error": "Bad Request",
"statusCode": 400
}{
"message": "Unauthorized",
"statusCode": 401
}{
"message": "No access to this organization",
"error": "Forbidden",
"statusCode": 403
}{
"message": "Monitor not found",
"error": "Not Found",
"statusCode": 404
}Status Pages
Complete maintenance
Sets the status to completed.
Authentication: API key with the incidents:write scope, or a user session. Role: member, admin or owner.
POST
/
api
/
v1
/
status-pages
/
{statusPageId}
/
maintenance
/
{maintenanceId}
/
complete
Complete maintenance
curl --request POST \
--url https://api.getmonitor.io/api/v1/status-pages/{statusPageId}/maintenance/{maintenanceId}/complete \
--header 'Authorization: Bearer <token>' \
--header 'X-Organization-Id: <x-organization-id>'import requests
url = "https://api.getmonitor.io/api/v1/status-pages/{statusPageId}/maintenance/{maintenanceId}/complete"
headers = {
"X-Organization-Id": "<x-organization-id>",
"Authorization": "Bearer <token>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Organization-Id': '<x-organization-id>', Authorization: 'Bearer <token>'}
};
fetch('https://api.getmonitor.io/api/v1/status-pages/{statusPageId}/maintenance/{maintenanceId}/complete', 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/status-pages/{statusPageId}/maintenance/{maintenanceId}/complete",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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"
"net/http"
"io"
)
func main() {
url := "https://api.getmonitor.io/api/v1/status-pages/{statusPageId}/maintenance/{maintenanceId}/complete"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("X-Organization-Id", "<x-organization-id>")
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.post("https://api.getmonitor.io/api/v1/status-pages/{statusPageId}/maintenance/{maintenanceId}/complete")
.header("X-Organization-Id", "<x-organization-id>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getmonitor.io/api/v1/status-pages/{statusPageId}/maintenance/{maintenanceId}/complete")
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>'
response = http.request(request)
puts response.read_body{
"id": "awg4f0exhfwludmucxc5arhd",
"statusPageId": "ue36sb5hjehntxcd7iau14cz",
"title": "Database upgrade",
"description": "Customer-facing status",
"status": "completed",
"scheduledStartAt": "2026-12-01T10:00:00.000Z",
"scheduledEndAt": "2026-12-01T11:00:00.000Z",
"actualStartAt": "2026-09-27T14:20:42.503Z",
"actualEndAt": "2026-09-27T14:20:43.044Z",
"createdAt": "2026-09-27T14:20:38.961Z",
"updatedAt": "2026-09-27T14:20:43.044Z",
"userId": "u7Kp2Qm9Xa4Lr8Tn1Vb6Zc3Wd5Ye0Hf",
"organizationId": "k2p9x7w4m1n8b3v6c5z0q2r7"
}{
"message": [
"name must be longer than or equal to 1 characters",
"regions must be an array"
],
"error": "Bad Request",
"statusCode": 400
}{
"message": "Unauthorized",
"statusCode": 401
}{
"message": "No access to this organization",
"error": "Forbidden",
"statusCode": 403
}{
"message": "Monitor not found",
"error": "Not Found",
"statusCode": 404
}Authorizations
apiKeysession
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.
Example:
"k2p9x7w4m1n8b3v6c5z0q2r7"
Path Parameters
Status page ID.
Maintenance ID.
Response
Created