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étodo | Ruta | Auth |
|---|---|---|
GET | /v1/flights/airlines | API key requerida |
| Header | Descripción |
|---|---|
Authorization | Bearer <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-Type | Use 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
| Propiedad | Tipo | Detalles | Requerido | Notas |
|---|---|---|---|---|
array | Sí | - | ||
id | string | Sí | - | |
name | string | Sí | - | |
iata_code | string | Nulable | - | |
logo_symbol_url | string | Nulable | - | |
logo_lockup_url | string | Nulable | - | |
conditions_of_carriage_url | string | Nulable | - | |
Notas operativas
Airline metadata is source-backed and can vary by environment and enabled integrations.
Ejemplo
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"