Create watches in batch
curl --request POST \
--url https://api.range.org/v1/risk/watches/batch \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"items": [
{
"company_id": "6aa0498a-dac8-54d6-8f70-757fb7a78c92",
"depth": "standard"
},
{
"company_id": "13900abb-b714-5829-a735-1a146dbe5e86",
"depth": "standard"
}
]
}
'import requests
url = "https://api.range.org/v1/risk/watches/batch"
payload = { "items": [
{
"company_id": "6aa0498a-dac8-54d6-8f70-757fb7a78c92",
"depth": "standard"
},
{
"company_id": "13900abb-b714-5829-a735-1a146dbe5e86",
"depth": "standard"
}
] }
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
items: [
{company_id: '6aa0498a-dac8-54d6-8f70-757fb7a78c92', depth: 'standard'},
{company_id: '13900abb-b714-5829-a735-1a146dbe5e86', depth: 'standard'}
]
})
};
fetch('https://api.range.org/v1/risk/watches/batch', 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.range.org/v1/risk/watches/batch",
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([
'items' => [
[
'company_id' => '6aa0498a-dac8-54d6-8f70-757fb7a78c92',
'depth' => 'standard'
],
[
'company_id' => '13900abb-b714-5829-a735-1a146dbe5e86',
'depth' => 'standard'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.range.org/v1/risk/watches/batch"
payload := strings.NewReader("{\n \"items\": [\n {\n \"company_id\": \"6aa0498a-dac8-54d6-8f70-757fb7a78c92\",\n \"depth\": \"standard\"\n },\n {\n \"company_id\": \"13900abb-b714-5829-a735-1a146dbe5e86\",\n \"depth\": \"standard\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
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.range.org/v1/risk/watches/batch")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"items\": [\n {\n \"company_id\": \"6aa0498a-dac8-54d6-8f70-757fb7a78c92\",\n \"depth\": \"standard\"\n },\n {\n \"company_id\": \"13900abb-b714-5829-a735-1a146dbe5e86\",\n \"depth\": \"standard\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.range.org/v1/risk/watches/batch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"items\": [\n {\n \"company_id\": \"6aa0498a-dac8-54d6-8f70-757fb7a78c92\",\n \"depth\": \"standard\"\n },\n {\n \"company_id\": \"13900abb-b714-5829-a735-1a146dbe5e86\",\n \"depth\": \"standard\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "77900c12-055e-5255-9c85-480e00059964",
"object": "watch",
"target": {
"type": "company",
"company_id": "6aa0498a-dac8-54d6-8f70-757fb7a78c92",
"name": "Kestrel Payments"
},
"depth": "standard",
"status": "active",
"event_filter": {
"domains": [],
"types": [],
"exclude_types": []
},
"thresholds": {},
"destinations": {
"webhook_endpoint_ids": [],
"channel_ids": []
},
"labels": {},
"created_at": "2026-11-18T14:02:09Z",
"updated_at": "2026-11-18T14:02:09Z"
}
],
"errors": [
{
"index": 1,
"statusCode": 409,
"message": "An active watch already exists for 13900abb-b714-5829-a735-1a146dbe5e86"
}
]
}{
"statusCode": 400,
"error": "Bad Request",
"message": [
"items must be a nonempty array"
]
}{
"statusCode": 401,
"error": "Unauthorized",
"message": "API key is invalid or not well-formed"
}{
"statusCode": 403,
"error": "Forbidden",
"message": "Company Intelligence (beta) is not enabled for this workspace"
}{
"statusCode": 429,
"error": "Too Many Requests",
"message": "Rate limit exceeded"
}Endpoints
Create Watches in Batch
Create multiple watches and read failures by input index.
Create watches in batch
curl --request POST \
--url https://api.range.org/v1/risk/watches/batch \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"items": [
{
"company_id": "6aa0498a-dac8-54d6-8f70-757fb7a78c92",
"depth": "standard"
},
{
"company_id": "13900abb-b714-5829-a735-1a146dbe5e86",
"depth": "standard"
}
]
}
'import requests
url = "https://api.range.org/v1/risk/watches/batch"
payload = { "items": [
{
"company_id": "6aa0498a-dac8-54d6-8f70-757fb7a78c92",
"depth": "standard"
},
{
"company_id": "13900abb-b714-5829-a735-1a146dbe5e86",
"depth": "standard"
}
] }
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
items: [
{company_id: '6aa0498a-dac8-54d6-8f70-757fb7a78c92', depth: 'standard'},
{company_id: '13900abb-b714-5829-a735-1a146dbe5e86', depth: 'standard'}
]
})
};
fetch('https://api.range.org/v1/risk/watches/batch', 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.range.org/v1/risk/watches/batch",
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([
'items' => [
[
'company_id' => '6aa0498a-dac8-54d6-8f70-757fb7a78c92',
'depth' => 'standard'
],
[
'company_id' => '13900abb-b714-5829-a735-1a146dbe5e86',
'depth' => 'standard'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.range.org/v1/risk/watches/batch"
payload := strings.NewReader("{\n \"items\": [\n {\n \"company_id\": \"6aa0498a-dac8-54d6-8f70-757fb7a78c92\",\n \"depth\": \"standard\"\n },\n {\n \"company_id\": \"13900abb-b714-5829-a735-1a146dbe5e86\",\n \"depth\": \"standard\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
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.range.org/v1/risk/watches/batch")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"items\": [\n {\n \"company_id\": \"6aa0498a-dac8-54d6-8f70-757fb7a78c92\",\n \"depth\": \"standard\"\n },\n {\n \"company_id\": \"13900abb-b714-5829-a735-1a146dbe5e86\",\n \"depth\": \"standard\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.range.org/v1/risk/watches/batch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"items\": [\n {\n \"company_id\": \"6aa0498a-dac8-54d6-8f70-757fb7a78c92\",\n \"depth\": \"standard\"\n },\n {\n \"company_id\": \"13900abb-b714-5829-a735-1a146dbe5e86\",\n \"depth\": \"standard\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "77900c12-055e-5255-9c85-480e00059964",
"object": "watch",
"target": {
"type": "company",
"company_id": "6aa0498a-dac8-54d6-8f70-757fb7a78c92",
"name": "Kestrel Payments"
},
"depth": "standard",
"status": "active",
"event_filter": {
"domains": [],
"types": [],
"exclude_types": []
},
"thresholds": {},
"destinations": {
"webhook_endpoint_ids": [],
"channel_ids": []
},
"labels": {},
"created_at": "2026-11-18T14:02:09Z",
"updated_at": "2026-11-18T14:02:09Z"
}
],
"errors": [
{
"index": 1,
"statusCode": 409,
"message": "An active watch already exists for 13900abb-b714-5829-a735-1a146dbe5e86"
}
]
}{
"statusCode": 400,
"error": "Bad Request",
"message": [
"items must be a nonempty array"
]
}{
"statusCode": 401,
"error": "Unauthorized",
"message": "API key is invalid or not well-formed"
}{
"statusCode": 403,
"error": "Forbidden",
"message": "Company Intelligence (beta) is not enabled for this workspace"
}{
"statusCode": 429,
"error": "Too Many Requests",
"message": "Rate limit exceeded"
}See Watches and Events for the beta contract and integration details.
Last modified on December 3, 2026
Was this page helpful?