Preview a restyled lesson slide

Restyles one slide in a design in memory, exactly as a restyle would, and answers a screenshot of it. Nothing is saved and nothing is spent, so a running build does not refuse it. The body is a restyle's with one slideIndex and an optional height, refused as a restyle is, and with 400 for a slide not built on a template (code: not_a_template_slide), or on a layout the template no longer has (layout_missing) or has changed (layout_changed). The URL is time-limited.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
curl -X POST 'https://apis.elai.io/api/v1/videos/66a1f0c2b7cd13032a9c6002/assistant/lesson/restyle-preview' \
  -H 'Authorization: Bearer YOUR_API_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
  "templateId": "6ab669a59baed24c0ea808a6",
  "design": {
    "version": 1,
    "templateRevision": "b58d1b8c7d738b22b7d7596bd0cff4a48595351de150ac7b4fffc00d6d98a5ba",
    "colours": {
      "#000000": "#13235b",
      "#f7f7f7": "#fff4dc",
      "#ffffff": "#fff4dd"
    },
    "logo": null
  },
  "slideIndex": 0,
  "height": 360
}'
{
  "screenshotUrl": "<screenshotUrl>"
}
Path Params
string
required

Video id (24-char hex ObjectId).

Body Params
string
length ≥ 1
design
object
required
integer
required
0 to 49
integer
40 to 1080
Responses

code says how.

code: template_revision_changed).

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