API ReferenceGuardrails
Authorization
bearerAuth AuthorizationBearer <token>
appSecret or sessionToken
In: header
Request Body
application/json
type*string
Rule type (regex, keyword, etc.)
pattern*string
Regex or keyword pattern
action*string
Action on match (block, warn, log)
userMessage?string
Custom message shown when rule triggers
Response Body
application/json
curl -X POST "https://your-convex-deployment.convex.site/api/guardrails/rules" \ -H "Content-Type: application/json" \ -d '{ "type": "string", "pattern": "string", "action": "string" }'{}Edit on GitHub
Last updated on