The Avianis API provides access to Avianis data and services, enabling integration with various aviation operations.
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.
To obtain an access token, make a POST request to the following endpoint:
POSTgrant_type: client_credentialsclient_id: <Username> (Replace with your username)client_secret: <Password> (Replace with your password)client_authentication: headerCURL 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'
Example of Headers:
Authorization: Bearer <access_token>
Example of an API Request:
GET https://api.avianis.io/your-endpoint Authorization: Bearer <access_token>