Api Keys
API Keys
API Keys panel allows to create Leon API key directly from the interface in order to obtain or modify different kinds of data from Leon for the purpose of internal operator’s integrations.
This panel allows to generate a Refresh Token (API Key), which is a special kind of token that can be used to obtain a renewed access token which allows programmatically accessing a protected resource. Access tokens are attached to API request. More information can be found in the documentation (https://apidoc.leonsoftware.com/).
The token can be generated only by admins in Settings -> API keys page.
How to generate a token
Click the
button.
Enter the name and the description of the API key/Refresh token.
Select resources which can be accessed by using the token. Next to each resource name there’s a question mark, hovering over it displays details of particular resource.
Select the tail(s) for which the data should be exported. By default API key access applies to the whole fleet.
Select Service Account for API Key. In general they are used to identify changes made in the system that are related to particular token use. Click for more details.
Click the
button.
Copy generated key and store it safely.
It is also possible to edit existing API Keys and update the Name, Description and Resources and Aircraft access.
Please remember that once the token is generated it MUST be stored safely as it cannot be retrieved after the pop-up window is closed. As a suggestion, once you have key you can copy/paste it in the ‘Description’ box.
Privileges mapping in API Keys
The file below contains the mapping of Resources in the API Keys section to the relevant GraphQL Permissions in the GraphQL code
This list is subject to periodic changes.