Skip to main content
Use 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.
  1. Create an API key on the collector.
  2. Inbound: POST evaluate with direction: "input". Return 403 on block; rewrite the body from transformed_payload on transform.
  3. Outbound: same with direction: "output".