Introduction
Tenants provide a way to organize and isolate data within a workspace. Each workspace has a default tenant that is created automatically, and you can create additional tenants to partition listings, reservations, and other resources. A common use case is when multiple booking channels or business units share the same workspace but need their own isolated view of the data.Default Tenant
Every workspace has a default tenant. This tenant has special privileges:- Create new tenants
- List all tenants in the workspace
- Update other tenants
- Delete other tenants
- Move integration accounts between tenants
Tenant Context
All API requests operate within a tenant context. By default, requests use the workspace’s default tenant. To target a specific tenant, include thex-calry-tenant-id header:
Creating a Tenant
Only the default tenant can create new tenants:domain must be unique across all tenants in the workspace.
Tenant Schema
| Field | Type | Description |
|---|---|---|
| id | UUID | Unique identifier |
| name | string | Tenant name |
| domain | string | Unique domain identifier |
| workspaceID | UUID | The workspace this tenant belongs to |
| isDefault | boolean | Whether this is the default tenant |
| status | string | ACTIVE or INACTIVE |
| createdAt | Date | Creation timestamp |
| updatedAt | Date | Last update timestamp |
Importing Listings from Other Tenants
Tenants can import listings from other tenants within the same workspace. This allows a tenant to make another tenant’s listings available for search, quotes, and reservations without duplicating data.Searching for Available Listings
Before importing, you can search for listings from other tenants:Importing Listings
Once you’ve identified listings to import:- You cannot import your own tenant’s listings
- You cannot import listings from integration accounts that have
allowImportset tofalse - You cannot re-import listings that are already imported