Getting Started with Avianis API

Getting Started with Avianis API

Introduction to the Avianis API

The Avianis API provides access to Avianis data and services, enabling integration with various aviation operations.


This API supports Basic Authentication as well as Bearer Token (JWT) Authentication for enhanced security and access control.

Authentication Types

  1. Basic Authentication: Use your username and password to access basic API features.
  2. Bearer Token (JWT) Authentication: Provides an additional layer of security. This requires obtaining an access token via OAuth.

Getting Started with Bearer Token Authentication

To use Bearer Token authentication, you must first request an access token from the Avianis OAuth server. Once you have the token, include it in your API requests to authenticate.

Step 1: Request an Access Token

To obtain an access token, make a POST request to the following endpoint:

MethodPOST
HeadersContent-Type: application/x-www-form-urlencoded
Body Parameters:
  • grant_typeclient_credentials
  • client_id<Username> (Replace with your username)
  • client_secret<Password> (Replace with your password)
  • client_authenticationheader
CURL Request (Can be imported into POSTMAN)
curl --location 'https://api.avianis.io/oauth/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'grant_type=client_credentials' \
--data-urlencode 'client_id=<username>' \
--data-urlencode 'client_secret=<password>' \
--data-urlencode 'client_authentication=header'
---------------------------------------------------------------------------- 

Step 2: Use the Access Token in API Requests

After receiving the access token, include it in the header of your API requests for authentication.

Example of Headers:

Authorization: Bearer <access_token>

Example of an API Request:

GET https://api.avianis.io/your-endpoint Authorization: Bearer <access_token>

    • Related Articles

    • Import and Authenticate Avianis API Requests in Postman

      Here’s a step-by-step guide to importing the Avianis OpenAPI URL and generating a call in Postman using Basic Authentication, as well as importing and modifying a cURL request. Section 1: Import the Avianis OpenAPI URL into Postman Open Postman: ...
    • API Updates (May 2021)

      The following area of the API has been added: Airport/FBO Additional endpoints have been added to the Connect API. This update allows an operation to pull airport info and FBOs/Handlers at that airport. Furthermore, existing endpoints have been ...
    • API Updates (July 2021)

      The following updates have been made to the Avianis API: Added empty leg designation Additional data points to call GET/connect/v2/Trip/{tripId}/itinerary Added a V2 endpoint GET/connect/v2/Account/{accountid}/Aircraft Added a V2 contact endpoint GET ...
    • Avianis iCal Creation [Video]

      When users wish to display the Avianis Schedule in another calendar, a URL link can be generated within the Schedule Board Settings. This video will outline how this is completed. Additional Resources which might be helpful: iCal Feature Setup & ...
    • Avianis Mobile App [Video]

      A full overview of the Mobile App. This video explains: Settings Expenses Logging times Additional Features For additional Mobile App information, see the following articles: Mobile App 101 My Schedule Mobile App: Settings Mobile App: Duty Check In ...