A standing refresh — cadence + per-run cap + webhook diff
curl --request POST \
--url https://api.fiveninelabs.com/v1/monitors \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"watch": {
"session": "<string>",
"extraction": "<string>"
},
"cadence_s": 3601,
"max_spend_usd_per_run": 123,
"name": "<string>",
"webhook_url": "<string>",
"notify": "<string>"
}
'import requests
url = "https://api.fiveninelabs.com/v1/monitors"
payload = {
"watch": {
"session": "<string>",
"extraction": "<string>"
},
"cadence_s": 3601,
"max_spend_usd_per_run": 123,
"name": "<string>",
"webhook_url": "<string>",
"notify": "<string>"
}
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({
watch: {session: '<string>', extraction: '<string>'},
cadence_s: 3601,
max_spend_usd_per_run: 123,
name: '<string>',
webhook_url: '<string>',
notify: '<string>'
})
};
fetch('https://api.fiveninelabs.com/v1/monitors', 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.fiveninelabs.com/v1/monitors",
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([
'watch' => [
'session' => '<string>',
'extraction' => '<string>'
],
'cadence_s' => 3601,
'max_spend_usd_per_run' => 123,
'name' => '<string>',
'webhook_url' => '<string>',
'notify' => '<string>'
]),
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.fiveninelabs.com/v1/monitors"
payload := strings.NewReader("{\n \"watch\": {\n \"session\": \"<string>\",\n \"extraction\": \"<string>\"\n },\n \"cadence_s\": 3601,\n \"max_spend_usd_per_run\": 123,\n \"name\": \"<string>\",\n \"webhook_url\": \"<string>\",\n \"notify\": \"<string>\"\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.fiveninelabs.com/v1/monitors")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"watch\": {\n \"session\": \"<string>\",\n \"extraction\": \"<string>\"\n },\n \"cadence_s\": 3601,\n \"max_spend_usd_per_run\": 123,\n \"name\": \"<string>\",\n \"webhook_url\": \"<string>\",\n \"notify\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fiveninelabs.com/v1/monitors")
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 \"watch\": {\n \"session\": \"<string>\",\n \"extraction\": \"<string>\"\n },\n \"cadence_s\": 3601,\n \"max_spend_usd_per_run\": 123,\n \"name\": \"<string>\",\n \"webhook_url\": \"<string>\",\n \"notify\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "mon_5wp0d",
"object": "monitor",
"status": "<string>",
"name": "<string>",
"watch": {},
"cadence_s": 123,
"max_spend_usd_per_run": 123,
"worst_case_monthly_usd": 123,
"last_run": {
"id": "run_0pw3e",
"outcome": "<string>",
"fired_at": "2023-11-07T05:31:56Z",
"rows": 123,
"added": 123,
"removed": 123,
"price_moves": 123,
"cost_usd": 123,
"receipt_id": "<string>",
"webhook": "<string>"
},
"next_run_at": "2023-11-07T05:31:56Z",
"lifetime_spend_usd": 123
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}API Reference
A standing refresh — cadence + per-run cap + webhook diff
Not yet available — planned (the whole /monitors surface answers 501 not_implemented).
POST
/
monitors
A standing refresh — cadence + per-run cap + webhook diff
curl --request POST \
--url https://api.fiveninelabs.com/v1/monitors \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"watch": {
"session": "<string>",
"extraction": "<string>"
},
"cadence_s": 3601,
"max_spend_usd_per_run": 123,
"name": "<string>",
"webhook_url": "<string>",
"notify": "<string>"
}
'import requests
url = "https://api.fiveninelabs.com/v1/monitors"
payload = {
"watch": {
"session": "<string>",
"extraction": "<string>"
},
"cadence_s": 3601,
"max_spend_usd_per_run": 123,
"name": "<string>",
"webhook_url": "<string>",
"notify": "<string>"
}
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({
watch: {session: '<string>', extraction: '<string>'},
cadence_s: 3601,
max_spend_usd_per_run: 123,
name: '<string>',
webhook_url: '<string>',
notify: '<string>'
})
};
fetch('https://api.fiveninelabs.com/v1/monitors', 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.fiveninelabs.com/v1/monitors",
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([
'watch' => [
'session' => '<string>',
'extraction' => '<string>'
],
'cadence_s' => 3601,
'max_spend_usd_per_run' => 123,
'name' => '<string>',
'webhook_url' => '<string>',
'notify' => '<string>'
]),
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.fiveninelabs.com/v1/monitors"
payload := strings.NewReader("{\n \"watch\": {\n \"session\": \"<string>\",\n \"extraction\": \"<string>\"\n },\n \"cadence_s\": 3601,\n \"max_spend_usd_per_run\": 123,\n \"name\": \"<string>\",\n \"webhook_url\": \"<string>\",\n \"notify\": \"<string>\"\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.fiveninelabs.com/v1/monitors")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"watch\": {\n \"session\": \"<string>\",\n \"extraction\": \"<string>\"\n },\n \"cadence_s\": 3601,\n \"max_spend_usd_per_run\": 123,\n \"name\": \"<string>\",\n \"webhook_url\": \"<string>\",\n \"notify\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fiveninelabs.com/v1/monitors")
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 \"watch\": {\n \"session\": \"<string>\",\n \"extraction\": \"<string>\"\n },\n \"cadence_s\": 3601,\n \"max_spend_usd_per_run\": 123,\n \"name\": \"<string>\",\n \"webhook_url\": \"<string>\",\n \"notify\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "mon_5wp0d",
"object": "monitor",
"status": "<string>",
"name": "<string>",
"watch": {},
"cadence_s": 123,
"max_spend_usd_per_run": 123,
"worst_case_monthly_usd": 123,
"last_run": {
"id": "run_0pw3e",
"outcome": "<string>",
"fired_at": "2023-11-07T05:31:56Z",
"rows": 123,
"added": 123,
"removed": 123,
"price_moves": 123,
"cost_usd": 123,
"receipt_id": "<string>",
"webhook": "<string>"
},
"next_run_at": "2023-11-07T05:31:56Z",
"lifetime_spend_usd": 123
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"type": "<string>",
"code": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}Authorizations
fn_live_… or fn_test_… — Authorization: Bearer
Headers
Dated API version; defaults to the account pin. Honesty note: with one version in existence the gateway echoes any value back as effective WITHOUT validating it — validation against the known-versions set is planned, so send only real dated versions from https://docs.fiveninelabs.com/changelog
Example:
"2026-08-26"
24h replay window; a retry never bills twice
Maximum string length:
255Body
application/json
Response
Monitor created; first run fires now
Example:
"mon_5wp0d"
Allowed value:
"monitor"active | paused | failing (open enum); pauses itself after 3 consecutive failures
stated before you create
Show child attributes
Show child attributes