Documentation Index
Fetch the complete documentation index at: https://docs.travelbase.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Multi-tenancy lets you run a platform business on top of Travelbase. As a platform owner, you can programmatically create tenant accounts, issue them scoped API keys, and keep their data fully isolated — all without any manual setup in the dashboard.Full Isolation
Every tenant’s bookings, customers, and configuration are siloed. No
tenant can ever read or write another’s data.
Scoped API Keys
Each tenant gets their own API key. Revoking one tenant’s key has zero
impact on any other tenant.
Owner Controls
Your owner account can create, suspend, and delete tenants and act on
their behalf — all via API.
How It Works
Create a tenant
Use your owner API key to call
POST /v1/tenants. Travelbase provisions
an isolated environment and returns a tenantId.Issue a tenant API key
Call
POST /v1/tenants/:id/keys to generate a scoped API key for the
tenant. Hand this key to your customer — it is the only credential they
need.Tenant makes requests
Your customer uses their scoped key exactly like any Travelbase API key.
All data created under that key belongs exclusively to their tenant.
Account Hierarchy
Tenants are flat — there is no nesting. A tenant cannot create sub-tenants.
Only the owner account has tenant management privileges.
Tenant Management
Create a Tenant
Issue a Tenant API Key
Suspend & Reactivate a Tenant
Suspending a tenant immediately rejects all API requests made with their
keys (
403 Forbidden). Their data is preserved in full and becomes
accessible again the moment you reactivate them.Acting on Behalf of a Tenant
As the owner, you can make API calls scoped to any of your tenants without using their key. Pass theTravelbase-Tenant header with the tenantId.
When to use this
Backfilling data during onboarding, debugging a tenant’s integration,
running admin scripts, or building an internal support dashboard.
When not to use this
Never pass your owner key to your customers’ applications. The owner key
has access to all tenants — treat it as your most sensitive credential.
Data Isolation
Strict boundaries
Every database query is scoped to the tenant at the infrastructure level.
It is architecturally impossible for a tenant key to return another
tenant’s records.
Deletion is permanent
Deleting a tenant permanently removes all of their data — bookings,
customers, itineraries, and keys. This action cannot be undone.
Tenant Object Reference
| Field | Type | Description |
|---|---|---|
tenantId | string | Unique identifier for the tenant. Prefix: ten_. |
name | string | Display name for the tenant. |
email | string | Primary contact email for the tenant. |
status | enum | active | suspended | deleted |
metadata | object | Up to 20 key-value pairs for your own internal data. |
createdAt | string | ISO 8601 timestamp of when the tenant was provisioned. |
Security Best Practices
Guard your owner key above all else
Your owner key can read and write every tenant’s data. Store it only in a
secrets manager, never in environment files committed to source control,
and rotate it on any suspected compromise.
Issue one key per tenant per environment
Give each tenant a separate key for Sandbox and Live. This prevents test
traffic from polluting production data and makes it easy to revoke a
single environment without disrupting the other.
Revoke keys on offboarding
When a tenant churns or is offboarded, call
DELETE /v1/tenants/:id/keys/:keyId
before deleting the tenant. Explicit revocation ensures the key is
immediately invalidated even if deletion is delayed.FAQ
Can a tenant have multiple API keys?
Can a tenant have multiple API keys?
Yes. You can issue as many keys as needed per tenant via
POST /v1/tenants/:id/keys. A common pattern is one key per environment
(Sandbox and Live) and an additional read-only key for analytics tooling.Does each tenant have separate rate limits?
Does each tenant have separate rate limits?
Yes. Rate limits are enforced per API key. A tenant hitting their limit
has no impact on any other tenant or on your owner account.
Can I transfer a tenant to a different owner?
Can I transfer a tenant to a different owner?
Tenant transfer between owner accounts is not supported via the API today.
Contact support if you need to migrate tenants as part of an acquisition
or platform restructure.

