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

# Create Tenant Endpoint

`POST /admin/tenants`

## Request

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

## Request body

- CreateTenantIn
  - `name` string, required
  - `privacy_mode` boolean
  - `byok_config` object, nullable
  - `onboarding_config` object, nullable
  - `auth_mode` string
  - `admin_email` string, nullable
  - `admin_password` string, nullable

## Response `200`

Successful Response

- CreateTenantOut
  - `tenant_id` string, required
  - `api_key` string, required
  - `admin_email` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/agent4/apis/chatagent-platform.md) · [All operations](https://skmtc.dev/agent4/apis/chatagent-platform/llms.txt) · [OpenAPI document](https://skmtc.dev/agent4/apis/chatagent-platform/revisions/18e58f082ce3?raw)
