POST /api/v1/tenants
Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication
POST
/api/v1/tenantsAuthentication: session cookie __Host-panel_session (contract default; see Authentication).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
X-CSRF-Token | header | string | optional | Required on unsafe requests authenticated by session cookie; API keys do not use it. |
Request body
required
Content type: application/json
object
- no other properties
parent_idstring requirednamestring required
Example
{
"parent_id": "string",
"name": "string"
}Responses
201 Created
Content type: application/json
idstring requiredparent_idstring | null requirednamestring requiredcreated_atstring (date-time) required
Example
{
"id": "string",
"parent_id": "string",
"name": "string",
"created_at": "2026-01-01T00:00:00Z"
}default Error
Content type: application/json
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required