Skip to content
This page is available in Markdown format. Markdown is recommended for AI consumption. See /api/index.md for this page, or/llms.txt for the full documentation index.

API Reference

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

Updated
View as MarkdownView this page as plain text

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, and find the airports near one.
  • Countries: public holidays in a market, and where a passport travels without a visa.
  • Flights: create a search, read ranked results, open a trip, read its per-leg experience signals, list fare options, get the booking link. Plus two reads that need no search: the published timetable for a route, and a durable wego.com search link.
  • Hotels: create a search, read ranked results, open a hotel, read its guest reviews, list rates, get the checkout link. Plus a durable wego.com search link.
  • User: the authenticated caller behind the bearer token.
  • Feedback: send feedback about the Wego CLI and API.

Four of these need no search at all – holidays, visa-free destinations, flight schedules and nearby airports – so an agent can answer a reference question without starting a funnel.

FORM WG-REF · SEQ 004821The API and the ways in to it are early and may change.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close