Guardrails
Create Guardrail Policy
Author a new guardrail policy.
POST
Create Guardrail Policy
Create a new guardrail policy. Idempotent — the sameDocumentation Index
Fetch the complete documentation index at: https://docs.hitheo.ai/llms.txt
Use this file to discover all available pages before exploring further.
Idempotency-Key header replays the same response.
Creating a policy does not auto-bind it to a key. Use PUT /api/v1/keys//guardrails to opt a key in.
Authentication
Requires a Bearer token with thebilling API key scope.
Body
Policy name. 1–128 chars. May not reference upstream provider names.
Free-text description. Up to 512 chars.
Up to 32 rule objects. Each rule has
guardrail_id, phase, verdict, and an optional config bag."personal" (default) or "team". Team scope requires an active org and the manageWebhooks permission.Mark this policy as the default for its scope. At most one default per scope.
Request Examples
Errors
400 guardrail_policy_invalid— Unknown guardrail id, disallowed verdict for the builtin, vendor-named label, or rule cap exceeded.403 missing_scope— API key lacks thebillingscope.409 conflict—is_default: truealready set for this scope.
Create Guardrail Policy
