curl --request POST \
--url http://localhost:3001/api/admin/content/templates/test \
--header 'Content-Type: application/json' \
--data '{
"workspaceId": "<string>",
"templateId": "<string>",
"userProperties": {},
"tags": {},
"channel": "Email",
"provider": "SendGrid"
}'
{
"type": "Ok",
"value": {
"type": "DFInternalMessageSent",
"variant": {
"type": "Email",
"provider": {
"type": "MailChimp"
},
"to": "<string>",
"headers": {},
"attachments": [
{
"mimeType": "<string>",
"name": "<string>"
}
],
"from": "<string>",
"subject": "<string>",
"replyTo": "<string>",
"cc": "<string>",
"bcc": "<string>",
"name": "<string>",
"attachmentUserProperties": [
"<string>"
],
"body": "<string>"
}
}
}
Send a test message for a message template.
curl --request POST \
--url http://localhost:3001/api/admin/content/templates/test \
--header 'Content-Type: application/json' \
--data '{
"workspaceId": "<string>",
"templateId": "<string>",
"userProperties": {},
"tags": {},
"channel": "Email",
"provider": "SendGrid"
}'
{
"type": "Ok",
"value": {
"type": "DFInternalMessageSent",
"variant": {
"type": "Email",
"provider": {
"type": "MailChimp"
},
"to": "<string>",
"headers": {},
"attachments": [
{
"mimeType": "<string>",
"name": "<string>"
}
],
"from": "<string>",
"subject": "<string>",
"replyTo": "<string>",
"cc": "<string>",
"bcc": "<string>",
"name": "<string>",
"attachmentUserProperties": [
"<string>"
],
"body": "<string>"
}
}
}
Default Response
The response is of type object
.