cURL
curl --request POST \ --url https://api.enkryptai.com/guardrails/add-policy \ --header 'Content-Type: application/json' \ --header 'apikey: <api-key>' \ --data ' { "name": "<string>", "description": "<string>", "detectors": {} } '
{ "message": "Policy details added successfully" }
Create a new policy for guardrails
Show child attributes
Successful Response
"Policy details added successfully"