---
title: "Create a namespace"
method: POST
path: "/namespace"
tags: ["Namespace"]
---

# Create a namespace

`POST /namespace`

Create a new namespace in an existing account.

## Request body

- NamespaceCreate
  - `name` string, required — The name of the namespace. Represents a department, team, or logical unit within your organization.
  - `account_id` integer, required — The ID of the account that owns this namespace.

## Response `200`

The operation was successful.

- Namespace
  - `id` integer, required — A system-wide unique ID for the namespace.
  - `name` string, required — The name of the namespace.
  - `status` 'active' | 'inactive', required — The status of the namespace.
  - `slug` string, required — An account-wide unique slug for the namespace.
  - `account_id` integer, required — The ID of the account that owns this namespace.
  - `metadata` ComponentsSchemasMetadataComponent — The metadata loaded via metadata catalog API.
    - `key` string — The key of the metadata.
    - `value` string — The value of the metadata.
    - `additional_properties` object — Additional properties of the metadata.
      - `schemas` unknown[] — The schemas of the metadata, in JSON format.
        - unknown
      - `tags` object[]
        - `key` string
        - `value` string

## Other responses

- `4XX` — Client error responses due to invalid input or missing parameters.
- `5XX` — Server error responses indicating an issue on the API side.

---

[API](https://skmtc.dev/nullplatform/apis/nullplatform-api.md) · [All operations](https://skmtc.dev/nullplatform/apis/nullplatform-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nullplatform/nullplatform-api/revisions/1c4ea154b159/schema)
