Skip to main content
Legacy: This page documents the legacy Policy API. Use the new Guardrail API instead, which supports separate input/output detector configurations.
Guardrails Policy is a powerful tool for managing and implementing content detection and filtering policies. Here’s what we offer:

Policy Management

  1. Add Policy
    • Create new policies with custom configurations.
    • Specify policy name, description, and detectors.
  1. Get Policy
    • Retrieve existing policies by name.
    • Option to refresh the cache if current data is outdated.
  1. Modify Policy
    • Modify existing policies.
    • Update name, description, and detector configurations.
  1. Delete Policy
    • Remove policies that are no longer needed.
  1. List Policies
    • Retrieve a list of all policies.

Policy Usage

  1. Detect Using Policy
    • Apply a specific policy to detect and filter content.
    • Utilize custom configurations for various use cases.