policy management

Test Policy Template

Changed on

Test a policy template's guardrails against a text input without creating them.

Instantiates temporary guardrails from the template definitions, runs them against the provided text, and returns per-guardrail results so users can verify the template solves their problem before creating it.

post/policy/templates/test

Request

  • Base URL
    https://api.flock.io (the document declares no server; this is the origin it was published from)
  • URL
    https://api.flock.io/policy/templates/test
  • Auth
    API key in header x-litellm-api-key

Request body

guardrail_definitionsobject[] required

All guardrailDefinitions from the policy template

textstring required

Test input text to run guardrails against

Response

Successful Response

overall_actionstring required

Changes