curl --request GET \
--url https://api.waterr.ai/v1/guardrails/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.waterr.ai/v1/guardrails/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.waterr.ai/v1/guardrails/{id}', 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.waterr.ai/v1/guardrails/{id}",
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: 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://api.waterr.ai/v1/guardrails/{id}"
req, _ := http.NewRequest("GET", 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.get("https://api.waterr.ai/v1/guardrails/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.waterr.ai/v1/guardrails/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "9b1f3d70-2a4e-4c8b-8f1a-6d5c4b3a2e10",
"guardrail_name": "no_competitors",
"guardrail_prompt": "Only mention products within Our Company Inc. during conversations; never discuss competitors.",
"active": true,
"membership_id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789",
"scenarios": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"active": true,
"position": 123
}
],
"created_at": "2026-09-09T12:34:56.000Z",
"updated_at": "2026-09-09T12:34:56.000Z"
}Get a guardrail
Fetch one guardrail, including the scenarios it is attached to.
curl --request GET \
--url https://api.waterr.ai/v1/guardrails/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.waterr.ai/v1/guardrails/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.waterr.ai/v1/guardrails/{id}', 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.waterr.ai/v1/guardrails/{id}",
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: 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://api.waterr.ai/v1/guardrails/{id}"
req, _ := http.NewRequest("GET", 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.get("https://api.waterr.ai/v1/guardrails/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.waterr.ai/v1/guardrails/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "9b1f3d70-2a4e-4c8b-8f1a-6d5c4b3a2e10",
"guardrail_name": "no_competitors",
"guardrail_prompt": "Only mention products within Our Company Inc. during conversations; never discuss competitors.",
"active": true,
"membership_id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789",
"scenarios": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"active": true,
"position": 123
}
],
"created_at": "2026-09-09T12:34:56.000Z",
"updated_at": "2026-09-09T12:34:56.000Z"
}Authorizations
API key from waterr.ai/settings?tab=api-keys. Send as Authorization: Bearer wai_<your_key>.
Path Parameters
Guardrail UUID.
Response
The guardrail.
A named prompt fragment. Every guardrail attached to a scenario is appended to that scenario's system prompt as a bullet under a ## Guardrails heading, so the persona treats it as a non-negotiable rule for the whole conversation.
"9b1f3d70-2a4e-4c8b-8f1a-6d5c4b3a2e10"
Handle for the rule. Unique per account. Used in the API and in your logs — it is never shown to the persona or the participant.
64^[a-zA-Z0-9_-]{1,64}$"no_competitors"
The rule itself, appended verbatim to the system prompt. Write it as a direct instruction. Encrypted at rest.
10000"Only mention products within Our Company Inc. during conversations; never discuss competitors."
Account-level kill-switch. false removes the rule from every scenario at once.
true
"a1b2c3d4-e5f6-7890-abcd-ef0123456789"
Scenarios this guardrail is attached to. Returned only on the single-guardrail read.
Show child attributes
Show child attributes
"2026-09-09T12:34:56.000Z"
"2026-09-09T12:34:56.000Z"

