API Overview
The Galaxy Nexus API allows you to programmatically manage your hosting services. Deploy servers, manage Discord bots, and automate your infrastructure.
Base URL
All API requests should be made to:
https://api.galaxynexus.au/v1
Authentication
All API requests require authentication via an API key. See the Authentication guide.
Available APIs
Server Deployment API
Programmatically create, configure, and manage game servers.
- Endpoint:
/servers - Methods: GET, POST, DELETE
- Documentation: Server Deployment API
Discord Bot API
Manage Discord bot hosting programmatically.
- Endpoint:
/bots - Methods: GET, POST, PUT, DELETE
- Documentation: Discord Bot API
Authentication
Learn how to authenticate with the API using OAuth2 or API keys.
- Documentation: API Authentication
Rate Limits
| Plan | Requests/minute |
|---|---|
| Standard | 100 |
| Premium | 500 |
| Enterprise | Custom |
Rate Limit Headers
API responses include headers indicating your current rate limit status:
X-RateLimit-LimitX-RateLimit-RemainingX-RateLimit-Reset
Response Format
All responses are returned in JSON format:
{
"success": true,
"data": {
"id": "srv_abc123",
"name": "My Server",
"status": "running"
},
"meta": {
"request_id": "req_xyz789"
}
}Error Responses
Errors follow this format:
{
"success": false,
"error": {
"code": "INSUFFICIENT_PERMISSIONS",
"message": "You don't have permission to perform this action"
}
}Quick Start
1. Get Your API Key
Navigate to Dashboard → Settings → API to generate an API key.
2. Make Your First Request
curl -X GET https://api.galaxynexus.au/v1/servers \
-H "Authorization: Bearer gnx_live_xxxxx"3. Deploy a Server
curl -X POST https://api.galaxynexus.au/v1/servers \
-H "Authorization: Bearer gnx_live_xxxxx" \
-H "Content-Type: application/json" \
-d '{
"game": "minecraft",
"location": "brisbane",
"name": "My Server"
}'