Skip to main content
Policies run on the standard inference endpoints: Published policies scoped to your organization or project apply automatically. You do not need to change the endpoint, API key, or request body to use them. To add a published policy configured as Only when selected, include its ID in the top-level policy_ids array. The field is available on all three inference endpoints:
This example is a Chat Completions body. For Responses or Messages, keep their normal request shape and add policy_ids at the top level. IDs must refer to published policies available to the caller’s organization and project. The field does not replace policies that already apply automatically. If a policy blocks or fails, the API returns its normal endpoint-specific error format. A response policy can delay output, including streamed output, until evaluation finishes. See Use policies.
Last modified on October 1, 2026