---
title: "Check Policies"
method: POST
path: "/api/v1/policies/check"
tags: ["Policy"]
---

# Check Policies

`POST /api/v1/policies/check`

Check policies permissions

## Request body

- PoliciesRules
  - `rules` string[], required — Policies rules list
  - `target` object, nullable — Policies targets

## Response `200`

OK

- Policies
  - `policies` Policy[], required — Policies list
    - `rule` string, required — Policy rule
    - `allowed` boolean, required — Policy allowed

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `422` — Validation Error
- `500` — Internal Server Error

## Changes

- **2026-07-17** `4b7c0ce8c025` — 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
- **2025-07-21** `69284996eaa6` — 1 info
  - request property `target` list-of-types was widened by adding types `null` to media type `application/json`
- **2025-06-24** `0c09cad5e8d9` — 1 breaking
  - response property `detail/items/loc/items/` list-of-types was widened by adding types `integer` to media type `application/json` of response `422`
- **2022-08-19** `033c8fe2fe57` — 1 breaking, 2 warning, 1 info
  - request property `target` list-of-types was narrowed by removing types `null` from media type `application/json`
  - removed the optional property `detail/items/ctx` from the response with the `422` status
  - removed the optional property `detail/items/input` from the response with the `422` status
  - response property `detail/items/loc/items/` list-of-types was narrowed by removing types `integer` from media type `application/json` of response `422`

[Change history](https://skmtc.dev/openstack/apis/skyline-api/changes/api/v1/policies/check/post.md)

---

[API](https://skmtc.dev/openstack/apis/skyline-api.md) · [All operations](https://skmtc.dev/openstack/apis/skyline-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openstack/skyline-api/revisions/4b7c0ce8c025/schema)
