---
title: "Create a new namespace"
method: PUT
path: "/namespaces/{name}"
tags: ["namespaces"]
---

# Create a new namespace

`PUT /namespaces/{name}`

Create a new namespace owned by the authenticated user or an organization. This endpoint is idempotent - if the namespace already exists and is owned by the user/org, returns success. Pass organizationId in the request body to create an org-owned namespace.

## Path parameters

- `name` string, required

## Response `201`

Namespace created successfully

- CreateNamespaceResponse
  - `name` string, required
  - `createdAt` string, required

## Other responses

- `400` — Bad request (invalid name format or user already has a namespace)
- `401` — Unauthorized
- `403` — Forbidden - missing namespaces:write permission
- `409` — Conflict (namespace already exists)

---

[API](https://skmtc.net/smithery-ai/apis/smithery-platform-api.md) · [All operations](https://skmtc.net/smithery-ai/apis/smithery-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/smithery-ai/smithery-platform-api/revisions/60b8c3d2fecf/schema)
