Base URL
Production is the default. Use sandbox to test the full flow without touching prod data. It uses separate API keys (see Sandbox keys). All examples below use production.
Sandbox flight tests: use Jinko Airline (
ZZ). It is a fake airline that exists only in sandbox: search with include_carriers: ["ZZ"] on a route such as JFK–LHR from tomorrow onwards, and book flight ZZ101 for the normal flow. Every other flight number triggers one documented behaviour, such as a price change, a sold-out booking or a failed ticket, so you can test failure paths on demand. See Testing in sandbox.
Authentication
Authenticate every/v1 request with your API key:
Authorization: Bearer jnk_t_your_key
Get a key from the dashboard. See API keys for detail.
Browser JavaScript can call the API directly: every response allows any origin. A key used from a web page is visible to anyone who loads that page; see Calling from a browser for when that is acceptable and what to use instead.
Observability
We strongly recommend setting these on every request, they make debugging possible when something goes wrong:Response envelope
Success: endpoint-specific JSON payload. Error: consistent envelope, same across all endpoints.error.code is a closed enum, and some failures carry an extra key beside error rather than inside it. See Errors & troubleshooting for the complete list of codes with a remedy for each.
Typical request
Endpoint groups
Travel Demand
See where people are searching to fly and how it trends over time:
destination, market, audience, their /trend series, and trend.Flights
Discover routes and dates, run a live search, then handle refunds and exchanges:
find-destination, flight-calendar, find-dates, lowest-fare, price-monitoring, flight-search, refund, exchange.Hotels
Search hotels and pull details;
htl_* tokens plug into the same trip as flights: hotel-search, hotel-details, hotel-reviews, hotel-cancel, best-price-guarantee, best-price-guarantee-status.Cars
Search live rental offers and cancel a rental with the fee shown first;
car_* tokens plug into the same trip: car-search, car-cancel-preview, car-cancel-commit, car-cancel-status.Trip & Payment
Build a trip, select ancillaries, check out, pay, and look up the booking:
trip, trip/ancillaries, select-ancillaries, checkout, agent-payment submit, trip-status, get-booking.Webhooks
Register endpoints and get notified on booking events:
register, list, get, delete, test.