GET/v1/flights/airlines

Listar aerolíneas

Lista metadata de aerolineas disponible para integraciones de vuelo, incluyendo codigos IATA, logos y URLs de politicas cuando existan.

Lista metadata de aerolineas disponible para integraciones de vuelo, incluyendo codigos IATA, logos y URLs de politicas cuando existan.

Endpoint

MétodoRutaAuth
GET/v1/flights/airlinesAPI key requerida
Headers obligatorios:
HeaderDescripción
AuthorizationBearer <secret_key>. The secret is shown only once when the credential is created.
X-Travelandz-Id<public_key>:<profile_code>. The profile_code is the dp_-prefixed Developer Profile code shown in your dashboard. This binds the request to a profile and credential.
Content-TypeUse application/json for requests with a body.

Respuesta exitosa

Devuelve airline ids, names, IATA codes, logos and policy URLs.

Esquema del cuerpo de la respuesta

PropiedadTipoDetallesRequeridoNotas
array-
idstring-
namestring-
iata_codestringNulable-
logo_symbol_urlstringNulable-
logo_lockup_urlstringNulable-
conditions_of_carriage_urlstringNulable-

Notas operativas

Airline metadata is source-backed and can vary by environment and enabled integrations.

Ejemplo

bash
bash
curl https://api.sandbox.travelandz.com/v1/flights/airlines \
  -H "Authorization: Bearer $TRAVELANDZ_SECRET_KEY" \
  -H "X-Travelandz-Id: $TRAVELANDZ_PUBLIC_KEY:$TRAVELANDZ_PROFILE_CODE"