Getting your API key
- Sign in to your dashboard
- Navigate to API settings
- Copy your API key
Using your API key
Include your API key in thescreenshotly-api-key header of every request:
Environment variables
Store your API key in an environment variable to avoid hardcoding it:Authentication errors
If your API key is missing or invalid, the API returns a401 Unauthorized response:
Security best practices
- Never expose keys in client-side code — only use API keys in server-side applications
- Don’t commit keys to version control — use
.envfiles and add them to.gitignore - Use separate keys for environments — generate different keys for development, staging, and production
- Rotate keys regularly — revoke old keys and generate new ones from the dashboard
- Revoke compromised keys immediately — if a key is exposed, revoke it in API settings

