Authentication Method
The GamePanelX V3 API uses API key authentication. Every API request must include your unique API key to verify your identity and authorization.Obtaining Your API Key
Your API key is generated automatically when GamePanelX is installed and can be found in the admin settings panel.Steps to Find Your API Key:
- Log in to your GamePanelX admin panel
- Navigate to Settings in the admin menu
- Locate the API Key field
- Copy your API key (it’s a read-only field for security)
The API key is stored in the database settings table and is unique to your GamePanelX installation.
Using Your API Key
Include your API key in every API request using thekey parameter.
GET Request Example
POST Request Example
Required Parameters
Every API request must include these three parameters:Your API key from the admin settings panel
The resource type to interact with. Allowed values:
servers- Server management operationsusers- User management operations
The operation to perform (varies by class)
Authentication Errors
The API will return specific error messages for authentication issues:No API Key Provided
key parameter is missing from your request.
Invalid API Key
Security Best Practices
1. Keep Your API Key Secret
- Never commit your API key to version control
- Don’t share your API key in public forums or documentation
- Store your API key in environment variables or secure configuration files
2. Use HTTPS
Always use HTTPS when making API requests to prevent your API key from being intercepted:3. Use POST Instead of GET
POST requests are more secure than GET requests because parameters aren’t logged in web server access logs:4. Regenerate API Key if Compromised
Testing Your Authentication
You can test your API authentication with a simple request:Environment Variables Example
Store your API key in environment variables:Next Steps
Now that you understand authentication, explore the available API endpoints:Server API
Manage game servers via API
User API
Manage user accounts via API