Getting started / 04
Authentication
Authenticate every Aonis API request using your API key.
Environment variables
Keep credentials outside source code and load them from the environment.
export AONIS_API_KEY="YOUR_AONIS_API_KEY"$env:AONIS_API_KEY="YOUR_AONIS_API_KEY"Security best practices
- Never expose API keys in frontend or client-side code.
- Store keys in environment variables or a secret manager.
- Never commit API keys to Git.
- Rotate a key immediately if it may have been exposed.
- Use separate keys for different applications or environments when appropriate.