๐Ÿ“ง Email Template API

A service for rendering React-based email templates to HTML and Text.

Tip: Prefer setting this up in a serverless environment for better scalability and cost management.

๐Ÿ› Architecture: Design vs. Triggering

This service decouples Design (Frontend/React) from Triggering (Backend/Business Logic). The backend only needs to call this API with variables, while the designs are managed independently in this repository.

๐Ÿš€ API Endpoints

POST /api/render

Returns JSON: { "html": "...", "text": "..." }

POST /api/render/html

Returns raw HTML body.

POST /api/render/text

Returns plain text body.

๐Ÿงช Live Playground

Preview
HTML
Text

            

            

๐Ÿ“‚ Sample Templates

general

๐Ÿ“ฆ Payload Example

{
  "emailModule": "general",
  "template": "christmas",
  "variables": {
    "email": "user@example.com",
    "name": "John Doe"
  }
}

๐Ÿ”— Resources

Documentation & Repository โ€ข Health Check