Getting Started
Authentication
Learn how to authenticate your API requests
Authentication
Screenshotly uses API tokens for authentication. Each request to the API must include your token in the Authorization header.
Getting Your API Token
- Sign in to your Screenshotly Dashboard
- Navigate to the API Tokens page
- Click “Generate New Token”
- Give your token a descriptive name (e.g., “Development”, “Production”)
- Copy your token immediately - you won’t be able to see it again!
Using Your Token
Include your API token in the Authorization
header with the Bearer
scheme:
Example request:
Token Security
Follow these best practices to keep your tokens secure:
- Never share your API tokens or commit them to version control
- Use different tokens for development and production environments
- Set appropriate expiration dates for your tokens
- Store tokens securely in environment variables
- Revoke compromised tokens immediately through the dashboard
Rate Limits
Rate limits are applied per token and vary by plan:
Free
- 500 requests per day
- 2 concurrent requests
- 10MB max file size
Pro
- 5,000 requests per day
- 5 concurrent requests
- 20MB max file size
Rate Limit Headers
The API includes rate limit information in the response headers:
Rate Limit Errors
When you exceed your rate limit, the API will return a 429 Too Many Requests
response:
Token Management
Manage your tokens through the dashboard:
- Generate new tokens
- View active tokens
- Monitor token usage
- Revoke tokens
- Set expiration dates
Next Steps
- Learn how to capture screenshots
- Explore mockup options
- Check out our best practices