---
title: "Create a registry"
method: POST
path: "/api/v2/sandboxes/registries"
tags: ["sandboxes"]
---

# Create a registry

`POST /api/v2/sandboxes/registries`

## Request

- Base URL: `https://api.smith.langchain.com`
- URL: `https://api.smith.langchain.com/api/v2/sandboxes/registries`
- Auth: one of:
  - API key in header `X-API-Key`
  - API key in header `X-Tenant-Id`
  - HTTP bearer

Create a sandbox registry for pulling private images.

## Request body

- SandboxesCreateRegistryPayload
  - `auth_type` 'DOCKER_CONFIG' | 'AWS_ROLE'
  - `aws_role_arn` string
  - `name` string, required
  - `password` string
  - `url` string, required
  - `username` string

## Response `201`

Created

- SandboxesRegistryResponse
  - `auth_type` 'DOCKER_CONFIG' | 'AWS_ROLE'
  - `aws_role_arn` string
  - `created_at` string
  - `created_by` string
  - `id` string
  - `name` string
  - `provider` 'DOCKER_REGISTRY' | 'HARBOR' | 'GHCR' | 'ECR' | 'GAR' | 'DOCKER_HUB'
  - `repository_search_mode` 'GLOBAL' | 'SCOPED' | 'NONE'
  - `updated_at` string
  - `updated_by` string
  - `url` string

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `409`: Conflict
- `500`: Internal Server Error
- `501`: AWS IAM role authentication is not configured

## Changes

- **2026-10-16** `1a8ee9358d81`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/langchain-ai/apis/langsmith/changes/api/v2/sandboxes/registries/post.md)

---

[API](https://skmtc.dev/langchain-ai/apis/langsmith.md) - [All operations](https://skmtc.dev/langchain-ai/apis/langsmith/llms.txt) - [OpenAPI document](https://skmtc.dev/langchain-ai/apis/langsmith/revisions/7a01c01f75e8?raw)
