---
title: "Add registry credentials"
method: POST
path: "/v1/container-registry-credentials"
tags: ["Serverless Containers"]
---

# Add registry credentials

`POST /v1/container-registry-credentials`

## Request body

- CreateRegistryCredentialsPublicApiDto
  - `name` string, required — Name of the registry credential
  - `type` 'verda' | 'gcr' | 'dockerhub' | 'ghcr' | 'aws-ecr' | 'scaleway' | 'custom', required — Type of the container registry
  - `username` string — Username for the Docker Hub registry, if selected type is DockerHub
  - `access_token` string — Access token for the registry, if selected type is DockerHub or Github
  - `service_account_key` string — Service account key for the Google Cloud Registry (Google Artifact Registry), if selected type is GCR
  - `docker_config_json` string — Docker config JSON for the custom registry, if selected type is Custom
  - `access_key_id` string — Access key ID for the AWS Elastic Container Registry, if selected type is AWSECR
  - `secret_access_key` string — Secret access key for the AWS Elastic Container Registry, if selected type is AWSECR
  - `region` string — Region for the AWS Elastic Container Registry, if selected type is AWSECR
  - `ecr_repo` string — Repository for the AWS Elastic Container Registry, if selected type is AWSECR
  - `scaleway_domain` string — Region-specific domain, if selected type is Scaleway
  - `scaleway_uuid` string — API secret key, if selected type is Scaleway

## Response `201`

## Other responses

- `401` — Unauthorized

---

[API](https://skmtc.net/datacrunch/apis/verda-cloud-public-api.md) · [All operations](https://skmtc.net/datacrunch/apis/verda-cloud-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/datacrunch/verda-cloud-public-api/revisions/0d66c7340876/schema)
