curl --request POST \
--url https://api.example.com/api/v1/accounts/{accountId}/email/test \
--header 'Content-Type: application/json' \
--data '
{
"targetEmail": "[email protected]",
"templateType": "invitation",
"widgetConfiguration": {
"props": {
"vortex.email.template.invitation.body": {
"value": {
"root": {}
}
},
"vortex.email.template.invitation.theme": {
"value": {}
}
}
},
"templateVariables": {
"user-name": "John Doe",
"company-name": "Acme Corp"
},
"reminderNumber": 1,
"nudgeNumber": 1
}
'{
"success": true,
"message": "Test email queued successfully"
}Send a test email using the provided widget configuration and template variables
curl --request POST \
--url https://api.example.com/api/v1/accounts/{accountId}/email/test \
--header 'Content-Type: application/json' \
--data '
{
"targetEmail": "[email protected]",
"templateType": "invitation",
"widgetConfiguration": {
"props": {
"vortex.email.template.invitation.body": {
"value": {
"root": {}
}
},
"vortex.email.template.invitation.theme": {
"value": {}
}
}
},
"templateVariables": {
"user-name": "John Doe",
"company-name": "Acme Corp"
},
"reminderNumber": 1,
"nudgeNumber": 1
}
'{
"success": true,
"message": "Test email queued successfully"
}Type of email template to test
invitation, reminder, nudge, acceptance "invitation"
Widget configuration containing email templates
{
"props": {
"vortex.email.template.invitation.body": { "value": { "root": {} } },
"vortex.email.template.invitation.theme": { "value": {} }
}
}Template variables to substitute in the email
{
"user-name": "John Doe",
"company-name": "Acme Corp"
}Reminder number (for reminder emails)
1
Nudge number (for nudge emails)
1