Creates a tenant under the tenant in the URL (current for the key's own tenant, or the id of one of its
sub-tenants).
Allowed parent → child types: main → main, sub, customer; sub → customer. A customer tenant cannot
have children.
Required permission: tenants:write
BearerAuthorizationBearer <token>Tenant API key (evk_…), created in Studio → Vault → API keys.
tenantId*stringTenant id, or current for the key's own tenant. Must be the key's tenant or one of its sub-tenants.
The new tenant.
A new tenant, created under the tenant in the URL.
name*stringDisplay name.
type*stringTenant type; must be allowed under the parent's type (see Tenant.type).
"main""sub""customer"domain?stringEmail domain of the organisation, unique across tenants. Optional.
extraId?stringYour own reference for this tenant. Optional.
region*"eu"Data region the new tenant's data will live in. Required; usually the parent's region, but a global company may pick another. Cannot be changed afterwards.
"eu"Created. The Location header points to the new tenant.
A tenant (organisation) in the tenant hierarchy.
id*stringTenant id.
name*stringDisplay name.
parentId?stringParent tenant id.
type*stringTenant type. Determines which child types it may contain: main → main, sub, customer; sub → customer; customer has no children.
"main""sub""customer"domain?stringEmail domain of the organisation (e.g. example.com), unique across tenants. Optional.
extraId?stringYour own reference for this tenant (e.g. a CRM or billing id). Optional, free text.
region*stringData region the tenant's data lives in (eu); chosen when the tenant was created, and carried by its API keys (evk_eu_...).
curl -X POST 'https://api.envocal.ai/v1/tenants/string/sub-tenants' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "type": "main", "region": "eu"}'{ "id": "string", "name": "string", "parentId": "string", "type": "main", "domain": "string", "extraId": "string", "region": "string"}curl -X POST 'https://api.envocal.ai/v1/tenants/string/sub-tenants' \
-H 'Content-Type: application/json' \
-d '{
"name": "string",
"type": "main",
"region": "eu"
}'{
"id": "string",
"name": "string",
"parentId": "string",
"type": "main",
"domain": "string",
"extraId": "string",
"region": "string"
}