Get policy rule
curl --request GET \
--url https://api.indoralabs.com/policies/{policyId}/rules/{ruleId} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.indoralabs.com/policies/{policyId}/rules/{ruleId}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.indoralabs.com/policies/{policyId}/rules/{ruleId}', 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.indoralabs.com/policies/{policyId}/rules/{ruleId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.indoralabs.com/policies/{policyId}/rules/{ruleId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<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://api.indoralabs.com/policies/{policyId}/rules/{ruleId}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.indoralabs.com/policies/{policyId}/rules/{ruleId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"rule": {
"id": "b87e2a3c-6ef9-4f9b-8e1b-9f9c2c1eab23",
"doc_id": "f1c8e8b0-7a1b-4f34-9b5b-0d99a3c9b77d",
"type": "REDACT",
"target": "all police contact information",
"source_text": "All personal contact information of officers must be redacted",
"source_page": 3,
"offset_start": 120,
"offset_end": 182,
"created_at": "2026-01-22 14:31:09.123 -0600"
}
}Policies
Get A Policy Rule
Retrieve a single policy rule by ID.
GET
/
policies
/
{policyId}
/
rules
/
{ruleId}
Get policy rule
curl --request GET \
--url https://api.indoralabs.com/policies/{policyId}/rules/{ruleId} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.indoralabs.com/policies/{policyId}/rules/{ruleId}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.indoralabs.com/policies/{policyId}/rules/{ruleId}', 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.indoralabs.com/policies/{policyId}/rules/{ruleId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.indoralabs.com/policies/{policyId}/rules/{ruleId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<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://api.indoralabs.com/policies/{policyId}/rules/{ruleId}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.indoralabs.com/policies/{policyId}/rules/{ruleId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"rule": {
"id": "b87e2a3c-6ef9-4f9b-8e1b-9f9c2c1eab23",
"doc_id": "f1c8e8b0-7a1b-4f34-9b5b-0d99a3c9b77d",
"type": "REDACT",
"target": "all police contact information",
"source_text": "All personal contact information of officers must be redacted",
"source_page": 3,
"offset_start": 120,
"offset_end": 182,
"created_at": "2026-01-22 14:31:09.123 -0600"
}
}⌘I

