All Screenshotly API requests require authentication via an API key.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.
Getting your API key
- Sign in to your dashboard
- Navigate to API settings
- Copy your API key
Using your API key
Pass your API key using either theX-API-Key header or the api_key query parameter.
Header authentication (recommended)
Query parameter authentication
You can also pass the API key as a query parameter:Environment variables
Store your API key in an environment variable to avoid hardcoding it:Authentication errors
If your API key is missing, the API returns a401 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

