Authentication
This endpoint requires authentication with a valid user session.
Request Body
The ID of the template to test
The email address to send the test email to
Subject line for the test email
Sample data to populate template variables
Response
Indicates whether the test email was sent successfully
Status message about the test
Unique identifier for the sent email
200 OK
400 Bad Request
404 Not Found
Example Usage
Here’s how you can test a welcome email template:Body
application/json
The ID of the template to test
Example:
"welcome-template"
The email address to send the test email to
Example:
"test@example.com"
Subject line for the test email
Example:
"Welcome to OnlyAutomator! (TEST)"
Sample data to populate template variables
Example:
{
"name": "John Doe",
"subscription_level": "Premium",
"account_created": "2023-04-01"
}