Appearance
Authentication Endpoint
The MyLION ERP system utilizes API key authentication to ensure secure access to its API endpoints.
API Key Validation
Authentication occurs through the inclusion of a specific header in your HTTP requests. Specifically, each request must contain a header named X-API-KEY. This header should carry your API key, which will be validated by the MyLION system to determine the authenticity and authorization of your request.
Generating Your API Key
To generate an API key please contact your MyLION representative.
Including the API Key in Requests
Once you have your API key, ensure that every API request you send includes the X-API-KEY header with the corresponding API key as its value. Failure to include this header or using an invalid API key will result in your request being rejected by the MyLION system.
Here's an example of how to include the API key in your request using common programming languages:
Example using cURL (Bash):
shell
curl -X POST -H "X-API-KEY: YOUR_API_KEY" -d "your_post_data_here" https://mylion.hu/VIRApp-war/api/partners/registerSecurity Considerations
To ensure the security of your API key, treat it as sensitive information. Do not hard-code the API key directly into your source code or expose it publicly. Instead, use secure methods to manage and store your API keys, such as environment variables or configuration files that are excluded from version control.