Skip to main content
POST
/
guardrails
/
add-guardrail
Create Guardrail
curl --request POST \
  --url https://api.enkryptai.com/guardrails/add-guardrail \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '
{
  "name": "My Guardrail",
  "description": "Guardrail for production chatbot",
  "input": {},
  "output": {}
}
'
{
  "message": "Guardrail details added successfully"
}

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