Skip to main content
Detects threats in text using a saved guardrail. Unlike the legacy Policy Detect, guardrail detection uses the X-Enkrypt-Mode header to select between input and output detectors.
  • X-Enkrypt-Mode: prompt — applies the guardrail’s input detectors
  • X-Enkrypt-Mode: response — applies the guardrail’s output detectors

Example request:

Example response:

JSON