{"service": "Email Sender API", "guide": "https://email.droomdazlean.com/", "base_urls": {"https": "https://email.droomdazlean.com", "http": "http://164.68.110.24:8095"}, "routes": [{"method": "POST", "path": "/send", "description": "Send an HTML email (JSON or form data). Alias: /api/send"}, {"method": "GET", "path": "/", "description": "Full usage guide"}, {"method": "GET", "path": "/test", "description": "Test sender page (opens in browser)"}, {"method": "GET", "path": "/download", "description": "Download the test sender HTML file"}, {"method": "GET", "path": "/health", "description": "Health check, returns {\"status\":\"ok\"}"}, {"method": "POST", "path": "/preview", "description": "Returns the final email HTML (cleaned, wrapped, notice added) without sending"}, {"method": "POST", "path": "/api/send-otp", "description": "Email a one-time code. Fields: to|email, optional otp, length (4-10), expires_minutes, app_name, purpose, return_otp. Returns otp_id"}, {"method": "POST", "path": "/api/verify-otp", "description": "Check a code. Fields: otp + otp_id (or to|email). Returns {\"valid\": true|false}"}, {"method": "GET", "path": "/client.js", "description": "Browser helper: DDSEmail.send(), DDSEmail.template(), DDSEmail.check()"}, {"method": "GET", "path": "/api/quota", "description": "Default sender usage: limit 25 emails per rolling hour (all users combined)"}, {"method": "GET", "path": "/api/routes", "description": "This list"}], "default_sender_limit": {"limit": 25, "window": "rolling 1 hour", "scope": "all users combined", "counts": "each receiver address = 1 email", "when_reached": "HTTP 429, error 'default_sender_overloaded', Retry-After header", "fix": "send with your own sender_email + app_password (not limited by this service)"}, "email_html_rules": ["Inline CSS only (style=\"...\"). <style> is converted to inline; <script> and event handlers are removed.", "Use tables for layout, max width 600px. Images get max-width:100%.", "Fonts 12-16px for text, max 28px for headings (larger sizes are reduced).", "Icons: PNG images from a URL (e.g. https://img.icons8.com/fluency/48/checked.png) or emoji. No icon fonts, no SVG.", "Buttons: <a> links styled with inline CSS. No forms, inputs or <button>.", "Every email gets a Droom Dazlean 'automated message, verify the sender' notice at the bottom."], "send_fields": {"to": "required - receiver email, several separated by commas", "html": "required - HTML content (aliases: message, body)", "subject": "optional", "from_name": "optional - display name", "reply_to": "optional", "sender_email": "optional - your own sender address (must be sent together with app_password)", "app_password": "optional - app password for sender_email (must be sent together with sender_email)", "smtp_host": "optional - only with your own account, default smtp.gmail.com", "smtp_port": "optional - only with your own account, default 587 (465 = SSL)", "redirect": "optional - for plain HTML forms: URL to go to after sending", "layout": "optional - 'card' (default: content in a white card) or 'plain' (your own full design)"}}