> ## 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.

# 列出預設模板

> 儀表盤在護欄空狀態下提供的只讀藍圖。

返回四個精心策劃的預設模板：`pii-safe`、`strict-json`、`cost-conscious` 和 `enterprise-default`。預設是隻讀的——應用某個預設只是一次普通的[創建策略](/api-reference/guardrails/create-policy)調用，只不過用該預設的 `rules` 數組作為初始值。

根據嚴格的顯式啓用（opt-in）約定，獲取或應用預設永遠不會自動將其綁定到某個 API 密鑰。

## 身份驗證

需要攜帶具備 `billing` API 密鑰權限範圍的 Bearer 令牌。

## 請求示例

<CodeGroup>
  ```bash curl theme={null}
  curl https://www.hitheo.ai/api/v1/guardrail-policies/presets \
    -H "Authorization: Bearer $THEO_API_KEY"
  ```

  ```typescript SDK theme={null}
  const presets = await theo.guardrails.presets.list();
  const enterprise = presets.find((p) => p.id === "enterprise-default")!;

  const policy = await theo.guardrails.policies.create({
    name: "Production defaults",
    rules: enterprise.rules,
  });
  ```
</CodeGroup>

## 響應

每個預設都包含 `id`、`name`、`tagline`、`description` 和 `rules`。目前提供的四個預設分別是：

* **pii-safe** —— 對輸入進行 PII（個人身份信息）遮蔽。
* **strict-json** —— 提示注入拒絕 + 輸出端 JSON 修復。
* **cost-conscious** —— 對輸入和輸出兩個階段都設置硬性長度上限（約 4K 令牌）。
* **enterprise-default** —— 完整組合：PII 遮蔽 + 注入拒絕 + 長度上限 + 不當言論標記 + JSON 修復。

```json theme={null}
{
  "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
        }
      ]
    }
  ]
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.