---
title: "Create Tenant"
method: POST
path: "/api/v1/admin/tenants"
tags: ["admin"]
---

# Create Tenant

`POST /api/v1/admin/tenants`

## Request

- Base URL: `https://yondry.app` (the document declares no server; this is the origin it was published from)
- URL: `https://yondry.app/api/v1/admin/tenants`
- Auth: none declared

Provision a new B2B tenant and generate its API key.
The plaintext key is returned once — it cannot be recovered later.
Requires X-Admin-Key header matching ADMIN_SECRET_KEY.

## Headers

- `X-Admin-Key` string, nullable

## Request body

- CreateTenantRequest
  - `name` string, required
  - `slug` string, required
  - `plan_limit_per_month` integer, nullable

## Response `201`

Successful Response

- CreateTenantResponse
  - `tenant_id` string, required
  - `name` string, required
  - `slug` string, required
  - `api_key` string, required
  - `plan_limit_per_month` integer, nullable, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/yondry/apis/yondry-api.md) · [All operations](https://skmtc.dev/yondry/apis/yondry-api/llms.txt) · [OpenAPI document](https://skmtc.dev/yondry/apis/yondry-api/revisions/d2c213cea95b?raw)
