latestOpenAPI 3.1.02026-08-226994571.1 MB

1e929292ddd5

policy management

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