---
title: "Validate an authz policy without saving"
method: POST
path: "/authz/policies/validate"
tags: ["authz-policies"]
---

# Validate an authz policy without saving

`POST /authz/policies/validate`

(reserved for future use) Runs the same validation as create (compile + smoke test in a sandbox) but does not persist or activate the policy.

Required scope: \`policy:authz:manage\`

## Request body

- ValidateAuthzPolicyRequest
  - `name` string, required
  - `rego` string, required

## Response `200`

Validation passed (with optional warnings)

- ValidateAuthzPolicyResponse
  - `valid` boolean, required
  - `warnings` string[], required

## Other responses

- `400` — Bad Request - the policy failed validation
- `401` — Unauthorized - Authentication failed
- `403` — Forbidden - the API key is missing the scope required by this endpoint
- `503` — Service Unavailable - authz/OPA is not configured in this environment

## Changes

> 71 revisions in range; 18 not diffed.

- **2026-06-17** `05add33422b2` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/qlonolink/apis/qaip-apis/changes/authz/policies/validate/post.md)

---

[API](https://skmtc.dev/qlonolink/apis/qaip-apis.md) · [All operations](https://skmtc.dev/qlonolink/apis/qaip-apis/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/qlonolink/qaip-apis/revisions/61dc40676905/schema)
