retrieve Email Template Preview With Id
POST {{baseUrl}}/api/email/template/preview
Creates a preview of the email template provided in the request. This allows you to preview an email template that hasn't been saved to the database yet. The entire email template does not need to be provided on the request. This will create the preview based on whatever is given.
Request Body
{"emailTemplate"=>{"defaultFromName"=>"<string>", "defaultHtmlTemplate"=>"<string>", "defaultSubject"=>"<string>", "defaultTextTemplate"=>"<string>", "fromEmail"=>"<string>", "id"=>"<uuid>", "insertInstant"=>"<long>", "lastUpdateInstant"=>"<long>", "name"=>"<string>"}, "locale"=>"<string>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"email":{"attachments":[{"attachment":"\u003cstring\u003e","mime":"\u003cstring\u003e","name":"\u003cstring\u003e"},{"attachment":"\u003cstring\u003e","mime":"\u003cstring\u003e","name":"\u003cstring\u003e"}],"bcc":[{"address":"\u003cstring\u003e","display":"\u003cstring\u003e"},{"address":"\u003cstring\u003e","display":"\u003cstring\u003e"}],"cc":[{"address":"\u003cstring\u003e","display":"\u003cstring\u003e"},{"address":"\u003cstring\u003e","display":"\u003cstring\u003e"}],"from":{"address":"\u003cstring\u003e","display":"\u003cstring\u003e"},"html":"\u003cstring\u003e","replyTo":{"address":"\u003cstring\u003e","display":"\u003cstring\u003e"},"subject":"\u003cstring\u003e","text":"\u003cstring\u003e","to":[{"address":"\u003cstring\u003e","display":"\u003cstring\u003e"},{"address":"\u003cstring\u003e","display":"\u003cstring\u003e"}]},"errors":{"fieldErrors":[{"code":"\u003cstring\u003e","data":{"ipsum9e0":{},"consectetur__":{}},"message":"\u003cstring\u003e"},{"code":"\u003cstring\u003e","data":{"eu05":{},"dolord":{},"consequat_36e":{}},"message":"\u003cstring\u003e"}],"generalErrors":[{"code":"\u003cstring\u003e","data":{"eiusmod0d":{},"occaecat_f7":{}},"message":"\u003cstring\u003e"},{"code":"\u003cstring\u003e","data":{"nisi_d0d":{},"proident_95e":{},"enim_d6":{}},"message":"\u003cstring\u003e"}]}}