Templates
Retrieve Template Details
Get detailed information about a specific template including scenes and variables
GET
Overview
Retrieve complete details about a template, including its scenes, script variables, and configuration. This information is essential before generating videos from the template.Templates in SlideVid work with scenes - each scene has a script with
{{variables}} that you can replace when generating videos.Path Parameters
The template ID to retrieve
Understanding Scenes
Templates use scenes to structure the video. Each scene contains:The text for this scene with
{{variable}} placeholdersList of variable objects used in this scene. Each variable has:
key: The variable name (e.g., “product_name”)type: Either “text” (from script/text overlays) or “media” (from image/video/audio overlays)value: Example value - text for “text” type (e.g., “John Doe”), URL for “media” type (e.g., “https://cdn.example.com/image.jpg”)
Avatar positioning information for this scene
id: Avatar identifiertopLeft: Top-left corner coordinates{x, y}bottomRight: Bottom-right corner coordinates{x, y}
Caption positioning information for this scene
topLeft: Top-left corner coordinates{x, y}bottomRight: Bottom-right corner coordinates{x, y}
Scene Structure Example
Scene Example
Variable Types:
type: "text": Variables from script ({{name}},{{company}}) or text overlaystype: "media": Variables from image/video/audio overlays (set viavariableNameproperty)
- Text variables: Provide the text content (e.g., “John Doe”, “Acme Corp”)
- Media variables: Provide URLs (e.g., “https://cdn.example.com/image.jpg”)
Variable Extraction
The API automatically extracts variables from each scene:Use Cases
Preview Before Generation
Preview Before Generation
View the template structure and required variables before creating videos
Dynamic Form Generation
Dynamic Form Generation
Build a UI form dynamically based on template variables
Validation
Validation
Validate that you have all required data for each scene before generation
Batch Processing
Batch Processing
Process multiple records with the same template
Complete Example
Complete Workflow
Next Steps
Generate from Template
Create a video using this template
List Templates
Browse all your templates