---
title: "Create Policy Route"
method: POST
path: "/api/v1/policies"
tags: ["policies"]
---

# Create Policy Route

`POST /api/v1/policies`

## Headers

- `Authorization` string, nullable
- `X-Request-ID` string, nullable

## Request body

- PolicyCreate
  - `name` string, required
  - `category` string, required
  - `summary` string, required
  - `rego` string, required
  - `stage` string
  - `enforcement_mode` 'enforce' | 'monitor'
  - `response_body_mode` 'none' | 'streamed'

## Response `201`

Successful Response

- PolicyRead
  - `id` string, uuid, required
  - `proxy_id` string, uuid, nullable, required
  - `org_id` string, uuid, required
  - `owner_id` string, uuid, nullable, required
  - `name` string, required
  - `category` string, required
  - `summary` string, required
  - `rego` string, required
  - `enabled` boolean, required
  - `stage` string, required
  - `enforcement_mode` string
  - `response_body_mode` string
  - `template_id` string, nullable
  - `template_version` integer, nullable
  - `framework_tags` string[], nullable
  - `parameter_values` object, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-08-18** `4e9892b1f604` — 4 info
  - added the new optional request property `enforcement_mode`
  - added the new optional request property `response_body_mode`
  - added the optional property `enforcement_mode` to the response with the `201` status
  - added the optional property `response_body_mode` to the response with the `201` status

[Change history](https://skmtc.dev/xenovia/apis/controlplane/changes/api/v1/policies/post.md)

---

[API](https://skmtc.dev/xenovia/apis/controlplane.md) · [All operations](https://skmtc.dev/xenovia/apis/controlplane/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/xenovia/controlplane/revisions/18ce94490752/schema)
