Active Keys
0
Total API Calls
0
Last Used
—
Rate Limit
10K/hr
Loading API keys...
Quick Start
// Example API request
const response = await fetch('https://vibelux.ai/api/v1/sensors', {
headers: {
'x-api-key': 'YOUR_API_KEY', // Never hardcode API keys
'Content-Type': 'application/json'
}
});
if (!response.ok) {
const error = await response.json();
logger.error('system', 'API Error:', error.message );
return;
}
const data = await response.json();
// Example: Using environment variables (recommended)
const apiKey = process.env.VIBELUX_API_KEY;
if (!apiKey) {
throw new Error('VIBELUX_API_KEY environment variable not set');
}Security Best Practices
- • Never expose API keys in client-side code or public repositories
- • Use environment-specific keys (dev, staging, production)
- • Rotate keys regularly and revoke unused ones
- • Set appropriate permissions and rate limits for each key