---
title: "Creates a new policy"
method: POST
path: "/policy/{packageName}"
tags: ["Policy", "PolicyVersion"]
---

# Creates a new policy

`POST /policy/{packageName}`

## Path parameters

- `packageName` string, required

## Request body

- PolicyCreate
  - `activeVersion` string, required — Active version of the policy; must be an exact semver
  - `title` string, required — Policy title for displaying to users in the dashboard/Vincent Explorer UI
  - `description` string, required — Policy description - displayed to users in the dashboard/Vincent Explorer UI

## Response `200`

Successful operation

- Policy
  - `_id` string, required — Document ID
  - `updatedAt` string, date-time, required — Timestamp when this was last modified
  - `createdAt` string, date-time, required — Timestamp when this was created
  - `packageName` string, required — Policy NPM package name
  - `authorWalletAddress` string, required — Author wallet address. Derived from the authorization signature provided by the creator.
  - `description` string, required — Policy description - displayed to users in the dashboard/Vincent Explorer UI
  - `activeVersion` string, required — Active version of the policy; must be an exact semver
  - `title` string, required — Policy title for displaying to users in the dashboard/Vincent Explorer UI

## Other responses

- `400` — Invalid input
- `422` — Validation exception
- `default` — Unexpected error

## Changes

- **2025-06-28** `f36ee26d6286` — 1 warning, 1 info
  - removed the request property `authorWalletAddress`
  - the response required property `authorWalletAddress` became read-only for the status `200`
- **2025-06-28** `f7b25b5b140b` — 4 info
  - the endpoint scheme security `siweAuth` was added to the API
  - api tag `Policy` added
  - api tag `PolicyVersion` added
  - api tag `policy` removed
- **2025-06-24** `c5c831298b16` — 1 info
  - endpoint added
- **2025-06-19** `e514cea423bb` — 1 breaking
  - api removed without deprecation

[Change history](https://skmtc.dev/lit-protocol/apis/vincent-registry-api/changes/policy/:packageName/post.md)

---

[API](https://skmtc.dev/lit-protocol/apis/vincent-registry-api.md) · [All operations](https://skmtc.dev/lit-protocol/apis/vincent-registry-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/lit-protocol/vincent-registry-api/revisions/7a8a3bcdf96f/schema)
