APIReference data

Search airlines

GET
/api/v1/airlines

Returns a bounded set of best matches and is not paginated; page.nextCursor is always null. Narrow the query to reach other results.

Authorization

bearerAuth reference_data.read
headerAuthorizationBearer <API key or OAuth 2.1 access token>

Send Authorization: Bearer <credential>. Create API keys in AirTrail Security settings. OAuth clients use authorization code with PKCE S256 and a resource identifier matching /api/v1.

Scope: reference_data.read

Query Parameters

query*string
Length1 <= length

Response Body

Matching airlines.

application/json
  1. response
data*array<>
page*
Example Request
curl -X GET 'https://your-instance.example/api/v1/airlines?query=string'
Example Response
{  "data": [    {      "id": 0,      "name": "string",      "icao": "string",      "iata": "string",      "iconPath": "string"    }  ],  "page": {    "nextCursor": "string"  }}