GET/v1/flights/airlines

List airlines

Lists airline metadata available to flight integrations, including IATA codes, logos and policy URLs when available.

Share
GET/v1/flights/airlines

API console

Try it

Send a real request to the sandbox API and inspect the response.

Credentials

Log in to pick from your saved API keys instead of pasting them.

cURL request

cURL
bash
curl -X GET 'https://api.sandbox.travelandz.com/v1/flights/airlines' \
  -H 'Authorization: Bearer YOUR_SECRET_KEY' \
  -H 'X-Travelandz-Id: YOUR_PUBLIC_KEY:YOUR_PROFILE_CODE'

Add your credentials to send a request.

Response

Click "Try it!" to send a request and see the response here.

Lists airline metadata available to flight integrations, including IATA codes, logos and policy URLs when available.

Endpoint

MethodPathAuth
GET/v1/flights/airlinesRequired API key
Required headers:
HeaderDescription
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.

Request Parameters

No path or query params are required.

Request Body

No request body is required.

Success Response

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

Response Body Schema

airlines
arrayYes
airlines[]id
stringYes
airlines[]name
stringYes
airlines[]iata_code
stringNullable
airlines[]logo_symbol_url
stringNullable
airlines[]logo_lockup_url
stringNullable
airlines[]conditions_of_carriage_url
stringNullable
liveMode
booleanYes
True when the request is served by the live Travelandz environment. This value comes from Travelandz, not the provider payload.

Operational Notes

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

Example

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"

Responses

CodeDescription
200Airlines retrieved successfully.
400Bad request – invalid payload.
401Unauthorized – invalid or missing credentials.
403Forbidden – invalid credentials.
500Internal server error

200 Response Body

Media type: application/json

json
json
{
  "airlines": [
    {
      "logo_symbol_url": null,
      "logo_lockup_url": null,
      "conditions_of_carriage_url": null,
      "iata_code": "12",
      "name": "12 North",
      "id": "arl_00009VME7DEWSV8v1yhJgK"
    },
    {
      "logo_symbol_url": "https://assets.duffel.com/img/airlines/for-light-background/full-color-logo/Q5.svg",
      "logo_lockup_url": "https://assets.duffel.com/img/airlines/for-light-background/full-color-lockup/Q5.svg",
      "conditions_of_carriage_url": null,
      "iata_code": "Q5",
      "name": "40-Mile Air",
      "id": "arl_00009VME7DAGiJjwomhv2x"
    },
    {
      "logo_symbol_url": "https://assets.duffel.com/img/airlines/for-light-background/full-color-logo/A3.svg",
      "logo_lockup_url": "https://assets.duffel.com/img/airlines/for-light-background/full-color-lockup/A3.svg",
      "conditions_of_carriage_url": "https://en.aegeanair.com/conditions-notices/conditions-notices/",
      "iata_code": "A3",
      "name": "Aegean Airlines",
      "id": "arl_00009VME7DAGiJjwomhv3K"
    }
  ],
  "liveMode": false
}