---
title: "Create Registry Credentials"
method: POST
path: "/api/v1/registry/credentials"
tags: ["registry"]
---

# Create Registry Credentials

`POST /api/v1/registry/credentials`

## Request

- Base URL: `https://api.mengi.cloud` (the document declares no server; this is the origin it was published from)
- URL: `https://api.mengi.cloud/api/v1/registry/credentials`
- Auth: none declared

Generate new registry credentials for the active organization.

Creates a Harbor project and robot account. The robot secret is only
returned once - save it immediately!

## Query parameters

- `organization_id` string, uuid, nullable

## Response `200`

Successful Response

- RegistryCredentialCreatedResponse: Response when credential is created (includes password once).
  - `id` string, required
  - `registry_url` string, required
  - `repository_prefix` string, required
  - `username` string, required
  - `password` string, required
  - `docker_login_command` string, required
  - `helm_login_command` string, required
  - `chart_push_url` string, required
  - `is_active` boolean, required
  - `created_at` string, date-time, required
  - `expires_at` string, date-time, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/mengi/apis/mengi-cloud.md) · [All operations](https://skmtc.dev/mengi/apis/mengi-cloud/llms.txt) · [OpenAPI document](https://skmtc.dev/mengi/apis/mengi-cloud/revisions/4ae9b375cdbb?raw)
