Monitors
Trigger Monitor Run
Manually trigger an enrichment run for a monitor.
POST
/
api
/
agent
/
monitors
/
{id}
/
run
Trigger Monitor Run
curl --request POST \
--url https://encrata.com/api/agent/monitors/{id}/run \
--header 'Authorization: Bearer <token>'import requests
url = "https://encrata.com/api/agent/monitors/{id}/run"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://encrata.com/api/agent/monitors/{id}/run', 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://encrata.com/api/agent/monitors/{id}/run",
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>"
],
]);
$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://encrata.com/api/agent/monitors/{id}/run"
req, _ := http.NewRequest("POST", url, nil)
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://encrata.com/api/agent/monitors/{id}/run")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://encrata.com/api/agent/monitors/{id}/run")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyAuthentication
Requires an API key in theAuthorization header.
Authorization: Bearer YOUR_API_KEY
Path parameters
string
required
The monitor’s unique identifier (UUID).
Example request
curl -X POST https://encrata.com/api/agent/monitors/a1b2c3d4-.../run \
-H "Authorization: Bearer YOUR_API_KEY"
Response
{
"run_id": "b2c3d4e5-...",
"status": "running",
"message": "Run started for 25 emails"
}
Each email in the monitor costs 1 credit. The run is processed asynchronously results appear in the run history once complete.
Webhook event
When a run completes with changes detected, amonitor.run.completed webhook is dispatched:
{
"event": "monitor.run.completed",
"data": {
"monitor_id": "a1b2c3d4-...",
"monitor_name": "Engineering team",
"run_id": "b2c3d4e5-...",
"total_records": 25,
"changes_detected": 3,
"credits_used": 25
},
"created_at": "2026-05-04T12:30:00Z"
}
Was this page helpful?
⌘I
Trigger Monitor Run
curl --request POST \
--url https://encrata.com/api/agent/monitors/{id}/run \
--header 'Authorization: Bearer <token>'import requests
url = "https://encrata.com/api/agent/monitors/{id}/run"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://encrata.com/api/agent/monitors/{id}/run', 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://encrata.com/api/agent/monitors/{id}/run",
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>"
],
]);
$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://encrata.com/api/agent/monitors/{id}/run"
req, _ := http.NewRequest("POST", url, nil)
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://encrata.com/api/agent/monitors/{id}/run")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://encrata.com/api/agent/monitors/{id}/run")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body