---
title: "Create Policy"
method: POST
path: "/v1/policies/"
tags: ["Agent Environment", "policies"]
---

# Create Policy

`POST /v1/policies/`

Create a new policy.

## Request body

- PolicyCreate — Request model for creating a policy.
  - `id` string, uuid, nullable
  - `name` string, required
  - `description` string, nullable
  - `category` 'privacy' | 'ethics' | 'security' | 'compliance' | 'operational' | 'brand' | 'custom', required — Category of policy document.
  - `source_text` string, nullable
  - `tags` string[], nullable

## Response `201`

Successful Response

- Policy — Domain model for Policy document.
  - `id` string, uuid, required
  - `team_id` string, uuid, required
  - `name` string, required
  - `description` string, nullable
  - `category` 'privacy' | 'ethics' | 'security' | 'compliance' | 'operational' | 'brand' | 'custom', required — Category of policy document.
  - `status` 'draft' | 'active' | 'archived' — Status of a policy document.
  - `source_text` string, nullable
  - `file_path` string, nullable
  - `file_name` string, nullable
  - `file_type` string, nullable
  - `file_size_bytes` integer, nullable
  - `converted_file_path` string, nullable
  - `is_preset` boolean
  - `preset_source` string, nullable
  - `tags` string[], nullable
  - `created_at` integer, required
  - `updated_at` integer, required
  - `created_by` string, uuid, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/vijilai/apis/vijil-console-api-combined.md) · [All operations](https://skmtc.net/vijilai/apis/vijil-console-api-combined/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vijilai/vijil-console-api-combined/versions/a8b2ee2b2d06/schema)
