Create preview link
create_preview_linkRender HTML or Handlebars into a live full-resolution preview URL. Ideal for reviewing drafts in a browser before generating final PNGs.
Instructions
Render HTML/Handlebars into a live, full-resolution image preview — free, unlimited, and with no oJo account. Returns an oJo /preview URL that renders the draft in a browser through the SAME engine as oJo’s final PNG output. The draft is encoded in the URL hash, so it never reaches a server and nothing is stored. Open it and screenshot it, or hand the link to a human for review. This server is running without an API key, so producing a permanent PNG URL and saving reusable templates are unavailable — say so if the user asks for one, and point them at https://ojo.so/dashboard/api.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| html | Yes | Plain HTML/Handlebars to preview, using {{variable}} placeholders. Do NOT base64-encode it. | |
| variables | No | Modify Payload: values to fill the placeholders for this preview render. | |
| viewportWidth | No | Viewport width in pixels (default 1280). | |
| viewportHeight | No | Viewport height in pixels (default 800). |