Skip to main content

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

Travelbase versions its API to give you stability guarantees while still allowing the platform to evolve. Every breaking change ships in a new version β€” your existing integrations keep working exactly as they do today until you choose to upgrade.

Current Version

v1 is the current stable version and the default for all new integrations.

Version in URL

The version is part of every request URL β€” /v1/, /v2/, etc. β€” making it explicit and impossible to miss.

Deprecation Notice

Deprecated versions receive a minimum 12-month sunset window with email notices before they are removed.

Specifying a Version

The API version is embedded directly in the base URL. There is no header or query parameter required.
# v1 β€” current stable
https://sandbox.travelbase.ai/v1/bookings

# v2 β€” next major version (if available)
https://sandbox.travelbase.ai/v2/bookings
If you omit the version segment from the URL the request will be rejected with a 400 Bad Request. Always include /v{n}/ in every call.

Version Lifecycle

Every API version moves through four stages before it is fully retired.
1

Beta

New endpoints and breaking changes land here first. Beta is suitable for early adopters and experimentation β€” not for production traffic. Interfaces may still shift without a deprecation notice.
2

Stable

The version is production-ready. No breaking changes will be introduced. Only backwards-compatible additions (new optional fields, new endpoints) are allowed.
3

Deprecated

A newer stable version has been released. The deprecated version continues to work but will stop receiving new features. A sunset date is announced at least 12 months in advance.
4

Sunset

The version is fully retired. All requests return 410 Gone. You must migrate to a supported version before this date.

Version Status

v1 β€” Stable

Current recommended version. Actively maintained with new backwards-compatible features. All new integrations should target v1.

v0 β€” Sunset

Fully retired as of December, 2025. All v0 requests return 410 Gone. Migrate to v1 immediately if you are still on v0.
If your integration still targets /v0/, it is broken right now. Follow the migration guide below to move to v1.

What Counts as a Breaking Change

Travelbase follows a strict policy on what constitutes a breaking change. Anything in the left column triggers a new major version; anything in the right column does not.
Breaking β€” new version requiredNon-breaking β€” same version
Removing or renaming a fieldAdding a new optional field
Changing a field’s data typeAdding a new endpoint
Removing an endpointAdding a new optional query parameter
Changing HTTP method for an endpointExpanding an enum with new values
Altering authentication schemeImproving error messages
Changing error code valuesReducing response latency
Because non-breaking changes are additive, always write code that ignores unknown fields rather than erroring on them. This keeps your integration forwards-compatible with minor additions.

Deprecation Headers

When you are calling a deprecated version, every response includes two warning headers so your monitoring can surface the issue automatically.
Deprecation: true
Sunset: Sat, 01 Mar 2025 00:00:00 GMT
HeaderValue
DeprecationAlways true when the targeted version is deprecated.
SunsetISO 8601 date-time after which the version will return 410 Gone.
Set up alerts on the Deprecation header in your API client or gateway. Relying only on email notices risks missing the migration window.

Migrating Between Versions

1

Read the changelog

Every version bump ships with a dedicated changelog that lists every breaking change, renamed field, and removed endpoint. Start there before touching any code.
2

Spin up a parallel environment

Point a staging instance at the new version URL (/v2/) while production stays on the old one. Run your full test suite against staging first.
3

Update your request URLs

Do a project-wide find-and-replace of /v1/ β†’ /v2/ (or whichever version you are moving to). If your base URL is in a single config constant this is a one-line change.
4

Adapt to breaking changes

Work through each breaking change listed in the changelog. Use the request and response examples in the endpoint docs to validate your updated payloads.
5

Promote to production

Once staging is green, update the base URL in your production config and deploy. Monitor error rates for the first 30 minutes after release.

FAQ

No. Releasing v2 has zero impact on v1. Your requests continue to hit /v1/ and behave exactly as they do today. You migrate on your own schedule within the deprecation window.
At least 12 months. You will receive email notices at 12 months, 6 months, 3 months, and 1 month before the sunset date. Response headers also carry the Sunset date on every request to the deprecated version.
No. Minor versions (v1.1, v1.2) are additive and backwards-compatible, so pinning is unnecessary. You always receive the latest minor version within your chosen major version automatically.
All requests to the retired version return 410 Gone with an error body pointing to the migration guide. No data is lost β€” only the old version’s endpoints stop responding.