API keys authenticate your requests to the Screenshotly API. Manage them from the API settings page in your dashboard.Documentation Index
Fetch the complete documentation index at: https://docs.screenshotly.dev/llms.txt
Use this file to discover all available pages before exploring further.
Generating a new key
- Go to API settings
- Click Generate new API key
- Give the key a descriptive name (e.g., “Production server”, “Staging”)
- Copy the key immediately
Using your key
Include it in theX-API-Key header:
Revoking a key
- Go to API settings
- Find the key you want to revoke
- Click Revoke
- Confirm the action
401 response with error code invalid_api_key.
Best practices
- Use environment variables — never hardcode API keys in source files
- Separate keys per environment — use different keys for development, staging, and production
- Name keys descriptively — so you know which key is used where
- Revoke unused keys — remove keys that are no longer in use
- Rotate keys periodically — generate new keys and phase out old ones
- Never commit keys — add
.envto your.gitignorefile

