Tenant API Overview
The Travelbase Tenant API provides secure, programmatic access to Travelbase’s travel infrastructure, enabling businesses to discover offers, manage orders, issue tickets, manage wallets, and receive real-time webhook events. It is designed for reliable server-to-server integrations and supports the complete travel booking lifecycle, allowing organizations to integrate travel operations directly into their applications and workflows.Sandbox URL
https://sandbox.travelbase.aiIsolated environment for development and testing.Production URL
Available in your Travelbase Business Dashboard under Settings → API KeysUsed for real-world operations and live transactions.
The sandbox environment is fully isolated. Data created here does not affect your production environment or live
billing.
Authentication
All API requests must be authenticated using either an API key or a bearer token.- API Key (Recommended)
- Bearer Token
Use API keys for secure, server-to-server integrations.
Security Best Practices
Managing API Keys: Keys can be created and rotated in the dashboard under Settings → API Keys.
Rate Limits
The API enforces rate limits to ensure system stability and fair usage across all tenants.Default Rate Limit
120 requests per minute per API key.
429 Too Many Requests status code.
Error Handling
Errors are returned using standard HTTP status codes and structured JSON responses to help you debug quickly.Error Response Format
Validation Errors
Validation failures may include additional field-level details to help users correct their input:API Reference & Best Practices
Understanding how to handle responses and ensure data integrity is crucial for a smooth integration.HTTP Status Codes
| Code | Meaning | Description |
|---|---|---|
| 200 | Success | The request was successful. |
| 201 | Resource Created | A new resource has been successfully created. |
| 400 | Invalid Request | The request was unacceptable (e.g., missing parameters). |
| 401 | Authentication Failed | No valid API key provided. |
| 403 | Forbidden | The API key does not have permissions for this resource. |
| 404 | Resource Not Found | The requested resource doesn’t exist. |
| 429 | Rate Limit Exceeded | Too many requests hit the API too quickly. |
| 500 | Internal Server Error | Something went wrong on our end. |
Idempotency
Idempotency prevents duplicate resource creation caused by retries or network interruptions. Include an idempotency key when performing write operations (POST or PUT).Idempotency Guarantee: If a request with the same key is received multiple times, the API will return the original
response instead of creating duplicate resources. Use UUID v4 for these keys.
Next Steps
Explore our guides to start building your integration.Tenants
Manage organizations and sub-accounts.
Wallets
Handle balances, funds, and transactions.
Locations
Manage physical and virtual service areas.
Offers
Search available travel offers and pricing.
Orders
The full flow for creating and managing orders.
Webhooks
Receive real-time notifications for event updates.

