Guardrails provide a powerful way to manage and implement content detection and filtering with separate configurations for input (prompt) and output (response) scanning. Unlike the legacy Policy API, guardrails support separate input and output detector configurations in a single entity.Documentation Index
Fetch the complete documentation index at: https://docs.enkryptai.com/llms.txt
Use this file to discover all available pages before exploring further.
Guardrail Management
-
Add Guardrail
- Create new guardrails with separate input and output detector configurations.
- Specify guardrail name, description, and detector settings for each direction.
Example Response
-
Get Guardrail
- Retrieve existing guardrails by name.
- Option to refresh the cache if current data is outdated.
-
Modify Guardrail
- Update existing guardrails.
- Modify name, description, and input/output detector configurations.
- Delete Guardrail
- Remove guardrails that are no longer needed.
- List Guardrails
- Retrieve a paginated list of all guardrails.
Guardrail Detection
UseX-Enkrypt-Mode to specify which detectors to apply:
prompt— applies the input detectors (for scanning user prompts)response— applies the output detectors (for scanning model responses)
- Detect Using Guardrail
- Apply a guardrail to detect and filter content in a single text.
- Batch Detect Using Guardrail
- Analyze multiple texts at once using a guardrail.

