curl --request GET \
--url "https://api-prod.usefini.com/v2/guardrail-policies/check-types/public" \
--header "Authorization: Bearer $FINI_API_KEY"
const response = await fetch("https://api-prod.usefini.com/v2/guardrail-policies/check-types/public", {
method: "GET",
headers: { Authorization: `Bearer ${process.env.FINI_API_KEY}` },
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());
import os
import requests
response = requests.get(
"https://api-prod.usefini.com/v2/guardrail-policies/check-types/public",
headers={"Authorization": f"Bearer {os.environ['FINI_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
print(response.json())
[
{
"type": "banned_terms",
"label": "Banned terms",
"description": "Blocks replies that mention listed words, phrases (competitors, forbidden products) or match regular expressions. Case-insensitive, whole-word matching.",
"evaluation": "deterministic",
"repeatable": false,
"configFields": [
{
"key": "terms",
"label": "Terms",
"description": "Words or phrases matched as whole words, case-insensitive.",
"kind": "string_list",
"required": false
},
{
"key": "patterns",
"label": "Regex patterns",
"description": "JavaScript regular expressions (case-insensitive, unicode). Keep them simple; nested repetitions are rejected.",
"kind": "regex_list",
"required": false
}
]
}
]
Guardrails
List guardrail check types
List guardrail check types through the workspace-scoped public API.
GET
/
v2
/
guardrail-policies
/
check-types
/
public
curl --request GET \
--url "https://api-prod.usefini.com/v2/guardrail-policies/check-types/public" \
--header "Authorization: Bearer $FINI_API_KEY"
const response = await fetch("https://api-prod.usefini.com/v2/guardrail-policies/check-types/public", {
method: "GET",
headers: { Authorization: `Bearer ${process.env.FINI_API_KEY}` },
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());
import os
import requests
response = requests.get(
"https://api-prod.usefini.com/v2/guardrail-policies/check-types/public",
headers={"Authorization": f"Bearer {os.environ['FINI_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
print(response.json())
[
{
"type": "banned_terms",
"label": "Banned terms",
"description": "Blocks replies that mention listed words, phrases (competitors, forbidden products) or match regular expressions. Case-insensitive, whole-word matching.",
"evaluation": "deterministic",
"repeatable": false,
"configFields": [
{
"key": "terms",
"label": "Terms",
"description": "Words or phrases matched as whole words, case-insensitive.",
"kind": "string_list",
"required": false
},
{
"key": "patterns",
"label": "Regex patterns",
"description": "JavaScript regular expressions (case-insensitive, unicode). Keep them simple; nested repetitions are rejected.",
"kind": "regex_list",
"required": false
}
]
}
]
Returns an array describing available checks, their evaluation kind, repeatability, and configuration fields. The example shows one catalogue entry; the full response contains all six types.
See the Guardrails overview for shared schemas and runtime limitations.
string
required
Bearer workspace API key. The key needs
read scope.Response
array
Descriptors with
type, label, description, evaluation (deterministic, llm, or hybrid), repeatable, and configFields. Each field has key, label, description, kind, and required.curl --request GET \
--url "https://api-prod.usefini.com/v2/guardrail-policies/check-types/public" \
--header "Authorization: Bearer $FINI_API_KEY"
const response = await fetch("https://api-prod.usefini.com/v2/guardrail-policies/check-types/public", {
method: "GET",
headers: { Authorization: `Bearer ${process.env.FINI_API_KEY}` },
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());
import os
import requests
response = requests.get(
"https://api-prod.usefini.com/v2/guardrail-policies/check-types/public",
headers={"Authorization": f"Bearer {os.environ['FINI_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
print(response.json())
[
{
"type": "banned_terms",
"label": "Banned terms",
"description": "Blocks replies that mention listed words, phrases (competitors, forbidden products) or match regular expressions. Case-insensitive, whole-word matching.",
"evaluation": "deterministic",
"repeatable": false,
"configFields": [
{
"key": "terms",
"label": "Terms",
"description": "Words or phrases matched as whole words, case-insensitive.",
"kind": "string_list",
"required": false
},
{
"key": "patterns",
"label": "Regex patterns",
"description": "JavaScript regular expressions (case-insensitive, unicode). Keep them simple; nested repetitions are rejected.",
"kind": "regex_list",
"required": false
}
]
}
]
Was this page helpful?

