POST
/
v4
/
guardrails
/
{id}
/
execute

Authorizations

x-api-key
string
headerrequired

Headers

x-selected-account-id
string | null

Path Parameters

id
string
required

Body

application/json

Execute a Guardrail to see if chat thread are compliant with configured GuardrailPolicy

Parameters: messages: List[Message] - list of messages to be checked verbose: bool - whether to include detailed information in the response, like safe categories and policy descriptions

messages
object[]
required
verbose
boolean
default: false

Response

200 - application/json
is_safe
boolean
required
score
number
required
unsafe_categories
object[]
required
safe_categories
object[]
required
severity
enum<string>
Available options:
low,
high
metadata
object
verbose
boolean
default: false