Get a preview of a template, blast or repeating blast.
https://api.sailthru.com/preview
Specify one of the following parameters:
| Parameter | Description | Example |
|---|---|---|
template | The name of the template to preview | my-template |
blast_id | The id of the blast to preview | 123456 |
blast_repeat_id | The id of the repeating blast to preview | 4d9553239c409dff34000026 |
content_html | A block of text to parse and preview |
AND one of the following parameters:
| Parameter | Description | Example |
|---|---|---|
email | A user email address to generate dynamic content for, which will return content_html equal to the email HTML body | support@sailthru.com |
send_email | An email address to send the preview (Data feed content will not populate if a template is referenced, use a blast_id instead.) | support@sailthru.com |
| Parameter | Description | Example |
|---|---|---|
data_feed_url | URL of the data feed to populate a template or content_html request | http://www.example.com/example.xml |
If you'd like to update the object (templates, blasts, repeating blasts) you wish to preview without saving it, you can pass any of the parameters associated with that object. To see a list of available options, please refer to the optional parameters of the blast and template calls, respectively.