---
title: "Create a tenant"
method: POST
path: "/tenants"
tags: ["Tenancy"]
---

# Create a tenant

`POST /tenants`

## Request

- Base URL: `https://api.customdomain.ai/v1`
- URL: `https://api.customdomain.ai/v1/tenants`
- Auth: HTTP bearer

Operator provisioning endpoint. Requires the management key in production.

## Request body

- object
  - `name` string, required

## Response `201`

Tenant created

- Tenant
  - `id` string, required
  - `name` string, required
  - `created_at` string, date-time

## Other responses

- `400`: Error envelope: {code, title, details}.
- `401`: Error envelope: {code, title, details}.

---

[API](https://skmtc.dev/customdomain/apis/customdomain-control-plane-api.md) · [All operations](https://skmtc.dev/customdomain/apis/customdomain-control-plane-api/llms.txt) · [OpenAPI document](https://skmtc.dev/customdomain/apis/customdomain-control-plane-api/revisions/34d89cb7a7cd?raw)
