Skip to content

Developers

TravelCore API documentation

Written for the person who will actually integrate this, including the parts that will go wrong. The hotel surface is in design-partner preview; the rest is documented so you can design against it before it exists.

Authentication

OAuth 2.0 client credentials, scoped tokens and tenant headers.

TravelCore uses OAuth 2.0 client credentials. You exchange a client id and secret for a short-lived bearer token, then send that token on every request. There are no long-lived API keys in the request path, because a leaked key that never expires is the worst failure mode in this category of system.

Headers on every call

HeaderRequiredPurpose
AuthorizationYesBearer <access_token> from the token endpoint.
X-TravelCore-TenantYesWhich tenant the call acts on. A token may be authorised for more than one.
Idempotency-KeyOn writesA UUID you generate. Replays return the original result.
X-Request-IdOptionalYour correlation id. Echoed back and stored in our logs.
Accept-LanguageOptionalContent language, where the supplier provides it.

Scopes

Tokens are scoped per capability, and the scopes you request must be a subset of what your client is authorised for. Ask for the narrowest set the calling service needs, so a compromised service cannot book.

ScopeAllows
hotels.searchSearch, property content and rate checks.
hotels.bookBooking creation, retrieval and cancellation.
bookings.readRead-only access across product types.
admin.pricingReading and modifying pricing rules.
admin.suppliersSupplier configuration and credentials.
Note:Client secrets are displayed once at creation and are not retrievable afterwards. Rotate by creating a second credential, migrating traffic, then revoking the first — there is no downtime path that involves us emailing you a secret.