---
title: "Create a repository"
method: POST
path: "/v1/vcr/repository"
tags: ["vcr"]
---

# Create a repository

`POST /v1/vcr/repository`

## Request

- Base URL: `https://api.vercel.com`
- URL: `https://api.vercel.com/v1/vcr/repository`
- Auth: HTTP bearer

Create a container registry repository for a project.

## Query parameters

- `teamId` string
- `slug` string

## Request body

- object
  - `projectId` string, required: Project ID or name (slug) within the authenticated team. IDs take precedence over names. Missing or empty values return HTTP 400.
  - `name` string, required: Single Docker repository name component.

## Response `200`

- object
  - `repository` VcrRepository, required: A Vercel Container Registry repository.
    - `createdAt` string, required: ISO 8601 timestamp of when the repository was created.
    - `id` string, required: Unique identifier of the repository.
    - `name` string, required: Name of the repository.
    - `projectId` string, required: Identifier of the project the repository belongs to.
    - `public` false | true, required: Whether the repository is public. Images in public repositories can be pulled by anyone. Defaults to `false` (private).
    - `updatedAt` string, required: ISO 8601 timestamp of when the repository was last updated.

## Other responses

- `400`: One of the provided values in the request body is invalid.
- `401`: The request is not authorized.
- `402`: The account is missing a payment so payment method must be updated
- `403`: You do not have permission to access this resource.
- `404`
- `409`
- `410`

## Changes

- **2026-08-04** `0b0420c2223a`: 1 info
  - added the required property `repository/public` to the response with the `200` status
- **2026-07-21** `2ae10ee9d21c`: 1 info
  - added the non-success response with the status `410`
- **2026-07-08** `3ff660568354`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/vercel/apis/vercel-api/changes/v1/vcr/repository/post.md)

---

[API](https://skmtc.dev/vercel/apis/vercel-api.md) - [All operations](https://skmtc.dev/vercel/apis/vercel-api/llms.txt) - [OpenAPI document](https://skmtc.dev/vercel/apis/vercel-api/revisions/60686c0e1f6a?raw)
