Skip to main content

Templates

The Templates API allows you to access and manage video templates that can be used for creating personalized videos.

List Templates

GET/templates

Retrieves a list of all available templates in your account.

Query Parameters

ParameterTypeDescription
pageintegerOptional Page number for pagination (default: 1)
limitintegerOptional Number of items per page (default: 20, max: 100)
categorystringOptional Filter templates by category

Response

{
"data": [
{
"id": "tmpl_welcome_message",
"name": "Welcome Message",
"description": "A warm welcome message for new customers",
"duration": 60,
"thumbnail_url": "https://cdn.sixtyseconds.video/thumbnails/tmpl_welcome_message.jpg",
"preview_url": "https://cdn.sixtyseconds.video/previews/tmpl_welcome_message.mp4",
"category": "onboarding",
"available_aspect_ratios": ["9:16", "16:9", "1:1"],
"created_at": "2025-01-15T10:00:00Z"
},
{
"id": "tmpl_product_showcase",
"name": "Product Showcase",
"description": "Highlight your product's key features",
"duration": 45,
"thumbnail_url": "https://cdn.sixtyseconds.video/thumbnails/tmpl_product_showcase.jpg",
"preview_url": "https://cdn.sixtyseconds.video/previews/tmpl_product_showcase.mp4",
"category": "marketing",
"available_aspect_ratios": ["16:9", "1:1"],
"created_at": "2025-01-20T14:30:00Z"
}
],
"pagination": {
"total": 28,
"page": 1,
"limit": 20,
"next_page": 2,
"prev_page": null
}
}

Get Template

GET/templates/{template_id}

Retrieves detailed information about a specific template.

Path Parameters

ParameterTypeDescription
template_idstringRequired The ID of the template to retrieve

Response

{
"id": "tmpl_welcome_message",
"name": "Welcome Message",
"description": "A warm welcome message for new customers",
"duration": 60,
"thumbnail_url": "https://cdn.sixtyseconds.video/thumbnails/tmpl_welcome_message.jpg",
"preview_url": "https://cdn.sixtyseconds.video/previews/tmpl_welcome_message.mp4",
"category": "onboarding",
"available_aspect_ratios": ["9:16", "16:9", "1:1"],
"created_at": "2025-01-15T10:00:00Z",
"personalization_fields": [
{
"name": "first_name",
"type": "string",
"description": "Customer's first name",
"required": true
},
{
"name": "company",
"type": "string",
"description": "Customer's company name",
"required": true
},
{
"name": "product_tier",
"type": "string",
"description": "Product tier or plan name",
"required": false
}
],
"scenes": [
{
"id": "scene_1",
"name": "Introduction",
"duration": 20,
"description": "Opening scene with personalized greeting"
},
{
"id": "scene_2",
"name": "Features Overview",
"duration": 25,
"description": "Highlights key product features"
},
{
"id": "scene_3",
"name": "Call to Action",
"duration": 15,
"description": "Closing message with next steps"
}
]
}

Create Custom Template

POST/templates

Creates a new custom template in your account.

Request Body

ParameterTypeDescription
namestringRequired The name of the template
descriptionstringRequired A description of the template
video_urlstringRequired URL to the video file for this template
thumbnail_urlstringOptional URL to the thumbnail image
categorystringOptional Category for the template
personalization_fieldsarrayOptional Fields that can be personalized in this template

Example Request

{
"name": "Customer Thank You",
"description": "A personalized thank you message for loyal customers",
"video_url": "https://your-storage.com/uploads/thank_you.mp4",
"thumbnail_url": "https://your-storage.com/uploads/thank_you_thumbnail.jpg",
"category": "customer_retention",
"personalization_fields": [
{
"name": "first_name",
"type": "string",
"description": "Customer's first name",
"required": true
},
{
"name": "purchase_history",
"type": "object",
"description": "Customer's purchase data",
"required": false
}
]
}

Response

{
"id": "tmpl_custom_123456",
"name": "Customer Thank You",
"description": "A personalized thank you message for loyal customers",
"duration": 45,
"thumbnail_url": "https://your-storage.com/uploads/thank_you_thumbnail.jpg",
"preview_url": "https://cdn.sixtyseconds.video/previews/tmpl_custom_123456.mp4",
"category": "customer_retention",
"available_aspect_ratios": ["16:9"],
"created_at": "2025-03-05T09:12:30Z",
"personalization_fields": [
{
"name": "first_name",
"type": "string",
"description": "Customer's first name",
"required": true
},
{
"name": "purchase_history",
"type": "object",
"description": "Customer's purchase data",
"required": false
}
],
"status": "processing"
}

Template Categories

Templates are organized into the following categories:

CategoryDescription
onboardingTemplates for welcoming new users and customers
marketingPromotional and advertising templates
educationalTemplates for tutorials and explainer videos
salesTemplates designed for sales outreach
customer_retentionTemplates for engaging existing customers
announcementsTemplates for product updates and company news
seasonalHoliday and seasonal greeting templates

Working with Templates

Personalization Fields

Each template has a set of defined personalization fields that can be used when creating videos. These fields are specified in the personalization_fields array and should be included in the customer_data object when creating a video.

Custom Templates

You can create custom templates by uploading your own video content. Custom templates support the same personalization capabilities as our standard templates.

Template Processing

When you create a custom template, it undergoes processing to optimize it for personalization. The initial status will be processing and will change to ready once the template is available for use.

Preview URLs

Preview URLs are provided to allow you to see how a template looks before using it to create personalized videos. These previews use placeholder data for any personalization fields.