This endpoint creates a new set of guardrails for a persona. Guardrails provide strict behavioral boundaries and guidelines that will be rigorously followed throughout conversations.
POST
/
v2
/
guardrails
Create Guardrails
Copy
Ask AI
curl --request POST \ --url https://tavusapi.com/v2/guardrails \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data '{ "name": "<string>", "data": [ { "guardrails_name": "Healthcare Compliance Guardrail", "guardrails_prompt": "Never discuss competitor products, share sensitive medical information, or provide medical advice outside approved guidelines", "modality": "verbal", "callback_url": "https://your-server.com/guardrails-webhook" } ]}'