Overview
The Email Preview API allows you to generate screenshots of your email HTML rendered on real devices and email clients. Test how your emails will look across Gmail, Outlook, iPhone, Android, and 40+ other platforms before sending.Features
- 40+ Email Clients & Devices: Test across Gmail, Outlook, Apple Mail, Yahoo, and more
- Real Device Rendering: Screenshots from actual devices, not simulators
- Mobile & Desktop: Preview on iPhone, Android, iPad, desktop clients
- Fast Generation: Results typically ready in 60-90 seconds
- High-Quality Screenshots: Full-resolution images of your email renders
How It Works
- Create Preview: Send your email HTML to the preview endpoint
- Processing: Your email is rendered on real devices (60-90 seconds)
- Get Results: Retrieve high-quality screenshots for each device
Pricing
Credit Usage
Each preview request costs 2 credits, regardless of how many devices you select. The default is 10 common devices, but you can specify custom devices from our list of 40+ supported platforms.
Quick Start
1. Create a Preview
2. Check Preview Status
3. Get Supported Devices
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
html | string | Yes | Email HTML content to preview |
subject | string | No | Email subject line (default: “Email Preview”) |
devices | array | No | Specific devices to render on (defaults to 10 common devices) |
name | string | No | Custom name for the preview |
Default Devices
When you don’t specify devices, previews are generated on these 10 platforms:- Gmail (Chrome Desktop)
- Gmail (Android App)
- Outlook 2016 (Windows)
- Outlook.com (Browser)
- Apple Mail (macOS)
- Apple Mail (iPhone 14)
- Yahoo Mail (Browser)
- Samsung Email (Android)
- Outlook iOS App
- Gmail iOS App
Custom Device Selection
You can specify exactly which devices to use:Response Statuses
| Status | Description |
|---|---|
processing | Preview is being generated |
completed | All screenshots are ready |
failed | Preview generation failed |
Common Use Cases
Quality Assurance
Test emails before sending campaigns to ensure they render correctly across all platforms.Client Approval
Generate previews to show clients how emails will look on different devices.Responsive Testing
Verify that your email design is mobile-friendly and responsive.Cross-Platform Compatibility
Identify rendering issues specific to certain email clients.Best Practices
Optimize Your HTML
Optimize Your HTML
Ensure your email HTML is valid and uses email-safe CSS. Avoid modern CSS features that may not be supported in all email clients.
Test on Key Platforms
Test on Key Platforms
Focus on the email clients your audience actually uses. Check your email analytics to see which platforms are most common.
Monitor Credit Usage
Monitor Credit Usage
Each preview costs 2 credits. Plan your testing workflow to minimize unnecessary preview generations.
Cache Results
Cache Results
Store preview images for reference. You can reuse them for client presentations without regenerating.
Error Handling
Insufficient Credits
Check your credit balance before generating previews. You can view your balance in your account dashboard or via the API.
Invalid HTML
Limitations
- Processing Time: Previews typically take 60-90 seconds to generate
- HTML Size: Maximum HTML size is 500KB
- Rate Limits: Subject to your plan’s rate limits
- Image Assets: External images must be publicly accessible