Appearance
JSON to HTML
POST
/landing-page/get-html
Convert a landing page JSON template definition to rendered HTML. This is the same rendering service the editor uses when a page is saved or previewed. Authentication is carried in the request body: the apiKey must be valid and the hostname must be on the key's allowed-domain list.
Request Body
application/json
JSON "apiKey": "your-api-key", "hostname": "your-app.example.com", "userId": "user-123", "definition": "{"tagName":"mj-global-style","children":[]}", "options": { "minify": true, "fonts": "[{"label":"Open Sans","style":"Open Sans, sans-serif","url":"https://fonts.googleapis.com/css?family=Open+Sans:400,700"}]" }, "syncedSections": [ { "id": 0, "definition": "string" } ]
{
}
Responses
Template converted successfully
application/json
JSON "html": "<html><body>Hello World</body></html>"
{
}