Skip to main content
POST
Create Guardrail

Authorizations

apikey
string
header
required

Body

application/json
name
string
required

The guardrail name

Example:

"My Guardrail"

description
string

Optional description of the guardrail

Example:

"Guardrail for production chatbot"

input
GuardrailsDetectorsObject · object

Detector configuration applied to input/prompt text

output
GuardrailsDetectorsObject · object

Detector configuration applied to output/response text

Response

200 - application/json

Successful Response

message
string
Example:

"Guardrail details added successfully"

data
GuardrailResponseObject · object