Skip to main content
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

string
required
The template ID to retrieve

Understanding Scenes

Templates use scenes to structure the video. Each scene contains:
string
The text for this scene with {{variable}} placeholders
array
List 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”)
object
Avatar positioning information for this scene
  • id: Avatar identifier
  • topLeft: Top-left corner coordinates {x, y}
  • bottomRight: Bottom-right corner coordinates {x, y}
object
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 overlays
  • type: "media": Variables from image/video/audio overlays (set via variableName property)
When generating videos, provide values based on type:

Variable Extraction

The API automatically extracts variables from each scene:

Use Cases

View the template structure and required variables before creating videos
Build a UI form dynamically based on template variables
Validate that you have all required data for each scene before generation
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

Authorizations

x-api-key
string
header
required

Path Parameters

templateId
string
required

Template ID

Response

200

Success