Exclude known-safe phrases from prompt injection detection.
The prompt injection allowlist lets you mark specific phrases as safe so they are not caught by the regex-based prompt injection detection guardrail. This is useful when your application legitimately uses language that overlaps with injection patterns — for example, a security-training chatbot that discusses prompt injection techniques, or a customer-support agent whose canned responses include phrases like "ignore previous instructions."
The allowlist only applies to regex-based detection patterns. Evasion detectors — typoglycemia and Base64/hex encoding — are not affected, because they operate on decoded or normalized text where selective phrase exemption is not meaningful.
When a request is scanned, allowlisted phrases are masked before the detection patterns run:
[PROMPT_INJECTION].You can allowlist one phrase while still catching other attacks in the same message: only the exact phrases you allowlisted are exempt.
flag, redact, and block.Manage your allowlist in Settings → Guardrails, under the Prompt injection detection section. (The dashboard persists it through the session-authenticated PUT /api/user/guardrails — a dashboard endpoint, not part of the key-authenticated /v1 API.)
Phrases are trimmed, blanks are dropped, and duplicates are rejected case-insensitively.