List guardrails attached to a scenario
curl --request GET \
--url https://api.waterr.ai/v1/scenarios/{scenarioId}/guardrails \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.waterr.ai/v1/scenarios/{scenarioId}/guardrails"
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/scenarios/{scenarioId}/guardrails', 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/scenarios/{scenarioId}/guardrails",
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/scenarios/{scenarioId}/guardrails"
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/scenarios/{scenarioId}/guardrails")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.waterr.ai/v1/scenarios/{scenarioId}/guardrails")
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{
"data": [
{
"id": "c7e4a2b1-8f3d-4e6a-9b0c-1d2e3f4a5b6c",
"scenario_id": "7e3b9c2a-1d4f-4a1b-bdc6-9c8b2d3f4e5a",
"guardrail_id": "9b1f3d70-2a4e-4c8b-8f1a-6d5c4b3a2e10",
"active": true,
"position": 0,
"guardrail": {
"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"
},
"created_at": "2026-09-09T12:35:00.000Z",
"updated_at": "2026-09-09T12:35:00.000Z"
}
]
}Guardrails
List guardrails attached to a scenario
Return every guardrail attached to the scenario, ordered by position — the same order they appear in the system prompt. Each row embeds the full definition under guardrail.
GET
/
scenarios
/
{scenarioId}
/
guardrails
List guardrails attached to a scenario
curl --request GET \
--url https://api.waterr.ai/v1/scenarios/{scenarioId}/guardrails \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.waterr.ai/v1/scenarios/{scenarioId}/guardrails"
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/scenarios/{scenarioId}/guardrails', 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/scenarios/{scenarioId}/guardrails",
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/scenarios/{scenarioId}/guardrails"
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/scenarios/{scenarioId}/guardrails")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.waterr.ai/v1/scenarios/{scenarioId}/guardrails")
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{
"data": [
{
"id": "c7e4a2b1-8f3d-4e6a-9b0c-1d2e3f4a5b6c",
"scenario_id": "7e3b9c2a-1d4f-4a1b-bdc6-9c8b2d3f4e5a",
"guardrail_id": "9b1f3d70-2a4e-4c8b-8f1a-6d5c4b3a2e10",
"active": true,
"position": 0,
"guardrail": {
"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"
},
"created_at": "2026-09-09T12:35:00.000Z",
"updated_at": "2026-09-09T12:35:00.000Z"
}
]
}
