Authorization

Overview

In the SkyTickets API, security and proper access control are paramount. To ensure secure access to our API endpoints, we implement an API key-based authentication system. This key must be included in the header of every API request.

Obtaining Your API Key

  • To obtain an API key, users must first join the SkyTickets Discord server and generate a key using the designated command (sl.api).

  • Each key is unique and should be kept confidential.

Using Your API Key

  • To make an authenticated request, include your API key in the Authorization header of the request.

  • Format: Authorization: YOUR_API_KEY

Best Practices

  • Do not share your API key publicly.

  • If you suspect that your API key has been compromised, generate a new one immediately.

  • Avoid hardcoding your API key in your application's source code. Instead, store it in environment variables or configuration files.

Example

curl -X POST "https://api.skylineeu.xyz/endpoint" -H "Authorization: YOUR_API_KEY"

Replace YOUR_API_KEY with your actual API key.

This authentication method ensures that only authorized users can access the API, maintaining the integrity and security of the system.

Last updated