---
title: "Create registry"
method: POST
path: "/api/registries"
tags: ["Registries"]
---

# Create registry

`POST /api/registries`

Adds a new private container registry. The secret is encrypted at rest using AES-256-GCM.
Admin role required. Docker Hub, GHCR, and custom registries are available on every tier. Creating an AWS ECR registry requires an Admiral license. API tokens receive `SCOPE_DENIED`.

## Request body

- RegistryCreate
  - `name` string, required
  - `url` string, required
  - `type` 'dockerhub' | 'ghcr' | 'ecr' | 'custom', required
  - `username` string, required
  - `secret` string, required — Password, token, or access key. Write-only — never returned in GET responses.
  - `aws_region` string — Required when `type` is `ecr`.

## Response `201`

Registry created.

- object
  - `id` integer, required

## Other responses

- `400` — Validation error.
- `403` — Insufficient permissions or license tier.
- `500` — Internal server error.

## Changes

- **2026-06-04** `d58cf9d6195b` — 3 info
  - removed the `ADMIRAL_REQUIRED` enum value from the `code` response property for the response status `400`
  - removed the `ADMIRAL_REQUIRED` enum value from the `code` response property for the response status `403`
  - removed the `ADMIRAL_REQUIRED` enum value from the `code` response property for the response status `500`
- **2026-04-05** `7464894ea582` — 3 warning, 3 info
  - added the new `PAID_REQUIRED` enum value to the `code` response property for the response status `400`
  - added the new `PAID_REQUIRED` enum value to the `code` response property for the response status `403`
  - added the new `PAID_REQUIRED` enum value to the `code` response property for the response status `500`
  - removed the `PRO_REQUIRED` enum value from the `code` response property for the response status `400`
  - …2 more
- **2026-04-05** `a202861afa64` — 1 info
  - endpoint added
- **2026-04-03** `82927cbcc9f7` — 1 breaking
  - api path removed without deprecation
- **2026-04-02** `b98c5381766d` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/studio-saelix/apis/sencho-api/changes/api/registries/post.md)

---

[API](https://skmtc.dev/studio-saelix/apis/sencho-api.md) · [All operations](https://skmtc.dev/studio-saelix/apis/sencho-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/studio-saelix/sencho-api/revisions/82aac94c016e/schema)
