cURL
curl --request POST \ --url https://api.example.com/api/v1/tenants \ --header 'Content-Type: application/json' \ --header 'x-calry-api-key: <api-key>' \ --data ' { "name": "<string>", "domain": "<string>", "isDefault": true } '
{ "id": "<string>", "domain": "<string>", "name": "<string>", "workspaceID": "<string>", "isDefault": true, "status": "ACTIVE", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" }
Creates a new tenant. Note: Default tenants cannot be created through this API and are only automatically created with workspaces.
Optional tenant ID to specify which tenant to operate as. If not provided, the default tenant will be used.
Tenant name
Tenant domain
Whether this is the default tenant for the workspace
Tenant created
ACTIVE
INACTIVE