Authentication
All API requests require authentication using an API key.
Required Headerโ
X-Api-Key: your_api_key_here
Getting Your API Keyโ
- Log in to your WASMOU account
- Navigate to API Settings
- Generate or view your API key
- Configure allowed IP addresses (optional but recommended)
Example Requestโ
curl -X GET "https://gateway.wasmou.net/api/account" \
-H "X-Api-Key: your_api_key_here"
Security Best Practicesโ
IP Whitelistโ
Configure allowed IP addresses in your account settings. If configured, only requests from whitelisted IPs are accepted.
Note: The system automatically detects real IPs behind Cloudflare using the CF-Connecting-IP header.
Keep Your API Key Secretโ
- Never commit API keys to version control
- Use environment variables to store API keys
- Rotate API keys regularly
- Use different API keys for development and production
Rate Limitingโ
- 60 requests per minute per API key
- Returns
429 Too Many Requestswhen exceeded - Implement exponential backoff if you hit rate limits
Common Authentication Errorsโ
| Error | Description |
|---|---|
API key is required | Missing X-Api-Key header |
Invalid API key | API key invalid or expired |
IP address not allowed | Request IP not in whitelist |