Preview lesson template layouts in a design

Draws one to three distinct layouts of a template in a design, before any video exists, and answers a picture of each. The design is checked and applied exactly as a build checks and applies it, so a layout's picture shows the colours, fonts and logo a built slide takes from it. The template's placeholder texts are drawn, the design's logo is drawn in each layout's logo slot (a slot is removed when the design has no logo), and avatars are not drawn. With design.fonts, the placeholder texts are first fitted as a build fits its own, since a wider font may not fit their boxes: they widen and push the texts below them down. A placeholder longer than its box holds is cut at a word, ending in …, and the layout fitted again, three times at most; one whose overflow is a single word too wide for its line is left whole. A layout that still does not fit is drawn at the template's own positions. Nothing is saved to any video, and no credits are spent.

Each picture is a WebP at height (40 to 1080, default 720; the width follows 16:9), stored privately and answered as a URL signed for 7 days. The same layouts in the same design at the same height are drawn once and answered from storage after that.

The design's refusals are the build's: 409 with code: template_revision_changed, or 400 with code design_colours_mismatch, design_pairs_mismatch, unknown_font, logo_not_hosted or logo_unreadable. A slide id that is not one of the template's layouts answers 400 with code: unknown_slide, naming them in unknown. When the renderer fails, cannot load one of a layout's photos or takes longer than 55 seconds, the call answers 502 with code: render_failed and stores nothing; try again.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

A template id from the list.

Body Params
design
object
required
slideIds
array of integers
required
length between 1 and 3
slideIds*
integer
40 to 1080
Responses

code says which, and an invalid body has none.

code: unknown_template).

code: template_revision_changed).

code: render_failed).

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json