Rule Runs
List a rule's runs
Returns the rule’s runs, most recent first.
GET
/
projects
/
{project_id}
/
rules
/
{rule_id}
/
runs
List a rule's runs
curl --request GET \
--url https://app.gomangrove.com/api/v1/projects/{project_id}/rules/{rule_id}/runs \
--header 'Authorization: <api-key>'import requests
url = "https://app.gomangrove.com/api/v1/projects/{project_id}/rules/{rule_id}/runs"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://app.gomangrove.com/api/v1/projects/{project_id}/rules/{rule_id}/runs', 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.gomangrove.com/api/v1/projects/{project_id}/rules/{rule_id}/runs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <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://app.gomangrove.com/api/v1/projects/{project_id}/rules/{rule_id}/runs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<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://app.gomangrove.com/api/v1/projects/{project_id}/rules/{rule_id}/runs")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.gomangrove.com/api/v1/projects/{project_id}/rules/{rule_id}/runs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "rrun_AbCd1234567890Ef",
"rule_id": "rule_AbCd1234567890Ef",
"state": "running",
"phase": "evaluating",
"trigger": "on_demand",
"range_start": "2026-07-01T00:00:00Z",
"range_end": "2026-07-31T23:59:59Z",
"started_at": "2026-08-28T14:22:06Z",
"finished_at": null,
"last_evaluated_at": "2026-08-28T14:22:31Z",
"targets_total": 1450,
"targets_processed": 600,
"passed_count": 580,
"alerted_count": 20,
"results_changed_count": 12,
"newly_alerted_count": 9,
"newly_cleared_count": 3,
"reversible": false,
"non_reversible_reason": "A run cannot be reversed while it is still evaluating",
"reversal_summary": null,
"triggered_by": "Sam Okonkwo",
"error_message": null
}
],
"info": {
"items": 1,
"page_size": 20,
"total_items": 1,
"current_page": 1,
"total_pages": 1
}
}⌘I
List a rule's runs
curl --request GET \
--url https://app.gomangrove.com/api/v1/projects/{project_id}/rules/{rule_id}/runs \
--header 'Authorization: <api-key>'import requests
url = "https://app.gomangrove.com/api/v1/projects/{project_id}/rules/{rule_id}/runs"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://app.gomangrove.com/api/v1/projects/{project_id}/rules/{rule_id}/runs', 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.gomangrove.com/api/v1/projects/{project_id}/rules/{rule_id}/runs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <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://app.gomangrove.com/api/v1/projects/{project_id}/rules/{rule_id}/runs"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<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://app.gomangrove.com/api/v1/projects/{project_id}/rules/{rule_id}/runs")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.gomangrove.com/api/v1/projects/{project_id}/rules/{rule_id}/runs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "rrun_AbCd1234567890Ef",
"rule_id": "rule_AbCd1234567890Ef",
"state": "running",
"phase": "evaluating",
"trigger": "on_demand",
"range_start": "2026-07-01T00:00:00Z",
"range_end": "2026-07-31T23:59:59Z",
"started_at": "2026-08-28T14:22:06Z",
"finished_at": null,
"last_evaluated_at": "2026-08-28T14:22:31Z",
"targets_total": 1450,
"targets_processed": 600,
"passed_count": 580,
"alerted_count": 20,
"results_changed_count": 12,
"newly_alerted_count": 9,
"newly_cleared_count": 3,
"reversible": false,
"non_reversible_reason": "A run cannot be reversed while it is still evaluating",
"reversal_summary": null,
"triggered_by": "Sam Okonkwo",
"error_message": null
}
],
"info": {
"items": 1,
"page_size": 20,
"total_items": 1,
"current_page": 1,
"total_pages": 1
}
}