[{"data":1,"prerenderedAt":946},["ShallowReactive",2],{"docs-\u002Fdocs\u002Fapi\u002Ftemplates":3,"docs-section-API":928},{"id":4,"title":5,"body":6,"description":919,"extension":920,"meta":921,"navigation":922,"order":88,"path":923,"section":924,"seo":925,"stem":926,"__hash__":927},"docs\u002Fdocs\u002Fapi\u002Ftemplates.md","Templates",{"type":7,"value":8,"toc":914},"minimark",[9,18,23,66,758,761,765,899,903,910],[10,11,12,13,17],"p",{},"A template is a ready-made video: a layout, its motion and its length. You fill it in ",[14,15,16],"strong",{},"by name",": the quote, the caption, the photos.",[19,20,22],"h2",{"id":21},"list-the-templates","List the templates",[24,25,30],"pre",{"className":26,"code":27,"language":28,"meta":29,"style":29},"language-bash shiki shiki-themes github-light github-dark","curl {{base}}\u002Ftemplates \\\n  -H \"Authorization: Bearer $API_KEY\"\n","bash","",[31,32,33,50],"code",{"__ignoreMap":29},[34,35,38,42,46],"span",{"class":36,"line":37},"line",1,[34,39,41],{"class":40},"sScJk","curl",[34,43,45],{"class":44},"sZZnC"," {{base}}\u002Ftemplates",[34,47,49],{"class":48},"sj4cs"," \\\n",[34,51,53,56,59,63],{"class":36,"line":52},2,[34,54,55],{"class":48},"  -H",[34,57,58],{"class":44}," \"Authorization: Bearer ",[34,60,62],{"class":61},"sVt8B","$API_KEY",[34,64,65],{"class":44},"\"\n",[24,67,71],{"className":68,"code":69,"language":70,"meta":29,"style":29},"language-json shiki shiki-themes github-light github-dark","{\n  \"templates\": [\n    {\n      \"id\": \"quote-reel\",\n      \"title\": \"Review card\",\n      \"description\": \"A customer’s words on a card, with a number counting up below.\",\n      \"use\": \"Share a review and how many people you’ve helped.\",\n      \"ratios\": [\"9x16\", \"1x1\", \"16x9\"],\n      \"duration\": 8,\n      \"fields\": [\n        { \"name\": \"tag\", \"kind\": \"text\", \"label\": \"Where it’s from\", \"maxLength\": 24, \"example\": \"Shared by a customer\" },\n        { \"name\": \"quote\", \"kind\": \"text\", \"label\": \"What they said\", \"maxLength\": 150, \"example\": \"They fixed our furnace the same afternoon…\" },\n        { \"name\": \"count\", \"kind\": \"text\", \"label\": \"Number to count up to\", \"maxLength\": 9, \"example\": \"5,396\" },\n        { \"name\": \"label\", \"kind\": \"text\", \"label\": \"What the number counts\", \"maxLength\": 14, \"example\": \"happy clients\" }\n      ],\n      \"lists\": [],\n      \"brandFields\": [\"logo\", \"website\"],\n      \"colors\": [\"bg\", \"surface\", \"text\", \"muted\", \"primary\", \"onPrimary\", \"accent\", \"dark\", \"onDark\", \"line\"]\n    },\n    {\n      \"id\": \"table-dump\",\n      \"title\": \"Photo dump\",\n      \"fields\": [\n        { \"name\": \"photo_1\", \"kind\": \"image\", \"label\": \"Photo 1\" },\n        { \"name\": \"title\", \"kind\": \"text\", \"label\": \"Title\", \"maxLength\": 30 },\n        { \"name\": \"caption\", \"kind\": \"text\", \"label\": \"Caption\", \"maxLength\": 120, \"emphasis\": true }\n      ],\n      \"lists\": [{ \"name\": \"photos\", \"label\": \"Photos\", \"min\": 5, \"items\": [[\"photo_1\"], [\"photo_2\"], [\"photo_3\"], [\"photo_4\"], [\"photo_5\"], [\"photo_6\"], [\"photo_7\"], [\"photo_8\"]] }]\n    }\n  ]\n}\n","json",[31,72,73,78,86,92,107,120,133,146,172,185,193,250,299,348,397,403,412,430,488,494,499,511,523,530,562,602,652,657,740,746,752],{"__ignoreMap":29},[34,74,75],{"class":36,"line":37},[34,76,77],{"class":61},"{\n",[34,79,80,83],{"class":36,"line":52},[34,81,82],{"class":48},"  \"templates\"",[34,84,85],{"class":61},": [\n",[34,87,89],{"class":36,"line":88},3,[34,90,91],{"class":61},"    {\n",[34,93,95,98,101,104],{"class":36,"line":94},4,[34,96,97],{"class":48},"      \"id\"",[34,99,100],{"class":61},": ",[34,102,103],{"class":44},"\"quote-reel\"",[34,105,106],{"class":61},",\n",[34,108,110,113,115,118],{"class":36,"line":109},5,[34,111,112],{"class":48},"      \"title\"",[34,114,100],{"class":61},[34,116,117],{"class":44},"\"Review card\"",[34,119,106],{"class":61},[34,121,123,126,128,131],{"class":36,"line":122},6,[34,124,125],{"class":48},"      \"description\"",[34,127,100],{"class":61},[34,129,130],{"class":44},"\"A customer’s words on a card, with a number counting up below.\"",[34,132,106],{"class":61},[34,134,136,139,141,144],{"class":36,"line":135},7,[34,137,138],{"class":48},"      \"use\"",[34,140,100],{"class":61},[34,142,143],{"class":44},"\"Share a review and how many people you’ve helped.\"",[34,145,106],{"class":61},[34,147,149,152,155,158,161,164,166,169],{"class":36,"line":148},8,[34,150,151],{"class":48},"      \"ratios\"",[34,153,154],{"class":61},": [",[34,156,157],{"class":44},"\"9x16\"",[34,159,160],{"class":61},", ",[34,162,163],{"class":44},"\"1x1\"",[34,165,160],{"class":61},[34,167,168],{"class":44},"\"16x9\"",[34,170,171],{"class":61},"],\n",[34,173,175,178,180,183],{"class":36,"line":174},9,[34,176,177],{"class":48},"      \"duration\"",[34,179,100],{"class":61},[34,181,182],{"class":48},"8",[34,184,106],{"class":61},[34,186,188,191],{"class":36,"line":187},10,[34,189,190],{"class":48},"      \"fields\"",[34,192,85],{"class":61},[34,194,196,199,202,204,207,209,212,214,217,219,222,224,227,229,232,234,237,239,242,244,247],{"class":36,"line":195},11,[34,197,198],{"class":61},"        { ",[34,200,201],{"class":48},"\"name\"",[34,203,100],{"class":61},[34,205,206],{"class":44},"\"tag\"",[34,208,160],{"class":61},[34,210,211],{"class":48},"\"kind\"",[34,213,100],{"class":61},[34,215,216],{"class":44},"\"text\"",[34,218,160],{"class":61},[34,220,221],{"class":48},"\"label\"",[34,223,100],{"class":61},[34,225,226],{"class":44},"\"Where it’s from\"",[34,228,160],{"class":61},[34,230,231],{"class":48},"\"maxLength\"",[34,233,100],{"class":61},[34,235,236],{"class":48},"24",[34,238,160],{"class":61},[34,240,241],{"class":48},"\"example\"",[34,243,100],{"class":61},[34,245,246],{"class":44},"\"Shared by a customer\"",[34,248,249],{"class":61}," },\n",[34,251,253,255,257,259,262,264,266,268,270,272,274,276,279,281,283,285,288,290,292,294,297],{"class":36,"line":252},12,[34,254,198],{"class":61},[34,256,201],{"class":48},[34,258,100],{"class":61},[34,260,261],{"class":44},"\"quote\"",[34,263,160],{"class":61},[34,265,211],{"class":48},[34,267,100],{"class":61},[34,269,216],{"class":44},[34,271,160],{"class":61},[34,273,221],{"class":48},[34,275,100],{"class":61},[34,277,278],{"class":44},"\"What they said\"",[34,280,160],{"class":61},[34,282,231],{"class":48},[34,284,100],{"class":61},[34,286,287],{"class":48},"150",[34,289,160],{"class":61},[34,291,241],{"class":48},[34,293,100],{"class":61},[34,295,296],{"class":44},"\"They fixed our furnace the same afternoon…\"",[34,298,249],{"class":61},[34,300,302,304,306,308,311,313,315,317,319,321,323,325,328,330,332,334,337,339,341,343,346],{"class":36,"line":301},13,[34,303,198],{"class":61},[34,305,201],{"class":48},[34,307,100],{"class":61},[34,309,310],{"class":44},"\"count\"",[34,312,160],{"class":61},[34,314,211],{"class":48},[34,316,100],{"class":61},[34,318,216],{"class":44},[34,320,160],{"class":61},[34,322,221],{"class":48},[34,324,100],{"class":61},[34,326,327],{"class":44},"\"Number to count up to\"",[34,329,160],{"class":61},[34,331,231],{"class":48},[34,333,100],{"class":61},[34,335,336],{"class":48},"9",[34,338,160],{"class":61},[34,340,241],{"class":48},[34,342,100],{"class":61},[34,344,345],{"class":44},"\"5,396\"",[34,347,249],{"class":61},[34,349,351,353,355,357,359,361,363,365,367,369,371,373,376,378,380,382,385,387,389,391,394],{"class":36,"line":350},14,[34,352,198],{"class":61},[34,354,201],{"class":48},[34,356,100],{"class":61},[34,358,221],{"class":44},[34,360,160],{"class":61},[34,362,211],{"class":48},[34,364,100],{"class":61},[34,366,216],{"class":44},[34,368,160],{"class":61},[34,370,221],{"class":48},[34,372,100],{"class":61},[34,374,375],{"class":44},"\"What the number counts\"",[34,377,160],{"class":61},[34,379,231],{"class":48},[34,381,100],{"class":61},[34,383,384],{"class":48},"14",[34,386,160],{"class":61},[34,388,241],{"class":48},[34,390,100],{"class":61},[34,392,393],{"class":44},"\"happy clients\"",[34,395,396],{"class":61}," }\n",[34,398,400],{"class":36,"line":399},15,[34,401,402],{"class":61},"      ],\n",[34,404,406,409],{"class":36,"line":405},16,[34,407,408],{"class":48},"      \"lists\"",[34,410,411],{"class":61},": [],\n",[34,413,415,418,420,423,425,428],{"class":36,"line":414},17,[34,416,417],{"class":48},"      \"brandFields\"",[34,419,154],{"class":61},[34,421,422],{"class":44},"\"logo\"",[34,424,160],{"class":61},[34,426,427],{"class":44},"\"website\"",[34,429,171],{"class":61},[34,431,433,436,438,441,443,446,448,450,452,455,457,460,462,465,467,470,472,475,477,480,482,485],{"class":36,"line":432},18,[34,434,435],{"class":48},"      \"colors\"",[34,437,154],{"class":61},[34,439,440],{"class":44},"\"bg\"",[34,442,160],{"class":61},[34,444,445],{"class":44},"\"surface\"",[34,447,160],{"class":61},[34,449,216],{"class":44},[34,451,160],{"class":61},[34,453,454],{"class":44},"\"muted\"",[34,456,160],{"class":61},[34,458,459],{"class":44},"\"primary\"",[34,461,160],{"class":61},[34,463,464],{"class":44},"\"onPrimary\"",[34,466,160],{"class":61},[34,468,469],{"class":44},"\"accent\"",[34,471,160],{"class":61},[34,473,474],{"class":44},"\"dark\"",[34,476,160],{"class":61},[34,478,479],{"class":44},"\"onDark\"",[34,481,160],{"class":61},[34,483,484],{"class":44},"\"line\"",[34,486,487],{"class":61},"]\n",[34,489,491],{"class":36,"line":490},19,[34,492,493],{"class":61},"    },\n",[34,495,497],{"class":36,"line":496},20,[34,498,91],{"class":61},[34,500,502,504,506,509],{"class":36,"line":501},21,[34,503,97],{"class":48},[34,505,100],{"class":61},[34,507,508],{"class":44},"\"table-dump\"",[34,510,106],{"class":61},[34,512,514,516,518,521],{"class":36,"line":513},22,[34,515,112],{"class":48},[34,517,100],{"class":61},[34,519,520],{"class":44},"\"Photo dump\"",[34,522,106],{"class":61},[34,524,526,528],{"class":36,"line":525},23,[34,527,190],{"class":48},[34,529,85],{"class":61},[34,531,533,535,537,539,542,544,546,548,551,553,555,557,560],{"class":36,"line":532},24,[34,534,198],{"class":61},[34,536,201],{"class":48},[34,538,100],{"class":61},[34,540,541],{"class":44},"\"photo_1\"",[34,543,160],{"class":61},[34,545,211],{"class":48},[34,547,100],{"class":61},[34,549,550],{"class":44},"\"image\"",[34,552,160],{"class":61},[34,554,221],{"class":48},[34,556,100],{"class":61},[34,558,559],{"class":44},"\"Photo 1\"",[34,561,249],{"class":61},[34,563,565,567,569,571,574,576,578,580,582,584,586,588,591,593,595,597,600],{"class":36,"line":564},25,[34,566,198],{"class":61},[34,568,201],{"class":48},[34,570,100],{"class":61},[34,572,573],{"class":44},"\"title\"",[34,575,160],{"class":61},[34,577,211],{"class":48},[34,579,100],{"class":61},[34,581,216],{"class":44},[34,583,160],{"class":61},[34,585,221],{"class":48},[34,587,100],{"class":61},[34,589,590],{"class":44},"\"Title\"",[34,592,160],{"class":61},[34,594,231],{"class":48},[34,596,100],{"class":61},[34,598,599],{"class":48},"30",[34,601,249],{"class":61},[34,603,605,607,609,611,614,616,618,620,622,624,626,628,631,633,635,637,640,642,645,647,650],{"class":36,"line":604},26,[34,606,198],{"class":61},[34,608,201],{"class":48},[34,610,100],{"class":61},[34,612,613],{"class":44},"\"caption\"",[34,615,160],{"class":61},[34,617,211],{"class":48},[34,619,100],{"class":61},[34,621,216],{"class":44},[34,623,160],{"class":61},[34,625,221],{"class":48},[34,627,100],{"class":61},[34,629,630],{"class":44},"\"Caption\"",[34,632,160],{"class":61},[34,634,231],{"class":48},[34,636,100],{"class":61},[34,638,639],{"class":48},"120",[34,641,160],{"class":61},[34,643,644],{"class":48},"\"emphasis\"",[34,646,100],{"class":61},[34,648,649],{"class":48},"true",[34,651,396],{"class":61},[34,653,655],{"class":36,"line":654},27,[34,656,402],{"class":61},[34,658,660,662,665,667,669,672,674,676,678,681,683,686,688,691,693,696,699,701,704,707,709,712,714,717,719,722,724,727,729,732,734,737],{"class":36,"line":659},28,[34,661,408],{"class":48},[34,663,664],{"class":61},": [{ ",[34,666,201],{"class":48},[34,668,100],{"class":61},[34,670,671],{"class":44},"\"photos\"",[34,673,160],{"class":61},[34,675,221],{"class":48},[34,677,100],{"class":61},[34,679,680],{"class":44},"\"Photos\"",[34,682,160],{"class":61},[34,684,685],{"class":48},"\"min\"",[34,687,100],{"class":61},[34,689,690],{"class":48},"5",[34,692,160],{"class":61},[34,694,695],{"class":48},"\"items\"",[34,697,698],{"class":61},": [[",[34,700,541],{"class":44},[34,702,703],{"class":61},"], [",[34,705,706],{"class":44},"\"photo_2\"",[34,708,703],{"class":61},[34,710,711],{"class":44},"\"photo_3\"",[34,713,703],{"class":61},[34,715,716],{"class":44},"\"photo_4\"",[34,718,703],{"class":61},[34,720,721],{"class":44},"\"photo_5\"",[34,723,703],{"class":61},[34,725,726],{"class":44},"\"photo_6\"",[34,728,703],{"class":61},[34,730,731],{"class":44},"\"photo_7\"",[34,733,703],{"class":61},[34,735,736],{"class":44},"\"photo_8\"",[34,738,739],{"class":61},"]] }]\n",[34,741,743],{"class":36,"line":742},29,[34,744,745],{"class":61},"    }\n",[34,747,749],{"class":36,"line":748},30,[34,750,751],{"class":61},"  ]\n",[34,753,755],{"class":36,"line":754},31,[34,756,757],{"class":61},"}\n",[10,759,760],{},"The example is shortened (the second template shows only some of its parts). Read the names from this list rather than copying them from here: templates gain names over time.",[19,762,764],{"id":763},"what-each-part-means","What each part means",[766,767,768,789,797,852,864,872],"ul",{},[769,770,771,776,777,780,781,784,785,788],"li",{},[14,772,773],{},[31,774,775],{},"ratios",": the sizes it comes in. ",[31,778,779],{},"9x16"," is tall (1080 × 1920), ",[31,782,783],{},"1x1"," square (1080 × 1080) and ",[31,786,787],{},"16x9"," wide (1920 × 1080).",[769,790,791,796],{},[14,792,793],{},[31,794,795],{},"duration",": its length in seconds, with every part filled in. Leaving list items out can make it shorter.",[769,798,799,804,805],{},[14,800,801],{},[31,802,803],{},"fields",": the names you fill in.\n",[766,806,807,831,837,846],{},[769,808,809,812,813,816,817,820,821,824,825,830],{},[31,810,811],{},"kind"," is ",[31,814,815],{},"text"," or ",[31,818,819],{},"image",". An image takes the ",[31,822,823],{},"name"," of one of the brand's photos; see ",[826,827,829],"a",{"href":828},"\u002Fdocs\u002Fapi\u002Fbrands-and-photos","Brands and photos",".",[769,832,833,836],{},[31,834,835],{},"maxLength"," is the longest text that fits in every size. Longer text is accepted, but it may not fit.",[769,838,839,842,843,830],{},[31,840,841],{},"emphasis: true"," means words between asterisks stand out, like ",[31,844,845],{},"\"A *book*, not a tablet\"",[769,847,848,851],{},[31,849,850],{},"example"," is sample text, to show what kind of words go there.",[769,853,854,859,860,863],{},[14,855,856],{},[31,857,858],{},"lists",": groups of names that repeat, like the photos in a photo dump. Each item is a list of names. Fill at least ",[31,861,862],{},"min"," items; the list closes up around items you leave out.",[769,865,866,871],{},[14,867,868],{},[31,869,870],{},"brandFields",": names the brand fills: its logo and its web address. You can't set these in a render.",[769,873,874,879,880,883,884,887,888,160,891,894,895,898],{},[14,875,876],{},[31,877,878],{},"colors",": the template's palette. Set one as ",[31,881,882],{},"palette.\u003Cname>"," with a color like ",[31,885,886],{},"#1a73e8",". ",[31,889,890],{},"primary",[31,892,893],{},"onPrimary"," and ",[31,896,897],{},"accent"," start as your brand's colors; the others start as the template's own.",[19,900,902],{"id":901},"names-you-leave-out","Names you leave out",[10,904,905,906,909],{},"A name you don't fill in is ",[14,907,908],{},"left out of the video",", not filled with sample text. Leave out an item of a list and the items after it move up. Fill in everything you want to show.",[911,912,913],"style",{},"html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":29,"searchDepth":52,"depth":52,"links":915},[916,917,918],{"id":21,"depth":52,"text":22},{"id":763,"depth":52,"text":764},{"id":901,"depth":52,"text":902},"The videos you can make, and the names each one is filled in by.","md",{},true,"\u002Fdocs\u002Fapi\u002Ftemplates","API",{"title":5,"description":919},"docs\u002Fapi\u002Ftemplates","SvWJ8cixNwkiaHwS4iM7QiZIagqWpn_gp9L45MM56U8",[929,932,935,936,937,940,943],{"path":930,"title":931},"\u002Fdocs\u002Fapi","Video API",{"path":933,"title":934},"\u002Fdocs\u002Fapi\u002Fauthentication","Authentication",{"path":923,"title":5},{"path":828,"title":829},{"path":938,"title":939},"\u002Fdocs\u002Fapi\u002Frenders","Renders",{"path":941,"title":942},"\u002Fdocs\u002Fapi\u002Fusage","Usage",{"path":944,"title":945},"\u002Fdocs\u002Fapi\u002Ferrors-and-limits","Errors and limits",1793740287658]