POST /v1/tenants/create
Creates a new tenant with the given ID and name. Each tenant gets its own isolated schema and authorization data store.
Request Body
A unique identifier for the new tenant. Must match
[a-zA-Z0-9-,]+, max 64 bytes.A human-readable name for the tenant. Max 64 bytes.
Response
The created tenant object.
Example
Error Codes
| HTTP Status | Description |
|---|---|
400 | Bad request — invalid ID format or missing required fields |
401 | Unauthorized |
409 | Conflict — a tenant with this ID already exists |
429 | Rate limit exceeded |
500 | Internal server error |