Getting Started
Authentication
All Galxe API requests require a valid access token for authentication
Get Your Access Token
- Login to Galxe - Visit dashboard.galxe.com
- Open Settings - Click your Account → Settings
- API Access - Navigate to “Server API” section
- Generate Token - Click “Generate New API Tokens”
- Copy Token - Save the token securely (you can’t view it again)
Using the Token
Include your token in the access-token
header:
Security Best Practices
Environment Variables
Production Deployment
- Use secret management systems (AWS Secrets Manager, HashiCorp Vault)
- Never commit tokens to version control
- Rotate tokens regularly
- Use environment-specific tokens
Common Issues
Invalid Token
Solution: Regenerate token in dashboard settings
Missing Header
Solution: Add access-token
header to request
Rate Limiting
Solution: Implement exponential backoff retry logic
Error Response Format
All GraphQL errors follow a standardized format with additional metadata:
Error Codes and Categories
Code | Category | HTTP Status | Description |
---|---|---|---|
TOKEN_REQUIRED | AUTHENTICATION | 401 | Access token missing |
INVALID_TOKEN | AUTHENTICATION | 401 | Access token invalid |
QUOTA_EXCEEDED | RATE_LIMIT | 429 | API quota exceeded |
PERMISSION_DENIED | AUTHORIZATION | 403 | Insufficient permissions |
NOT_FOUND | NOT_FOUND | 404 | Resource not found |
INVALID_ARGUMENT | VALIDATION | 400 | Invalid input parameters |
Next Steps
- Quick Start - Test your token
- Common Patterns - Integration patterns
- Rate Limits - API limits and optimization