Skip to content

API Reference

Every Wego API endpoint, plus the contract rules that govern all of them.

Updated View as Markdown

The Wego API exposes the building blocks wego.com runs on: resolve travel locations, search flights and hotels, compare fares and room rates, and get a wego.com link where the traveler books. All /v1 operations require an OAuth2 bearer token (see Authentication).

This reference is written to double as an agent tool contract: every operationId is a stable tool name, and every error is machine branchable.

Read these first

These rules govern every endpoint:

Endpoints

  • Places: resolve free text to typed travel locations.
  • Flights: create a search, read ranked results, open a trip, list fare options, get the booking link.
  • Hotels: create a search, read ranked results, open a hotel, list rates, get the checkout link.
  • User: the authenticated caller behind the bearer token.
  • Feedback: send feedback about the Wego CLI and API.
Navigation

Type to search…

↑↓ navigate↵ selectEsc close