Read a video lesson's design

Reads the design the lesson carries, as its slides record it: every slide a build or a restyle lays out records the template, the template's revision and the design's hash. Each value is answered as every slide built on a template records it, and null when they differ, so a lesson restyled in part, or holding slides built before the record existed, answers designHash: null; one with no slide built on a template answers all three null. A lesson the build delivered reaches the video only once its slides are written there.

designHash is the lower-case hex SHA-256 of the design exactly as the build or restyle request sent it, in canonical JSON: object keys sorted at every level by code unit, arrays in order, no spaces. Hash the design you send the same way and compare: equal means the lesson wears it. It is null for a lesson built without a design.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
curl -X GET 'https://apis.elai.io/api/v1/videos/66a1f0c2b7cd13032a9c6002/assistant/lesson/design' \
  -H 'Authorization: Bearer YOUR_API_TOKEN'
{
  "templateId": "6ab669a59baed24c0ea808a6",
  "templateRevision": "b58d1b8c7d738b22b7d7596bd0cff4a48595351de150ac7b4fffc00d6d98a5ba",
  "designHash": "3f0b8f6a1c2d4e5f60718293a4b5c6d7e8f90123456789abcdef0123456789ab"
}
Path Params
string
required

Video id (24-char hex ObjectId).

Responses

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