send-request on inbound (prompt) and outbound (completion).
Coverage
Ask — the policy maps the verdict onto a boolean, so an
ask gate is
allowed and recorded. Write the rule as Block if you need a hard stop.
Use it when you publish AI APIs through APIM and want the control alongside
your other policies. Not when you will only deploy the inbound policy and
expect full coverage — without the outbound one, completions are never inspected.
Limits. No masking in the documented policy. preserveContent: true is not
optional: without it the body is consumed and your backend receives an empty
request.
Full comparison: Coverage.
- Create an API key on the collector.
- Inbound:
POSTevaluate withdirection: "input". Return 403 onblock; rewrite the body fromtransformed_payloadontransform. - Outbound: same with
direction: "output".