Elai.io · Schema

LessonTemplateDetail

Artificial IntelligenceVideo GenerationAutomationEducationSales

Properties

Name Type Description
id string The template id, the same in every environment.
name string The display name.
order integer 1-based display order.
revision string A content hash of what a build reads from the template: its layouts, slides, colour reading and previews, not its name or order. The template's current revision; a build names an older one with `templ
fonts object The primary family of the text the template writes headings and body text into.
layoutCount integer
thumbnailCount integer
logoSlots object How many layouts and thumbnail designs carry a logo slot.
formatVersion integer
canvas object The slide size every box is in.
layouts array The template's layouts, in template order, the cover first. A design is drawn once per item count; one layout per design is its showcase.
thumbnails array The template's course-thumbnail designs.
reading object What part every template colour plays, and where each is used.
View JSON Schema on GitHub

JSON Schema

elaiio-lesson-template-detail-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/elaiio/json-schema/elaiio-lesson-template-detail-schema.json",
  "title": "LessonTemplateDetail",
  "x-generated": "2026-12-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elaiio-elai-public-api-openapi.yml#/components/schemas/LessonTemplateDetail",
  "allOf": [
    {
      "$ref": "#/$defs/LessonTemplateSummary"
    },
    {
      "type": "object",
      "properties": {
        "formatVersion": {
          "type": "integer",
          "const": 1
        },
        "canvas": {
          "type": "object",
          "description": "The slide size every box is in.",
          "properties": {
            "width": {
              "type": "number"
            },
            "height": {
              "type": "number"
            }
          },
          "required": [
            "width",
            "height"
          ]
        },
        "layouts": {
          "type": "array",
          "description": "The template's layouts, in template order, the cover first. A design is drawn once per item count; one layout per design is its showcase.",
          "items": {
            "type": "object",
            "properties": {
              "slideId": {
                "type": "number"
              },
              "showcase": {
                "type": "boolean",
                "description": "The design's fullest drawing, the one to show. Exactly one layout per design has it."
              },
              "previewUrl": {
                "description": "Set exactly when `showcase` is.",
                "oneOf": [
                  {
                    "$ref": "#/$defs/LessonPreviewUrl"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "role": {
                "type": "string",
                "enum": [
                  "cover",
                  "objectives",
                  "statement",
                  "definition",
                  "statement_callout",
                  "bullets",
                  "text_list",
                  "process",
                  "binary",
                  "cards_6",
                  "cards_4",
                  "recap"
                ]
              },
              "logoSlot": {
                "description": "`null`: this layout carries no logo, by design.",
                "oneOf": [
                  {
                    "$ref": "#/$defs/LessonLogoSlot"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "slide": {
                "$ref": "#/$defs/LessonTemplateSlide"
              }
            },
            "required": [
              "slideId",
              "role",
              "showcase",
              "previewUrl",
              "logoSlot",
              "slide"
            ]
          }
        },
        "thumbnails": {
          "type": "array",
          "description": "The template's course-thumbnail designs.",
          "items": {
            "type": "object",
            "properties": {
              "slideId": {
                "type": "number"
              },
              "fields": {
                "type": "object",
                "description": "The object the course title is written into.",
                "properties": {
                  "title": {
                    "type": "number"
                  }
                },
                "required": [
                  "title"
                ]
              },
              "previewUrl": {
                "$ref": "#/$defs/LessonPreviewUrl"
              },
              "logoSlot": {
                "$ref": "#/$defs/LessonLogoSlot"
              },
              "slide": {
                "$ref": "#/$defs/LessonTemplateSlide"
              },
              "colours": {
                "$ref": "#/$defs/LessonSlideColours"
              },
              "extraPalette": {
                "type": "object",
                "description": "Readings of the design's colours the template's palette does not hold, keyed by hex, placed by the template's own rules.",
                "additionalProperties": {
                  "$ref": "#/$defs/LessonColourReading"
                }
              },
              "textOnSurface": {
                "type": "array",
                "description": "The design's own text and surface pairs, by the template list's rules. A surface can be one of its `extraPalette` colours.",
                "items": {
                  "$ref": "#/$defs/LessonTextOnSurface"
                }
              }
            },
            "required": [
              "slideId",
              "fields",
              "previewUrl",
              "logoSlot",
              "slide",
              "colours",
              "extraPalette",
              "textOnSurface"
            ]
          }
        },
        "reading": {
          "type": "object",
          "description": "What part every template colour plays, and where each is used.",
          "properties": {
            "palette": {
              "type": "object",
              "description": "Every template colour, keyed by its lowercase hex.",
              "additionalProperties": {
                "$ref": "#/$defs/LessonColourReading"
              }
            },
            "slides": {
              "type": "object",
              "description": "Every colour use, keyed by slide id.",
              "additionalProperties": {
                "$ref": "#/$defs/LessonSlideColours"
              }
            },
            "textOnSurface": {
              "type": "array",
              "description": "Each text colour on each palette surface across the layouts. Text on a picture, and text no lesson shows, is not listed. Each thumbnail lists its own.",
              "items": {
                "$ref": "#/$defs/LessonTextOnSurface"
              }
            }
          },
          "required": [
            "palette",
            "slides",
            "textOnSurface"
          ]
        }
      },
      "required": [
        "formatVersion",
        "canvas",
        "layouts",
        "thumbnails",
        "reading"
      ]
    }
  ],
  "$defs": {
    "LessonColourReading": {
      "type": "object",
      "description": "A main colour (`role`), a version of one with its step (lightness added, chroma multiplied), or the same colour as another (under ΔE 1). `slides` is how many slides use it.",
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "role": {
              "type": "string",
              "enum": [
                "background",
                "dark",
                "accent",
                "highlight"
              ]
            },
            "slides": {
              "type": "integer"
            }
          },
          "required": [
            "role",
            "slides"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "versionOf": {
              "type": "string",
              "pattern": "^#[0-9a-f]{6}$"
            },
            "step": {
              "type": "object",
              "properties": {
                "lightness": {
                  "type": "number"
                },
                "chroma": {
                  "type": "number"
                }
              },
              "required": [
                "lightness"
              ],
              "additionalProperties": false
            },
            "slides": {
              "type": "integer"
            }
          },
          "required": [
            "versionOf",
            "step",
            "slides"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "sameAs": {
              "type": "string",
              "pattern": "^#[0-9a-f]{6}$"
            },
            "deltaE": {
              "type": "number"
            },
            "slides": {
              "type": "integer"
            }
          },
          "required": [
            "sameAs",
            "deltaE",
            "slides"
          ],
          "additionalProperties": false
        }
      ]
    },
    "LessonLogoSlot": {
      "type": "object",
      "description": "The canvas object the logo goes in, and its box as drawn, in canvas pixels.",
      "properties": {
        "objectId": {
          "type": "number"
        },
        "box": {
          "type": "object",
          "properties": {
            "left": {
              "type": "number"
            },
            "top": {
              "type": "number"
            },
            "width": {
              "type": "number"
            },
            "height": {
              "type": "number"
            }
          },
          "required": [
            "left",
            "top",
            "width",
            "height"
          ]
        }
      },
      "required": [
        "objectId",
        "box"
      ]
    },
    "LessonObjectColours": {
      "type": "object",
      "description": "The colours one object uses, each a lowercase hex: which field holds which template colour.",
      "properties": {
        "fill": {
          "type": "string"
        },
        "stroke": {
          "type": "string",
          "description": "An outline with a width."
        },
        "gradient": {
          "type": "array",
          "description": "The gradient's stop colours, in stop order.",
          "items": {
            "type": "string"
          }
        },
        "background": {
          "type": "string",
          "description": "The colour painted behind what the object draws (`backgroundColor`)."
        },
        "text": {
          "type": "array",
          "description": "A text's colours, per-character styles included.",
          "items": {
            "type": "string"
          }
        },
        "surface": {
          "type": "string",
          "description": "What a text sits on: a palette colour, or `image` for a photo or logo."
        },
        "fontSize": {
          "type": "number",
          "description": "A text's size, `fontSize × scaleY`, in canvas pixels."
        },
        "fontWeight": {
          "type": [
            "number",
            "string"
          ]
        },
        "children": {
          "type": "array",
          "description": "A group's members, in drawing order.",
          "items": {
            "$ref": "#/$defs/LessonObjectColours"
          }
        }
      }
    },
    "LessonPreviewUrl": {
      "type": "string",
      "description": "A 1280×720 WebP of the slide as the template draws it, logo slot hidden, on the public CDN: unsigned, never expiring, named by its content."
    },
    "LessonSlideColours": {
      "type": "object",
      "description": "A slide's colour uses: its background, and each object's colours by object id (`#<index>` for an object with none).",
      "properties": {
        "background": {
          "type": "string",
          "description": "The canvas background."
        },
        "objects": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/LessonObjectColours"
          }
        }
      },
      "required": [
        "objects"
      ]
    },
    "LessonTemplateSlide": {
      "type": "object",
      "description": "A slide as drawn: its id and its canvas.",
      "properties": {
        "id": {
          "type": "number"
        },
        "canvas": {
          "type": "object",
          "additionalProperties": true
        }
      },
      "required": [
        "id",
        "canvas"
      ]
    },
    "LessonTemplateSummary": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The template id, the same in every environment."
        },
        "name": {
          "type": "string",
          "description": "The display name."
        },
        "order": {
          "type": "integer",
          "description": "1-based display order."
        },
        "revision": {
          "type": "string",
          "description": "A content hash of what a build reads from the template: its layouts, slides, colour reading and previews, not its name or order. The template's current revision; a build names an older one with `templateRevision`."
        },
        "fonts": {
          "type": "object",
          "description": "The primary family of the text the template writes headings and body text into.",
          "properties": {
            "heading": {
              "type": "string"
            },
            "body": {
              "type": "string"
            }
          },
          "required": [
            "heading",
            "body"
          ]
        },
        "layoutCount": {
          "type": "integer"
        },
        "thumbnailCount": {
          "type": "integer"
        },
        "logoSlots": {
          "type": "object",
          "description": "How many layouts and thumbnail designs carry a logo slot.",
          "properties": {
            "layouts": {
              "type": "integer"
            },
            "thumbnails": {
              "type": "integer"
            }
          },
          "required": [
            "layouts",
            "thumbnails"
          ]
        }
      },
      "required": [
        "id",
        "name",
        "order",
        "revision",
        "fonts",
        "layoutCount",
        "thumbnailCount",
        "logoSlots"
      ]
    },
    "LessonTextOnSurface": {
      "type": "object",
      "description": "A text colour on a palette surface at one size, with how many texts use it and its hardest text to read, in canvas pixels: the smaller, then the lighter. Large text (WCAG's: 24 or more, or 18.66 and bold) needs 3:1 and the rest 4.5:1, so each size is its own entry, and a design may colour each its own way.",
      "properties": {
        "text": {
          "type": "string"
        },
        "surface": {
          "type": "string"
        },
        "size": {
          "type": "string",
          "enum": [
            "large",
            "small"
          ]
        },
        "uses": {
          "type": "integer"
        },
        "smallest": {
          "type": "object",
          "properties": {
            "fontSize": {
              "type": "number"
            },
            "fontWeight": {
              "type": [
                "number",
                "string"
              ]
            }
          },
          "required": [
            "fontSize",
            "fontWeight"
          ]
        }
      },
      "required": [
        "text",
        "surface",
        "size",
        "uses",
        "smallest"
      ]
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/elaiio-lesson-template-detail"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.