Skip to navigation

Preview email template

Preview how an email template will look with specific data.

Features:

  • Real-time template rendering with provided data
  • Support for HTML, text, or both formats
  • Variable substitution preview
  • Subject line rendering

Parameters:

  • data: Object containing variable values for substitution
  • format: Output format - “html”, “text”, or “both” (default: “both”)

Use Cases:

  • Template testing during development
  • Content review before sending
  • Variable validation
  • Design verification

Example Data:

{
"data": {
"name": "John Doe",
"email": "john@example.com",
"date": "2024-01-15"
}
}

Authentication

AuthorizationBearer

JWT token for authentication. Use ‘test-jwt-token’ for development.

Path parameters

idstringRequired

Request

This endpoint expects an object.
dataobjectOptional
format"html" or "text" or "both"Optional

Response

This endpoint returns an object.
successboolean
dataobjectOptional
errorobjectOptional