Skip to main content
GET
/
api
/
v1
/
guardrail-policies
/
presets
List Preset Templates
curl --request GET \
  --url https://api.example.com/api/v1/guardrail-policies/presets

Documentation Index

Fetch the complete documentation index at: https://docs.hitheo.ai/llms.txt

Use this file to discover all available pages before exploring further.

Returns the four hand-curated preset templates: pii-safe, strict-json, cost-conscious, and enterprise-default. Presets are read-only — applying one is a normal create policy call seeded with the preset’s rules array. Per the strict opt-in contract, fetching or applying a preset never auto-binds it to an API key.

Authentication

Requires a Bearer token with the billing API key scope.

Request Examples

curl https://www.hitheo.ai/api/v1/guardrail-policies/presets \
  -H "Authorization: Bearer $THEO_API_KEY"

Response

Each preset includes id, name, tagline, description, and rules. The four shipping presets are:
  • pii-safe — PII redaction on input.
  • strict-json — Prompt-injection deny + JSON repair on output.
  • cost-conscious — Hard length cap on both phases (~4K tokens).
  • enterprise-default — Full stack: PII redaction + injection deny + length cap + profanity flag + JSON repair.
{
  "presets": [
    {
      "id": "pii-safe",
      "name": "PII-safe",
      "tagline": "Redact email / phone / SSN / credit-card / DL before the model sees them.",
      "description": "Sensible default for compliance-sensitive teams. ...",
      "rules": [
        {
          "guardrail_id": "pii_redactor",
          "phase": "input",
          "verdict": "redact",
          "config": {},
          "enabled": true,
          "rule_order": 0
        }
      ]
    }
  ]
}