API key authentication
All Snipp API endpoints require authentication. Send your API key in theapi-key header with every request.
Example
Where to find your API key
- Sign in at snipp.gg.
- Go to Settings.
- Copy your API key from the API section.
Security best practices
- Never expose your API key in client-side code or public repositories.
- Use environment variables in production:
process.env.SNIPP_API_KEY. - Rotate your key if you suspect it has been compromised.
- Use keys with limited permissions when available. Some keys have upload access; others do not.
Error responses
| Status | Cause |
|---|---|
| 401 | Missing api-key header |
| 401 | Invalid or expired API key |
| 403 | Account suspended or insufficient permissions |

