curl --request POST \
--url https://api.suntropy.ai/v2/connect/monitoring/alarms/read \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"alarmIds": [
"<string>"
],
"all": true,
"plantIds": [
"<string>"
],
"from": "<string>",
"to": "<string>",
"severity": [],
"unreadOnly": true
}
'import requests
url = "https://api.suntropy.ai/v2/connect/monitoring/alarms/read"
payload = {
"alarmIds": ["<string>"],
"all": True,
"plantIds": ["<string>"],
"from": "<string>",
"to": "<string>",
"severity": [],
"unreadOnly": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
alarmIds: ['<string>'],
all: true,
plantIds: ['<string>'],
from: '<string>',
to: '<string>',
severity: [],
unreadOnly: true
})
};
fetch('https://api.suntropy.ai/v2/connect/monitoring/alarms/read', 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.suntropy.ai/v2/connect/monitoring/alarms/read",
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([
'alarmIds' => [
'<string>'
],
'all' => true,
'plantIds' => [
'<string>'
],
'from' => '<string>',
'to' => '<string>',
'severity' => [
],
'unreadOnly' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.suntropy.ai/v2/connect/monitoring/alarms/read"
payload := strings.NewReader("{\n \"alarmIds\": [\n \"<string>\"\n ],\n \"all\": true,\n \"plantIds\": [\n \"<string>\"\n ],\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"severity\": [],\n \"unreadOnly\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
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.suntropy.ai/v2/connect/monitoring/alarms/read")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"alarmIds\": [\n \"<string>\"\n ],\n \"all\": true,\n \"plantIds\": [\n \"<string>\"\n ],\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"severity\": [],\n \"unreadOnly\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.suntropy.ai/v2/connect/monitoring/alarms/read")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"alarmIds\": [\n \"<string>\"\n ],\n \"all\": true,\n \"plantIds\": [\n \"<string>\"\n ],\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"severity\": [],\n \"unreadOnly\": true\n}"
response = http.request(request)
puts response.read_body{
"data": {},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Mark alarms as read
Required permission: monitoring:write. Billed through Suntropy Connect usage billing; the account is enrolled automatically on first use.
Marks stored alarms as read for the whole company (not per user), so unreadOnly stops returning them. Either give alarmIds (alm_… from list_alarms) or all: true plus the same filters as list_alarms (e.g. all: true, plantIds: […] marks that plant’s alarms). Returns how many were marked. Only watched brands have read state.
Same operation as the mark_alarms_read tool of the Suntropy Connect monitoring MCP server.
curl --request POST \
--url https://api.suntropy.ai/v2/connect/monitoring/alarms/read \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"alarmIds": [
"<string>"
],
"all": true,
"plantIds": [
"<string>"
],
"from": "<string>",
"to": "<string>",
"severity": [],
"unreadOnly": true
}
'import requests
url = "https://api.suntropy.ai/v2/connect/monitoring/alarms/read"
payload = {
"alarmIds": ["<string>"],
"all": True,
"plantIds": ["<string>"],
"from": "<string>",
"to": "<string>",
"severity": [],
"unreadOnly": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
alarmIds: ['<string>'],
all: true,
plantIds: ['<string>'],
from: '<string>',
to: '<string>',
severity: [],
unreadOnly: true
})
};
fetch('https://api.suntropy.ai/v2/connect/monitoring/alarms/read', 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.suntropy.ai/v2/connect/monitoring/alarms/read",
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([
'alarmIds' => [
'<string>'
],
'all' => true,
'plantIds' => [
'<string>'
],
'from' => '<string>',
'to' => '<string>',
'severity' => [
],
'unreadOnly' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.suntropy.ai/v2/connect/monitoring/alarms/read"
payload := strings.NewReader("{\n \"alarmIds\": [\n \"<string>\"\n ],\n \"all\": true,\n \"plantIds\": [\n \"<string>\"\n ],\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"severity\": [],\n \"unreadOnly\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
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.suntropy.ai/v2/connect/monitoring/alarms/read")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"alarmIds\": [\n \"<string>\"\n ],\n \"all\": true,\n \"plantIds\": [\n \"<string>\"\n ],\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"severity\": [],\n \"unreadOnly\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.suntropy.ai/v2/connect/monitoring/alarms/read")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"alarmIds\": [\n \"<string>\"\n ],\n \"all\": true,\n \"plantIds\": [\n \"<string>\"\n ],\n \"from\": \"<string>\",\n \"to\": \"<string>\",\n \"severity\": [],\n \"unreadOnly\": true\n}"
response = http.request(request)
puts response.read_body{
"data": {},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Alarm ids (alm_…) from list_alarms.
Mark every alarm matching the filters (open or cleared).
Only these plants. Omit for all.
Plant id as returned by list_plants, e.g. huawei:3f2a9c1e:NE=33554875.
Only this brand. Omit to cover every connected brand.
huawei, goodwe, sungrow, deye, solis, enphase, growatt, fronius, solaredge, riello, greenheiss ISO date-time. Alarms raised at or after this instant.
ISO date-time. Alarms raised at or before this instant.
Only these normalised severities. Mapped to critical > major > minor > warning when documented; otherwise unknown.
critical, major, minor, warning, unknown This severity and anything more severe (e.g. major = critical + major).
critical, major, minor, warning Only alarms nobody has marked as read.