---
title: "Create a new registry secret"
method: POST
path: "/api/v2/namespaces/{namespace}/registries"
tags: ["registries"]
---

# Create a new registry secret

`POST /api/v2/namespaces/{namespace}/registries`

## Request body

- object
  - `url` string — url of the registry
  - `user` string — username of the registry
  - `password` string — password string

## Response `200`

Created registry object returned

- object
  - `id` string — a unique string that represent id of the registry
  - `namespace` string — the namespace of registry belongs
  - `url` string — url of the registry
  - `user` string — anonymize username of the registry

---

[API](https://skmtc.net/direktiv/apis/direktiv-apiv2-reference.md) · [All operations](https://skmtc.net/direktiv/apis/direktiv-apiv2-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/direktiv/direktiv-apiv2-reference/revisions/ad935afb0f54/schema)
