curl --request POST \
--url https://api.example.com/cabinet/admin/email-templates/{notification_type}/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"language": "ru",
"subject": "",
"body_html": ""
}
'{}Preview a rendered email template with sample data.
curl --request POST \
--url https://api.example.com/cabinet/admin/email-templates/{notification_type}/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"language": "ru",
"subject": "",
"body_html": ""
}
'{}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful Response
The response is of type Response Preview Template Cabinet Admin Email Templates Notification Type Preview Post · object.