---
title: "Create a new container registry auth"
method: POST
path: "/containerregistryauth"
tags: ["container registry auths"]
---

# Create a new container registry auth

`POST /containerregistryauth`

Create a new container registry auth. Review authentication, request parameters, response fields, and errors for this Runpod API operation.

## Request body

- ContainerRegistryAuthCreateInput
  - `name` string, required — A user-defined name for a container registry authentication. The name must be unique.
  - `password` string, required — The password for the container registry.
  - `username` string, required — The username for the container registry.

## Response `200`

Successful operation.

- ContainerRegistryAuth
  - `id` string — A unique string identifying a container registry authentication.
  - `name` string — A user-defined name for a container registry authentication. The name must be unique.

## Other responses

- `400` — Invalid input.

---

[API](https://skmtc.dev/runpod/apis/runpod-rest-api.md) · [All operations](https://skmtc.dev/runpod/apis/runpod-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/runpod/runpod-rest-api/revisions/504cd0394ed6/schema)
