API method POST /v1/webversion

With this method you can convert JSON directly into a HTML representation of an email, without storing any data on the ResponsiveEmail.com servers.

Example request

POST /v1/webversion?access_token=yourtoken
Host: www.responsiveemail.com
Content-Type: application/json

{ "name" : "template..." }

HTTP/1.1 200 Ok
Date: Mon, 03 Nov 2014 16:46:59 GMT
Content-Type: text/html
Content-Length: 239872

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head> ....

To improve readability, we have left out most of the returned HTML code in above example.

Use personalization data

If your template uses personalization data, you can get an HTML representation for certain data by passing this data as a JSON object in the data property of your JSON.

Found a typo?

You can find this documentation page on GitHub.
Propose a change