latestOpenAPI 3.1.02026-08-197104501.1 MB

8fbaab4fc7c5

policies

Test Policy Template

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 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