Tenant scope
Every request is scoped to the tenant that owns the API key you use. Use this section to verify which tenant youβre authenticated as and to configure tenant-wide settings like webhooks and defaults.Base URL
Use the correct base URL for your environment.
Sandbox:
https://sandbox.travelbase.aiAuthentication
Include your API key in the
Authorization header.Get tenant
GET /v1/tenant
Returns the tenant associated with the API key used in the request.
Example request
Tenant Configuration
The Tenant object defines the organizational context for all resources in the Travelbase API. This section covers how to retrieve and update your tenant-wide settings.The Tenant Object
Tenant Schema
The tenant object serves as the root configuration for your API integration, managing identity, defaults, and
connectivity.
Fields
Identity
id(string) β immutablename(string)slug(string) β immutable
Environment & Status
environment(sandbox | live) β immutablestatus(active | suspended | disabled)
Defaults
default_currency(ISO 4217)timezone(IANA timezone)
Webhooks
webhook_url(string | null)webhook_enabled(boolean)
Metadata
metadata(object) β arbitrary key/value pairs
Timestamps
created_at(ISO 8601)updated_at(ISO 8601)
Update Tenant
What you can update
This endpoint is intended for tenant-wide configuration (e.g., webhooks and defaults). You cannot update immutable identity fields likeid, slug, or environment.PATCH /v1/tenant
Updates tenant configuration fields.
Updatable Fields
Webhook Settings
webhook_url, webhook_enabledDefaults
default_currency, timezoneExample Request
Example Response
401 Unauthorized
The API key is missing, invalid, expired, or has been rotated.
403 Forbidden
Your tenant is suspended or disabled.
422 Unprocessable Entity
One or more fields are invalid (for example, an invalid timezone).
API Keys
Learn how to create and rotate API keys.
Webhooks
Configure webhooks and verify signatures.

