Skip to main content
GET
Get Template by ID

Overview

Retrieve comprehensive details about a specific video template using its unique identifier. This endpoint returns the complete template configuration, including scene structure, variables, voice-over settings, background music, and S3 storage URLs for project files.
You need a valid API key to use this endpoint. Get your API key from the API Access page in your Pictory dashboard.

API Endpoint


Request Parameters

Path Parameters

string
required
The unique identifier of the template to retrieveExample: 202512230204424435786014d42904bbc95813430789fe736

Headers

string
required
API key for authentication (starts with pictai_)

Response

The response contains detailed template information including configuration, scenes, variables, and media settings.
string
Unique identifier for the template
string
Name of the template
string
Language code of the template (e.g., en for English)
boolean
Indicates whether the template is published and available for use
boolean
Indicates whether the template has been deprecated (note: API uses “depricated” spelling)
object
Background music configuration
object
Voice-over configuration
array of objects
Array of scene objects that define the template structure
object
Template variables that can be customized when creating videos from this template. Keys are variable names, values are default values or placeholders.Example: {"Name": "NAME", "Company": "COMPANY_NAME"}
string
Template schema version (e.g., v2, v3)
string
S3 URL to the complete project template JSON file
string
S3 URL to the project template structure JSON file

Response Examples


Code Examples

Replace YOUR_API_KEY with your actual API key that starts with pictai_

Usage Notes

Use this endpoint to retrieve template details before using it to create videos or before updating the template configuration.
Template Variables: The variables object shows all customizable placeholders in the template. These can be replaced with actual values when creating videos from the template.
S3 URLs: The project and structure URLs point to S3 storage containing the complete template configuration and structure data.

Common Use Cases

1. Retrieve Template Details

Get complete information about a specific template:

2. Extract Template Variables

Identify all customizable variables in a template:

3. Analyze Template Structure

Analyze and report on template structure:

4. Compare Template Versions

Compare two template versions:

5. Download Template Configuration

Download and save complete template configuration:

6. Validate Template Before Use

Validate template configuration before creating videos:

Best Practices

Template Inspection

  1. Retrieve Before Update: Always fetch the template details before updating to understand the current structure
  2. Validate Configuration: Check that the template is published and not deprecated before using it
  3. Understand Variables: Review all variables and their default values before creating videos
  4. Check Schema Version: Be aware of the schema version as it affects available features

Performance Tips

  • Cache template details locally to reduce API calls
  • Only fetch template details when needed (e.g., before creating videos or updating)
  • Use the template list endpoint to get basic info, then fetch details only for selected templates
  • Store frequently used template configurations locally