GET/v1/flights/airlines
Lister les compagnies aériennes
Lists airline metadata available to flight integrations, including IATA codes, logos and policy URLs when available.
Lists airline metadata available to flight integrations, including IATA codes, logos and policy URLs when available.
Endpoint
| Method | Path | Auth |
|---|---|---|
GET | /v1/flights/airlines | Required API key |
| Header | Description |
|---|---|
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. |
Success Response
Returns airline ids, names, IATA codes, logos and policy URLs.
Response Body Schema
| Property | Type | Details | Required | Notes |
|---|---|---|---|---|
array | Yes | - | ||
id | string | Yes | - | |
name | string | Yes | - | |
iata_code | string | Nullable | - | |
logo_symbol_url | string | Nullable | - | |
logo_lockup_url | string | Nullable | - | |
conditions_of_carriage_url | string | Nullable | - | |
Operational Notes
Airline metadata is source-backed and can vary by environment and enabled integrations.
Example
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"