Open with AI
Create a new render
const url = 'https://api.editsquare.com/v1/renders';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","project_id":"example","template_id":"example","target":"story","values":{"additionalProperty":"example"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.editsquare.com/v1/renders \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "project_id": "example", "template_id": "example", "target": "story", "values": { "additionalProperty": "example" } }'Queues a render of a project. Pass template_id and values to render the project with a form submission applied; omit both to render it as it stands.
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”object
The key of the template target to render. The template’s first (primary) target when omitted.
Example
storyobject
Responses
Section titled “ Responses ”Render created successfully
object
object
Signed URLs for the finished video, keyed by variant (the master plus any smaller encodes). Present once the render is complete. The URLs are time-limited.
object
The template this render was made from. Null when the project rendered as it stands.
The key of the template target that rendered: the template’s first target when the request named none. Null without a template, and on renders from before targets.
The field values the render was requested with, by field key. Null without a template.
Example
{ "id": "rend_jh716ctpaqbye9aw64tgkqwtks7gvx7g", "name": "My New Shiny Render", "status": "initializing", "type": "local", "project": { "id": "proj_jd71dcg41pjy7rax1v2h4pvcmd7gtar9", "team": "team_jn7fw41m8n5jtht7hxsy69tzg97gvef8" }, "output": { "master": "https://files.editsquare.com/renders/rend_jh716ctpaqbye9aw64tgkqwtks7gvx7g/master.mp4?signature=..." }, "template_id": "tpl_8f2c1d4e6a7b9c0d1e2f3a4b5c6d7e8f", "target": "story", "values": { "headline": "Summer sale", "hero": "https://example.com/hero.jpg" }, "created_by": "user_k970b359khfwwny0q8fjah1hc97gtcwm", "created_at": 1748875980, "updated_at": 1748875986}Invalid request data
object
Example
{ "error": "Render not found"}