API Key Authentication
All requests to the Firemoon Studio API require authentication using an API key in theAuthorization header.
Getting Your API Key
Create your API key directly from the Firemoon Studio dashboard:- Sign in to Firemoon Studio
- Navigate to the API Keys page
- Click “Add key” button
- Enter a description (e.g., “Production API key” or “Development key”)
- Click “Create key”
- Copy your API key immediately - you won’t be able to see it again after closing the dialog
Managing API Keys
You can create multiple API keys for different purposes:- Development: For local testing and development
- Staging: For staging environment testing
- Production: For live production applications
Using Your API Key
Include the API key in theAuthorization header with the Bearer prefix:
Example Requests
Security Best Practices
Environment Variables
Store your API key as an environment variable:Key Rotation
- Rotate API keys regularly (recommended: every 30-90 days)
- Use different keys for different environments (dev/staging/prod)
- Immediately revoke compromised keys
Monitoring
- Monitor API usage in your dashboard
- Set up alerts for unusual activity
- Log authentication failures
API Key Management
Creating Keys via API
You can also create API keys programmatically using the API Keys endpoint:API key creation requires authentication via your user session. For automated key management, use the dashboard at firemoon.studio/keys.
Troubleshooting
401 Unauthorized
- Verify your API key is correct
- Check that you’re using the
Bearerprefix - Ensure the key hasn’t expired
403 Forbidden
- Confirm your key has access to the requested provider
- Check if you’ve exceeded rate limits
- Verify your account is in good standing
Support
Need help with authentication?- Visit the API Keys dashboard to create and manage your keys
- Check our documentation for examples
- Contact us at [email protected] for additional support