Admin
Render Email Template
Render an email template without sending.
Args: render_request: Template rendering request with variables.
Returns: Rendered email content (subject, html_body, text_body).
Raises: HTTPException: 404 if template not found, 422 if rendering fails.
POST
Render Email Template
Body
application/json
Request schema for rendering a template without sending.
Attributes: template_type: Template type to render (e.g., 'email_verification'). variables: Dictionary of variables for template rendering. locale: Optional language/locale code (default: 'en'). account_id: Optional account ID for template lookup.
Previous
Send Test EmailSend a test email using the specified template.
Args:
template_id: Template ID to use for test email.
test_request: Test email request with recipient and variables.
request: FastAPI request object for accessing app state.
Returns:
Success message with email details.
Raises:
HTTPException: 404 if template not found, 400 if no email provider configured,
500 if sending fails.
Next
Render Email Template