---
title: "POST /v2/vals"
method: POST
path: "/v2/vals"
tags: ["vals"]
---

# POST /v2/vals

`POST /v2/vals`

Create a new val

## Request body

- object — Val information provided to create a new val
  - `name` string, required
  - `description` string
  - `privacy` 'public' | 'unlisted' | 'private', required
  - `orgId` string, uuid — ID of the org to create the val in

## Response `201`

A Val

- Val — A Val
  - `name` string, required
  - `id` string, uuid, required — The id of the val
  - `createdAt` string, date-time, required
  - `privacy` 'public' | 'unlisted' | 'private', required — This resource's privacy setting. Unlisted resources do not appear on profile pages or elsewhere, but you can link to them.
  - `author` object, required
    - `type` union, required
      - 'user'
      - 'org'
    - `id` string, uuid, required
    - `username` string, nullable, required
  - `imageUrl` string, nullable, required — The URL of this val's image
  - `description` string, nullable, required
  - `links` object, required
    - `self` string, uri, required — The URL of this resource on this API
    - `html` string, uri, required — The URL of this resource on Val Town

## Other responses

- `409` — Conflict: Project name already exists

## Changes

- **2026-08-05** `4d8b6d2e6db3` — 1 warning
  - changed the pattern of the request property `name` from `^[a-zA-Z][a-zA-Z0-9\-_]*$` to `^(\.config|[a-zA-Z][a-zA-Z0-9\-_]*)$`
- **2026-03-18** `7ca4c991c6cc` — 2 breaking
  - the `privacy` request property type/format changed from `string`/`` to ``/``
  - the `privacy` response's property type/format changed from `string`/`` to ``/`` for status `201`
- **2025-08-13** `db013824dc13` — 1 info
  - added the new optional request property `orgId`
- **2025-08-12** `2fa9b43f5225` — 1 info
  - added the required property `author/type` to the response with the `201` status
- **2025-05-01** `137af5a9771c` — 1 info
  - added the required property `imageUrl` to the response with the `201` status

[Full history](https://skmtc.dev/val-town/apis/val-town-api/changes/v2/vals/post.md)

---

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