Render Handlebars templates with data, inline CSS automatically, generate pixel-perfect previews, and validate for email client compatibility.
Render Handlebars templates with JSON data. Variables, loops, conditionals. Build dynamic email content via API.
Automatically convert <style> blocks to inline styles. Essential for Gmail, Outlook, and other email clients.
Generate pixel-perfect screenshots of your emails at any width. Desktop, tablet, and mobile previews via API.
Check for missing alt tags, external CSS, JavaScript, spam trigger words, oversized HTML, and dark mode support.
Scan for common spam trigger words and patterns that could send your emails to the junk folder.
Four endpoints, JSON in and out. API key auth. Integrate into your CI/CD pipeline in minutes.
# Render Handlebars template with data curl -X POST https://mailforge.grabshot.dev/v1/render \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{ "template": "<h1>Hello {{name}}</h1><p>Welcome to {{company}}</p>", "data": {"name": "John", "company": "Acme"} }' # Returns: { "success": true, "html": "<h1>Hello John</h1>..." }
# Inline CSS styles into HTML curl -X POST https://mailforge.grabshot.dev/v1/inline \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{ "html": "<style>h1{color:red}</style><h1>Hi</h1>" }' # Returns: { "html": "<h1 style=\"color: red;\">Hi</h1>" }
# Generate email preview screenshot curl -X POST https://mailforge.grabshot.dev/v1/preview \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"html": "<h1>Hello!</h1>", "width": 600}' \ --output preview.png # Returns: PNG image of rendered email
# Validate email HTML for compatibility issues curl -X POST https://mailforge.grabshot.dev/v1/validate \ -H "x-api-key: YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{"html": "<html><body><img src=x></body></html>"}' # Returns: { "score": 60, "issues": [...], "warnings": [...] }
No credit card required. 100 free requests every month.
Click the key below to copy it to your clipboard
Use the snippet below to render a template
Get rendered HTML back instantly