Open with AI
Get a template
GET
/v1/templates/{template_id}
const url = 'https://proficient-seahorse-829.eu-west-1.convex.site/v1/templates/tpl_8f2c1d4e6a7b9c0d1e2f3a4b5c6d7e8f?project_id=proj_jd71dcg41pjy7rax1v2h4pvcmd7gtar9';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://proficient-seahorse-829.eu-west-1.convex.site/v1/templates/tpl_8f2c1d4e6a7b9c0d1e2f3a4b5c6d7e8f?project_id=proj_jd71dcg41pjy7rax1v2h4pvcmd7gtar9' \ --header 'Authorization: Bearer <token>'Retrieves one template, including every field it exposes - the keys a render’s values object can set.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”template_id
required
Template ID
string
Example
tpl_8f2c1d4e6a7b9c0d1e2f3a4b5c6d7e8fTemplate ID
Query Parameters
Section titled “Query Parameters”project_id
required
Project ID
string
Example
proj_jd71dcg41pjy7rax1v2h4pvcmd7gtar9Project ID
Responses
Section titled “ Responses ”The template
Media typeapplication/json
object
id
required
string
name
required
string
description
required
string | null
project_id
required
string
target_composition_id
required
The composition this template renders.
string
field_count
required
number
fields
required
Array<object>
object
Example
{ "id": "tpl_8f2c1d4e6a7b9c0d1e2f3a4b5c6d7e8f", "name": "Welcome video", "description": "One clip per new customer.", "project_id": "proj_jd71dcg41pjy7rax1v2h4pvcmd7gtar9", "target_composition_id": "comp_4f1f0f7c", "field_count": 3, "fields": [ { "key": "customer_name", "label": "Customer name", "description": "Shown on the opening card.", "kind": "control", "widget": "text", "default_value": "Acme" } ]}Template not found
Media typeapplication/json
object
error
required
string
Example
{ "error": "Render not found"}