Open with AI
Get a template
const url = 'https://api.editsquare.com/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://api.editsquare.com/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
Example
tpl_8f2c1d4e6a7b9c0d1e2f3a4b5c6d7e8fTemplate ID
Query Parameters
Section titled “Query Parameters”Project ID
Example
proj_jd71dcg41pjy7rax1v2h4pvcmd7gtar9Project ID
Responses
Section titled “ Responses ”The template
object
The composition the primary target renders. Superseded by targets.
What the template renders, in order. The first is the primary; a render picks one by target.
object
The value a render’s target takes.
The name of the composition or sequence it renders.
Seconds.
object
The key to use in a render’s values object.
What the field drives.
How the editor renders the input.
The keys of the targets whose render this field can change: each renders a variable the field sets. A field that reaches no target is still accepted.
A font field that offers only some fonts: the values it accepts. Absent when any font is accepted.
Example
{ "id": "tpl_8f2c1d4e6a7b9c0d1e2f3a4b5c6d7e8f", "name": "Welcome video", "description": "One clip per new customer.", "project_id": "proj_jd71dcg41pjy7rax1v2h4pvcmd7gtar9", "target_composition_id": "comp_4f1f0f7c", "targets": [ { "key": "story", "name": "Story 9:16", "width": 1080, "height": 1920, "duration": 6 } ], "field_count": 3, "fields": [ { "key": "customer_name", "label": "Customer name", "description": "Shown on the opening card.", "kind": "control", "widget": "text", "default_value": "Acme", "reaches": [ "story", "square" ], "fonts": [ "inter", "playfair-display" ] } ]}Template not found
object
Example
{ "error": "Render not found"}