[{"data":1,"prerenderedAt":1684},["ShallowReactive",2],{"navigation_docs":3,"-templates":104,"-templates-surround":1679},[4,26,32,45,70,87],{"title":5,"path":6,"stem":7,"children":8,"page":25},"Getting Started","\u002Fgetting-started","1.getting-started",[9,13,17,21],{"title":10,"path":11,"stem":12},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction",{"title":14,"path":15,"stem":16},"Authentication","\u002Fgetting-started\u002Fauthentication","1.getting-started\u002F2.authentication",{"title":18,"path":19,"stem":20},"Campaign setup","\u002Fgetting-started\u002Fcampaigns","1.getting-started\u002F3.campaigns",{"title":22,"path":23,"stem":24},"AI agent skills","\u002Fgetting-started\u002Fai-agent-skills","1.getting-started\u002F4.ai-agent-skills",false,{"title":27,"path":28,"stem":29,"children":30},"Templates","\u002Ftemplates","2.templates\u002Findex",[31],{"title":27,"path":28,"stem":29},{"title":33,"path":34,"stem":35,"children":36,"page":25},"Campaigns","\u002Fcampaigns","3.campaigns",[37,41],{"title":38,"path":39,"stem":40},"Create campaign","\u002Fcampaigns\u002Fcreate-campaign","3.campaigns\u002F1.create-campaign",{"title":42,"path":43,"stem":44},"Fetch campaign","\u002Fcampaigns\u002Ffetch-campaign","3.campaigns\u002F2.fetch-campaign",{"title":46,"path":47,"stem":48,"children":49,"page":25},"Recipients","\u002Frecipients","4.recipients",[50,54,58,62,66],{"title":51,"path":52,"stem":53},"Create recipients","\u002Frecipients\u002Fcreate-recipients","4.recipients\u002F1.create-recipients",{"title":55,"path":56,"stem":57},"Fetch recipient","\u002Frecipients\u002Ffetch-recipient","4.recipients\u002F2.fetch-recipient",{"title":59,"path":60,"stem":61},"Fetch recipient preview","\u002Frecipients\u002Ffetch-recipient-preview","4.recipients\u002F3.fetch-recipient-preview",{"title":63,"path":64,"stem":65},"Create HTML recipient","\u002Frecipients\u002Fcreate-html-recipient","4.recipients\u002F4.create-html-recipient",{"title":67,"path":68,"stem":69},"PNG API","\u002Frecipients\u002Fpng-api","4.recipients\u002F5.png-api",{"title":71,"path":72,"stem":73,"children":74,"page":25},"Partner Workflows","\u002Fpartner-workflows","5.partner-workflows",[75,79,83],{"title":76,"path":77,"stem":78},"Create partner team","\u002Fpartner-workflows\u002Fcreate-partner-team","5.partner-workflows\u002F1.create-partner-team",{"title":80,"path":81,"stem":82},"Account status","\u002Fpartner-workflows\u002Faccount-status","5.partner-workflows\u002F2.account-status",{"title":84,"path":85,"stem":86},"Checkout recipients","\u002Fpartner-workflows\u002Fcheckout-recipients","5.partner-workflows\u002F3.checkout-recipients",{"title":88,"path":89,"stem":90,"children":91,"page":25},"Webhooks","\u002Fwebhooks","6.webhooks",[92,96,100],{"title":93,"path":94,"stem":95},"Overview","\u002Fwebhooks\u002Foverview","6.webhooks\u002F0.overview",{"title":97,"path":98,"stem":99},"Manage subscriptions","\u002Fwebhooks\u002Fmanage-subscriptions","6.webhooks\u002F1.manage-subscriptions",{"title":101,"path":102,"stem":103},"QR scan events","\u002Fwebhooks\u002Fqr-code-scans","6.webhooks\u002F2.qr-code-scans",{"id":105,"title":27,"body":106,"description":1672,"extension":1673,"links":1674,"meta":1675,"navigation":1676,"path":28,"seo":1677,"stem":29,"__hash__":1678},"docs\u002F2.templates\u002Findex.md",{"type":107,"value":108,"toc":1652},"minimark",[109,122,125,130,146,151,160,164,212,216,219,654,658,667,671,707,710,742,745,748,1102,1106,1115,1125,1131,1134,1149,1153,1206,1209,1283,1286,1289,1566,1570,1600,1604,1648],[110,111,112,113,117,118,121],"p",{},"Use template endpoints when your integration needs to discover the published templates available to the API key's team, then use a compatible ",[114,115,116],"code",{},"template_id"," and ",[114,119,120],{},"product_id"," when creating a campaign.",[110,123,124],{},"Most integrations create and edit templates in the Scribeless platform UI. Approved partner onboarding flows can also create a default published template through the API.",[126,127,129],"h2",{"id":128},"list-templates","List templates",[131,132,137],"pre",{"className":133,"code":134,"language":135,"meta":136,"style":136},"language-http shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","GET https:\u002F\u002Fplatform.scribeless.co\u002Fapi\u002Ftemplates\n","http","",[114,138,139],{"__ignoreMap":136},[140,141,144],"span",{"class":142,"line":143},"line",1,[140,145,134],{},[147,148,150],"h3",{"id":149},"headers","Headers",[131,152,154],{"className":133,"code":153,"language":135,"meta":136,"style":136},"X-API-Key: YOUR_API_KEY\n",[114,155,156],{"__ignoreMap":136},[140,157,158],{"class":142,"line":143},[140,159,153],{},[147,161,163],{"id":162},"example-request","Example request",[131,165,169],{"className":166,"code":167,"language":168,"meta":136,"style":136},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","curl --request GET 'https:\u002F\u002Fplatform.scribeless.co\u002Fapi\u002Ftemplates' \\\n  --header 'X-API-Key: YOUR_API_KEY'\n","bash",[114,170,171,198],{"__ignoreMap":136},[140,172,173,177,181,184,188,191,194],{"class":142,"line":143},[140,174,176],{"class":175},"sBMFI","curl",[140,178,180],{"class":179},"sfazB"," --request",[140,182,183],{"class":179}," GET",[140,185,187],{"class":186},"sMK4o"," '",[140,189,190],{"class":179},"https:\u002F\u002Fplatform.scribeless.co\u002Fapi\u002Ftemplates",[140,192,193],{"class":186},"'",[140,195,197],{"class":196},"sTEyZ"," \\\n",[140,199,201,204,206,209],{"class":142,"line":200},2,[140,202,203],{"class":179},"  --header",[140,205,187],{"class":186},[140,207,208],{"class":179},"X-API-Key: YOUR_API_KEY",[140,210,211],{"class":186},"'\n",[147,213,215],{"id":214},"response","Response",[110,217,218],{},"Successful requests return active templates with their latest published version and product summary.",[131,220,224],{"className":221,"code":222,"language":223,"meta":136,"style":136},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","[\n  {\n    \"id\": \"TEMPLATE_ID\",\n    \"name\": \"Postcard template\",\n    \"created_at\": \"2026-01-01T10:00:00.000000+00:00\",\n    \"updated_at\": \"2026-01-01T10:00:00.000000+00:00\",\n    \"published_at\": \"2026-01-01T10:00:00.000000+00:00\",\n    \"team_id\": \"TEAM_ID\",\n    \"version\": {\n      \"id\": \"TEMPLATE_VERSION_ID\",\n      \"version_number\": 1,\n      \"status\": \"published\",\n      \"pages\": [\n        {\n          \"count\": 2\n        }\n      ],\n      \"product\": {\n        \"id\": \"PRODUCT_ID\",\n        \"name\": \"A6 postcard\",\n        \"category\": \"postcard\",\n        \"standard\": \"ISO\",\n        \"delivery_methods\": [\n          \"directMail\",\n          \"bulkShipping\"\n        ]\n      }\n    }\n  }\n]\n","json",[114,225,226,231,236,263,284,305,325,345,366,381,402,420,441,456,462,478,484,490,504,525,545,566,587,601,613,624,630,636,642,648],{"__ignoreMap":136},[140,227,228],{"class":142,"line":143},[140,229,230],{"class":186},"[\n",[140,232,233],{"class":142,"line":200},[140,234,235],{"class":186},"  {\n",[140,237,239,242,246,249,252,255,258,260],{"class":142,"line":238},3,[140,240,241],{"class":186},"    \"",[140,243,245],{"class":244},"spNyl","id",[140,247,248],{"class":186},"\"",[140,250,251],{"class":186},":",[140,253,254],{"class":186}," \"",[140,256,257],{"class":179},"TEMPLATE_ID",[140,259,248],{"class":186},[140,261,262],{"class":186},",\n",[140,264,266,268,271,273,275,277,280,282],{"class":142,"line":265},4,[140,267,241],{"class":186},[140,269,270],{"class":244},"name",[140,272,248],{"class":186},[140,274,251],{"class":186},[140,276,254],{"class":186},[140,278,279],{"class":179},"Postcard template",[140,281,248],{"class":186},[140,283,262],{"class":186},[140,285,287,289,292,294,296,298,301,303],{"class":142,"line":286},5,[140,288,241],{"class":186},[140,290,291],{"class":244},"created_at",[140,293,248],{"class":186},[140,295,251],{"class":186},[140,297,254],{"class":186},[140,299,300],{"class":179},"2026-01-01T10:00:00.000000+00:00",[140,302,248],{"class":186},[140,304,262],{"class":186},[140,306,308,310,313,315,317,319,321,323],{"class":142,"line":307},6,[140,309,241],{"class":186},[140,311,312],{"class":244},"updated_at",[140,314,248],{"class":186},[140,316,251],{"class":186},[140,318,254],{"class":186},[140,320,300],{"class":179},[140,322,248],{"class":186},[140,324,262],{"class":186},[140,326,328,330,333,335,337,339,341,343],{"class":142,"line":327},7,[140,329,241],{"class":186},[140,331,332],{"class":244},"published_at",[140,334,248],{"class":186},[140,336,251],{"class":186},[140,338,254],{"class":186},[140,340,300],{"class":179},[140,342,248],{"class":186},[140,344,262],{"class":186},[140,346,348,350,353,355,357,359,362,364],{"class":142,"line":347},8,[140,349,241],{"class":186},[140,351,352],{"class":244},"team_id",[140,354,248],{"class":186},[140,356,251],{"class":186},[140,358,254],{"class":186},[140,360,361],{"class":179},"TEAM_ID",[140,363,248],{"class":186},[140,365,262],{"class":186},[140,367,369,371,374,376,378],{"class":142,"line":368},9,[140,370,241],{"class":186},[140,372,373],{"class":244},"version",[140,375,248],{"class":186},[140,377,251],{"class":186},[140,379,380],{"class":186}," {\n",[140,382,384,387,389,391,393,395,398,400],{"class":142,"line":383},10,[140,385,386],{"class":186},"      \"",[140,388,245],{"class":175},[140,390,248],{"class":186},[140,392,251],{"class":186},[140,394,254],{"class":186},[140,396,397],{"class":179},"TEMPLATE_VERSION_ID",[140,399,248],{"class":186},[140,401,262],{"class":186},[140,403,405,407,410,412,414,418],{"class":142,"line":404},11,[140,406,386],{"class":186},[140,408,409],{"class":175},"version_number",[140,411,248],{"class":186},[140,413,251],{"class":186},[140,415,417],{"class":416},"sbssI"," 1",[140,419,262],{"class":186},[140,421,423,425,428,430,432,434,437,439],{"class":142,"line":422},12,[140,424,386],{"class":186},[140,426,427],{"class":175},"status",[140,429,248],{"class":186},[140,431,251],{"class":186},[140,433,254],{"class":186},[140,435,436],{"class":179},"published",[140,438,248],{"class":186},[140,440,262],{"class":186},[140,442,444,446,449,451,453],{"class":142,"line":443},13,[140,445,386],{"class":186},[140,447,448],{"class":175},"pages",[140,450,248],{"class":186},[140,452,251],{"class":186},[140,454,455],{"class":186}," [\n",[140,457,459],{"class":142,"line":458},14,[140,460,461],{"class":186},"        {\n",[140,463,465,468,471,473,475],{"class":142,"line":464},15,[140,466,467],{"class":186},"          \"",[140,469,470],{"class":416},"count",[140,472,248],{"class":186},[140,474,251],{"class":186},[140,476,477],{"class":416}," 2\n",[140,479,481],{"class":142,"line":480},16,[140,482,483],{"class":186},"        }\n",[140,485,487],{"class":142,"line":486},17,[140,488,489],{"class":186},"      ],\n",[140,491,493,495,498,500,502],{"class":142,"line":492},18,[140,494,386],{"class":186},[140,496,497],{"class":175},"product",[140,499,248],{"class":186},[140,501,251],{"class":186},[140,503,380],{"class":186},[140,505,507,510,512,514,516,518,521,523],{"class":142,"line":506},19,[140,508,509],{"class":186},"        \"",[140,511,245],{"class":416},[140,513,248],{"class":186},[140,515,251],{"class":186},[140,517,254],{"class":186},[140,519,520],{"class":179},"PRODUCT_ID",[140,522,248],{"class":186},[140,524,262],{"class":186},[140,526,528,530,532,534,536,538,541,543],{"class":142,"line":527},20,[140,529,509],{"class":186},[140,531,270],{"class":416},[140,533,248],{"class":186},[140,535,251],{"class":186},[140,537,254],{"class":186},[140,539,540],{"class":179},"A6 postcard",[140,542,248],{"class":186},[140,544,262],{"class":186},[140,546,548,550,553,555,557,559,562,564],{"class":142,"line":547},21,[140,549,509],{"class":186},[140,551,552],{"class":416},"category",[140,554,248],{"class":186},[140,556,251],{"class":186},[140,558,254],{"class":186},[140,560,561],{"class":179},"postcard",[140,563,248],{"class":186},[140,565,262],{"class":186},[140,567,569,571,574,576,578,580,583,585],{"class":142,"line":568},22,[140,570,509],{"class":186},[140,572,573],{"class":416},"standard",[140,575,248],{"class":186},[140,577,251],{"class":186},[140,579,254],{"class":186},[140,581,582],{"class":179},"ISO",[140,584,248],{"class":186},[140,586,262],{"class":186},[140,588,590,592,595,597,599],{"class":142,"line":589},23,[140,591,509],{"class":186},[140,593,594],{"class":416},"delivery_methods",[140,596,248],{"class":186},[140,598,251],{"class":186},[140,600,455],{"class":186},[140,602,604,606,609,611],{"class":142,"line":603},24,[140,605,467],{"class":186},[140,607,608],{"class":179},"directMail",[140,610,248],{"class":186},[140,612,262],{"class":186},[140,614,616,618,621],{"class":142,"line":615},25,[140,617,467],{"class":186},[140,619,620],{"class":179},"bulkShipping",[140,622,623],{"class":186},"\"\n",[140,625,627],{"class":142,"line":626},26,[140,628,629],{"class":186},"        ]\n",[140,631,633],{"class":142,"line":632},27,[140,634,635],{"class":186},"      }\n",[140,637,639],{"class":142,"line":638},28,[140,640,641],{"class":186},"    }\n",[140,643,645],{"class":142,"line":644},29,[140,646,647],{"class":186},"  }\n",[140,649,651],{"class":142,"line":650},30,[140,652,653],{"class":186},"]\n",[126,655,657],{"id":656},"fetch-a-template","Fetch a template",[131,659,661],{"className":133,"code":660,"language":135,"meta":136,"style":136},"GET https:\u002F\u002Fplatform.scribeless.co\u002Fapi\u002Ftemplates\u002F{templateId}\n",[114,662,663],{"__ignoreMap":136},[140,664,665],{"class":142,"line":143},[140,666,660],{},[147,668,670],{"id":669},"path-parameters","Path parameters",[672,673,674,690],"table",{},[675,676,677],"thead",{},[678,679,680,684,687],"tr",{},[681,682,683],"th",{},"Parameter",[681,685,686],{},"Type",[681,688,689],{},"Description",[691,692,693],"tbody",{},[678,694,695,701,704],{},[696,697,698],"td",{},[114,699,700],{},"templateId",[696,702,703],{},"string",[696,705,706],{},"Scribeless template ID.",[147,708,163],{"id":709},"example-request-1",[131,711,713],{"className":166,"code":712,"language":168,"meta":136,"style":136},"curl --request GET 'https:\u002F\u002Fplatform.scribeless.co\u002Fapi\u002Ftemplates\u002FTEMPLATE_ID' \\\n  --header 'X-API-Key: YOUR_API_KEY'\n",[114,714,715,732],{"__ignoreMap":136},[140,716,717,719,721,723,725,728,730],{"class":142,"line":143},[140,718,176],{"class":175},[140,720,180],{"class":179},[140,722,183],{"class":179},[140,724,187],{"class":186},[140,726,727],{"class":179},"https:\u002F\u002Fplatform.scribeless.co\u002Fapi\u002Ftemplates\u002FTEMPLATE_ID",[140,729,193],{"class":186},[140,731,197],{"class":196},[140,733,734,736,738,740],{"class":142,"line":200},[140,735,203],{"class":179},[140,737,187],{"class":186},[140,739,208],{"class":179},[140,741,211],{"class":186},[147,743,215],{"id":744},"response-1",[110,746,747],{},"Successful requests return the template and its latest published version.",[131,749,751],{"className":221,"code":750,"language":223,"meta":136,"style":136},"{\n  \"id\": \"TEMPLATE_ID\",\n  \"name\": \"Postcard template\",\n  \"status\": \"active\",\n  \"team_id\": \"TEAM_ID\",\n  \"created_at\": \"2026-01-01T10:00:00.000000+00:00\",\n  \"updated_at\": \"2026-01-01T10:00:00.000000+00:00\",\n  \"published_at\": \"2026-01-01T10:00:00.000000+00:00\",\n  \"version\": {\n    \"id\": \"TEMPLATE_VERSION_ID\",\n    \"version_number\": 1,\n    \"status\": \"published\",\n    \"print_config\": \"duplex\",\n    \"pages\": [\n      {\n        \"count\": 2\n      }\n    ],\n    \"product\": {\n      \"id\": \"PRODUCT_ID\",\n      \"name\": \"A6 postcard\",\n      \"category\": \"postcard\",\n      \"subcategory\": \"postcard\"\n    }\n  }\n}\n",[114,752,753,758,777,795,814,832,850,868,886,898,916,930,948,968,980,985,997,1001,1006,1018,1036,1054,1072,1089,1093,1097],{"__ignoreMap":136},[140,754,755],{"class":142,"line":143},[140,756,757],{"class":186},"{\n",[140,759,760,763,765,767,769,771,773,775],{"class":142,"line":200},[140,761,762],{"class":186},"  \"",[140,764,245],{"class":244},[140,766,248],{"class":186},[140,768,251],{"class":186},[140,770,254],{"class":186},[140,772,257],{"class":179},[140,774,248],{"class":186},[140,776,262],{"class":186},[140,778,779,781,783,785,787,789,791,793],{"class":142,"line":238},[140,780,762],{"class":186},[140,782,270],{"class":244},[140,784,248],{"class":186},[140,786,251],{"class":186},[140,788,254],{"class":186},[140,790,279],{"class":179},[140,792,248],{"class":186},[140,794,262],{"class":186},[140,796,797,799,801,803,805,807,810,812],{"class":142,"line":265},[140,798,762],{"class":186},[140,800,427],{"class":244},[140,802,248],{"class":186},[140,804,251],{"class":186},[140,806,254],{"class":186},[140,808,809],{"class":179},"active",[140,811,248],{"class":186},[140,813,262],{"class":186},[140,815,816,818,820,822,824,826,828,830],{"class":142,"line":286},[140,817,762],{"class":186},[140,819,352],{"class":244},[140,821,248],{"class":186},[140,823,251],{"class":186},[140,825,254],{"class":186},[140,827,361],{"class":179},[140,829,248],{"class":186},[140,831,262],{"class":186},[140,833,834,836,838,840,842,844,846,848],{"class":142,"line":307},[140,835,762],{"class":186},[140,837,291],{"class":244},[140,839,248],{"class":186},[140,841,251],{"class":186},[140,843,254],{"class":186},[140,845,300],{"class":179},[140,847,248],{"class":186},[140,849,262],{"class":186},[140,851,852,854,856,858,860,862,864,866],{"class":142,"line":327},[140,853,762],{"class":186},[140,855,312],{"class":244},[140,857,248],{"class":186},[140,859,251],{"class":186},[140,861,254],{"class":186},[140,863,300],{"class":179},[140,865,248],{"class":186},[140,867,262],{"class":186},[140,869,870,872,874,876,878,880,882,884],{"class":142,"line":347},[140,871,762],{"class":186},[140,873,332],{"class":244},[140,875,248],{"class":186},[140,877,251],{"class":186},[140,879,254],{"class":186},[140,881,300],{"class":179},[140,883,248],{"class":186},[140,885,262],{"class":186},[140,887,888,890,892,894,896],{"class":142,"line":368},[140,889,762],{"class":186},[140,891,373],{"class":244},[140,893,248],{"class":186},[140,895,251],{"class":186},[140,897,380],{"class":186},[140,899,900,902,904,906,908,910,912,914],{"class":142,"line":383},[140,901,241],{"class":186},[140,903,245],{"class":175},[140,905,248],{"class":186},[140,907,251],{"class":186},[140,909,254],{"class":186},[140,911,397],{"class":179},[140,913,248],{"class":186},[140,915,262],{"class":186},[140,917,918,920,922,924,926,928],{"class":142,"line":404},[140,919,241],{"class":186},[140,921,409],{"class":175},[140,923,248],{"class":186},[140,925,251],{"class":186},[140,927,417],{"class":416},[140,929,262],{"class":186},[140,931,932,934,936,938,940,942,944,946],{"class":142,"line":422},[140,933,241],{"class":186},[140,935,427],{"class":175},[140,937,248],{"class":186},[140,939,251],{"class":186},[140,941,254],{"class":186},[140,943,436],{"class":179},[140,945,248],{"class":186},[140,947,262],{"class":186},[140,949,950,952,955,957,959,961,964,966],{"class":142,"line":443},[140,951,241],{"class":186},[140,953,954],{"class":175},"print_config",[140,956,248],{"class":186},[140,958,251],{"class":186},[140,960,254],{"class":186},[140,962,963],{"class":179},"duplex",[140,965,248],{"class":186},[140,967,262],{"class":186},[140,969,970,972,974,976,978],{"class":142,"line":458},[140,971,241],{"class":186},[140,973,448],{"class":175},[140,975,248],{"class":186},[140,977,251],{"class":186},[140,979,455],{"class":186},[140,981,982],{"class":142,"line":464},[140,983,984],{"class":186},"      {\n",[140,986,987,989,991,993,995],{"class":142,"line":480},[140,988,509],{"class":186},[140,990,470],{"class":416},[140,992,248],{"class":186},[140,994,251],{"class":186},[140,996,477],{"class":416},[140,998,999],{"class":142,"line":486},[140,1000,635],{"class":186},[140,1002,1003],{"class":142,"line":492},[140,1004,1005],{"class":186},"    ],\n",[140,1007,1008,1010,1012,1014,1016],{"class":142,"line":506},[140,1009,241],{"class":186},[140,1011,497],{"class":175},[140,1013,248],{"class":186},[140,1015,251],{"class":186},[140,1017,380],{"class":186},[140,1019,1020,1022,1024,1026,1028,1030,1032,1034],{"class":142,"line":527},[140,1021,386],{"class":186},[140,1023,245],{"class":416},[140,1025,248],{"class":186},[140,1027,251],{"class":186},[140,1029,254],{"class":186},[140,1031,520],{"class":179},[140,1033,248],{"class":186},[140,1035,262],{"class":186},[140,1037,1038,1040,1042,1044,1046,1048,1050,1052],{"class":142,"line":547},[140,1039,386],{"class":186},[140,1041,270],{"class":416},[140,1043,248],{"class":186},[140,1045,251],{"class":186},[140,1047,254],{"class":186},[140,1049,540],{"class":179},[140,1051,248],{"class":186},[140,1053,262],{"class":186},[140,1055,1056,1058,1060,1062,1064,1066,1068,1070],{"class":142,"line":568},[140,1057,386],{"class":186},[140,1059,552],{"class":416},[140,1061,248],{"class":186},[140,1063,251],{"class":186},[140,1065,254],{"class":186},[140,1067,561],{"class":179},[140,1069,248],{"class":186},[140,1071,262],{"class":186},[140,1073,1074,1076,1079,1081,1083,1085,1087],{"class":142,"line":589},[140,1075,386],{"class":186},[140,1077,1078],{"class":416},"subcategory",[140,1080,248],{"class":186},[140,1082,251],{"class":186},[140,1084,254],{"class":186},[140,1086,561],{"class":179},[140,1088,623],{"class":186},[140,1090,1091],{"class":142,"line":603},[140,1092,641],{"class":186},[140,1094,1095],{"class":142,"line":615},[140,1096,647],{"class":186},[140,1098,1099],{"class":142,"line":626},[140,1100,1101],{"class":186},"}\n",[126,1103,1105],{"id":1104},"create-a-default-template","Create a default template",[131,1107,1109],{"className":133,"code":1108,"language":135,"meta":136,"style":136},"POST https:\u002F\u002Fplatform.scribeless.co\u002Fapi\u002Ftemplates\n",[114,1110,1111],{"__ignoreMap":136},[140,1112,1113],{"class":142,"line":143},[140,1114,1108],{},[110,1116,1117,1118,1124],{},"Approved partner onboarding flows can create a default published template for a customer team. Send the customer-team API key returned by ",[1119,1120,1121],"a",{"href":77},[114,1122,1123],{},"POST \u002Fapi\u002Fpartner\u002Fteams",", not the partner account API key.",[110,1126,1127,1128,1130],{},"If you omit ",[114,1129,448],{},", Scribeless creates a default published template for the selected product.",[147,1132,150],{"id":1133},"headers-1",[131,1135,1137],{"className":133,"code":1136,"language":135,"meta":136,"style":136},"Content-Type: application\u002Fjson\nX-API-Key: CUSTOMER_TEAM_API_KEY\n",[114,1138,1139,1144],{"__ignoreMap":136},[140,1140,1141],{"class":142,"line":143},[140,1142,1143],{},"Content-Type: application\u002Fjson\n",[140,1145,1146],{"class":142,"line":200},[140,1147,1148],{},"X-API-Key: CUSTOMER_TEAM_API_KEY\n",[147,1150,1152],{"id":1151},"request-body","Request body",[672,1154,1155,1166],{},[675,1156,1157],{},[678,1158,1159,1162,1164],{},[681,1160,1161],{},"Field",[681,1163,686],{},[681,1165,689],{},[691,1167,1168,1183,1194],{},[678,1169,1170,1174,1176],{},[696,1171,1172],{},[114,1173,270],{},[696,1175,703],{},[696,1177,1178,1179,1182],{},"Optional template name. Defaults to ",[114,1180,1181],{},"Untitled Template",".",[678,1184,1185,1189,1191],{},[696,1186,1187],{},[114,1188,120],{},[696,1190,703],{},[696,1192,1193],{},"Product ID for the mail format.",[678,1195,1196,1200,1203],{},[696,1197,1198],{},[114,1199,448],{},[696,1201,1202],{},"array",[696,1204,1205],{},"Optional advanced template page data. Omit this for a default published template.",[147,1207,163],{"id":1208},"example-request-2",[131,1210,1212],{"className":166,"code":1211,"language":168,"meta":136,"style":136},"curl --request POST 'https:\u002F\u002Fplatform.scribeless.co\u002Fapi\u002Ftemplates' \\\n  --header 'Content-Type: application\u002Fjson' \\\n  --header 'X-API-Key: CUSTOMER_TEAM_API_KEY' \\\n  --data '{\n    \"name\": \"API postcard template\",\n    \"product_id\": \"PRODUCT_ID\"\n  }'\n",[114,1213,1214,1231,1244,1257,1266,1271,1276],{"__ignoreMap":136},[140,1215,1216,1218,1220,1223,1225,1227,1229],{"class":142,"line":143},[140,1217,176],{"class":175},[140,1219,180],{"class":179},[140,1221,1222],{"class":179}," POST",[140,1224,187],{"class":186},[140,1226,190],{"class":179},[140,1228,193],{"class":186},[140,1230,197],{"class":196},[140,1232,1233,1235,1237,1240,1242],{"class":142,"line":200},[140,1234,203],{"class":179},[140,1236,187],{"class":186},[140,1238,1239],{"class":179},"Content-Type: application\u002Fjson",[140,1241,193],{"class":186},[140,1243,197],{"class":196},[140,1245,1246,1248,1250,1253,1255],{"class":142,"line":238},[140,1247,203],{"class":179},[140,1249,187],{"class":186},[140,1251,1252],{"class":179},"X-API-Key: CUSTOMER_TEAM_API_KEY",[140,1254,193],{"class":186},[140,1256,197],{"class":196},[140,1258,1259,1262,1264],{"class":142,"line":265},[140,1260,1261],{"class":179},"  --data",[140,1263,187],{"class":186},[140,1265,757],{"class":179},[140,1267,1268],{"class":142,"line":286},[140,1269,1270],{"class":179},"    \"name\": \"API postcard template\",\n",[140,1272,1273],{"class":142,"line":307},[140,1274,1275],{"class":179},"    \"product_id\": \"PRODUCT_ID\"\n",[140,1277,1278,1281],{"class":142,"line":327},[140,1279,1280],{"class":179},"  }",[140,1282,211],{"class":186},[147,1284,215],{"id":1285},"response-2",[110,1287,1288],{},"Successful requests return the created active template and its published version.",[131,1290,1292],{"className":221,"code":1291,"language":223,"meta":136,"style":136},"{\n  \"id\": \"TEMPLATE_ID\",\n  \"name\": \"API postcard template\",\n  \"status\": \"active\",\n  \"team_id\": \"TEAM_ID\",\n  \"version\": {\n    \"id\": \"TEMPLATE_VERSION_ID\",\n    \"version_number\": 1,\n    \"status\": \"published\",\n    \"product\": {\n      \"id\": \"PRODUCT_ID\",\n      \"name\": \"A6 postcard\",\n      \"category\": \"postcard\",\n      \"subcategory\": \"postcard\"\n    },\n    \"pages\": [\n      {\n        \"count\": 1\n      }\n    ]\n  }\n}\n",[114,1293,1294,1298,1316,1335,1353,1371,1383,1401,1415,1433,1445,1463,1481,1499,1515,1520,1532,1536,1549,1553,1558,1562],{"__ignoreMap":136},[140,1295,1296],{"class":142,"line":143},[140,1297,757],{"class":186},[140,1299,1300,1302,1304,1306,1308,1310,1312,1314],{"class":142,"line":200},[140,1301,762],{"class":186},[140,1303,245],{"class":244},[140,1305,248],{"class":186},[140,1307,251],{"class":186},[140,1309,254],{"class":186},[140,1311,257],{"class":179},[140,1313,248],{"class":186},[140,1315,262],{"class":186},[140,1317,1318,1320,1322,1324,1326,1328,1331,1333],{"class":142,"line":238},[140,1319,762],{"class":186},[140,1321,270],{"class":244},[140,1323,248],{"class":186},[140,1325,251],{"class":186},[140,1327,254],{"class":186},[140,1329,1330],{"class":179},"API postcard template",[140,1332,248],{"class":186},[140,1334,262],{"class":186},[140,1336,1337,1339,1341,1343,1345,1347,1349,1351],{"class":142,"line":265},[140,1338,762],{"class":186},[140,1340,427],{"class":244},[140,1342,248],{"class":186},[140,1344,251],{"class":186},[140,1346,254],{"class":186},[140,1348,809],{"class":179},[140,1350,248],{"class":186},[140,1352,262],{"class":186},[140,1354,1355,1357,1359,1361,1363,1365,1367,1369],{"class":142,"line":286},[140,1356,762],{"class":186},[140,1358,352],{"class":244},[140,1360,248],{"class":186},[140,1362,251],{"class":186},[140,1364,254],{"class":186},[140,1366,361],{"class":179},[140,1368,248],{"class":186},[140,1370,262],{"class":186},[140,1372,1373,1375,1377,1379,1381],{"class":142,"line":307},[140,1374,762],{"class":186},[140,1376,373],{"class":244},[140,1378,248],{"class":186},[140,1380,251],{"class":186},[140,1382,380],{"class":186},[140,1384,1385,1387,1389,1391,1393,1395,1397,1399],{"class":142,"line":327},[140,1386,241],{"class":186},[140,1388,245],{"class":175},[140,1390,248],{"class":186},[140,1392,251],{"class":186},[140,1394,254],{"class":186},[140,1396,397],{"class":179},[140,1398,248],{"class":186},[140,1400,262],{"class":186},[140,1402,1403,1405,1407,1409,1411,1413],{"class":142,"line":347},[140,1404,241],{"class":186},[140,1406,409],{"class":175},[140,1408,248],{"class":186},[140,1410,251],{"class":186},[140,1412,417],{"class":416},[140,1414,262],{"class":186},[140,1416,1417,1419,1421,1423,1425,1427,1429,1431],{"class":142,"line":368},[140,1418,241],{"class":186},[140,1420,427],{"class":175},[140,1422,248],{"class":186},[140,1424,251],{"class":186},[140,1426,254],{"class":186},[140,1428,436],{"class":179},[140,1430,248],{"class":186},[140,1432,262],{"class":186},[140,1434,1435,1437,1439,1441,1443],{"class":142,"line":383},[140,1436,241],{"class":186},[140,1438,497],{"class":175},[140,1440,248],{"class":186},[140,1442,251],{"class":186},[140,1444,380],{"class":186},[140,1446,1447,1449,1451,1453,1455,1457,1459,1461],{"class":142,"line":404},[140,1448,386],{"class":186},[140,1450,245],{"class":416},[140,1452,248],{"class":186},[140,1454,251],{"class":186},[140,1456,254],{"class":186},[140,1458,520],{"class":179},[140,1460,248],{"class":186},[140,1462,262],{"class":186},[140,1464,1465,1467,1469,1471,1473,1475,1477,1479],{"class":142,"line":422},[140,1466,386],{"class":186},[140,1468,270],{"class":416},[140,1470,248],{"class":186},[140,1472,251],{"class":186},[140,1474,254],{"class":186},[140,1476,540],{"class":179},[140,1478,248],{"class":186},[140,1480,262],{"class":186},[140,1482,1483,1485,1487,1489,1491,1493,1495,1497],{"class":142,"line":443},[140,1484,386],{"class":186},[140,1486,552],{"class":416},[140,1488,248],{"class":186},[140,1490,251],{"class":186},[140,1492,254],{"class":186},[140,1494,561],{"class":179},[140,1496,248],{"class":186},[140,1498,262],{"class":186},[140,1500,1501,1503,1505,1507,1509,1511,1513],{"class":142,"line":458},[140,1502,386],{"class":186},[140,1504,1078],{"class":416},[140,1506,248],{"class":186},[140,1508,251],{"class":186},[140,1510,254],{"class":186},[140,1512,561],{"class":179},[140,1514,623],{"class":186},[140,1516,1517],{"class":142,"line":464},[140,1518,1519],{"class":186},"    },\n",[140,1521,1522,1524,1526,1528,1530],{"class":142,"line":480},[140,1523,241],{"class":186},[140,1525,448],{"class":175},[140,1527,248],{"class":186},[140,1529,251],{"class":186},[140,1531,455],{"class":186},[140,1533,1534],{"class":142,"line":486},[140,1535,984],{"class":186},[140,1537,1538,1540,1542,1544,1546],{"class":142,"line":492},[140,1539,509],{"class":186},[140,1541,470],{"class":416},[140,1543,248],{"class":186},[140,1545,251],{"class":186},[140,1547,1548],{"class":416}," 1\n",[140,1550,1551],{"class":142,"line":506},[140,1552,635],{"class":186},[140,1554,1555],{"class":142,"line":527},[140,1556,1557],{"class":186},"    ]\n",[140,1559,1560],{"class":142,"line":547},[140,1561,647],{"class":186},[140,1563,1564],{"class":142,"line":568},[140,1565,1101],{"class":186},[126,1567,1569],{"id":1568},"notes","Notes",[1571,1572,1573,1577,1587,1590,1593],"ul",{},[1574,1575,1576],"li",{},"Only templates your API key can access are returned.",[1574,1578,1579,1580,1583,1584,1586],{},"The ",[114,1581,1582],{},"version.product.id"," value is the ",[114,1585,120],{}," to use when creating a campaign with that template.",[1574,1588,1589],{},"Templates returned by these endpoints have a published version. Draft template content is not returned.",[1574,1591,1592],{},"Template authoring and editing are usually handled in the Scribeless platform UI. Most integrations only need to list or fetch published templates before creating campaigns.",[1574,1594,1595,1596,1599],{},"Treat any non-",[114,1597,1598],{},"2xx"," response as failed and inspect the response body for the error message.",[126,1601,1603],{"id":1602},"status-codes","Status codes",[672,1605,1606,1616],{},[675,1607,1608],{},[678,1609,1610,1613],{},[681,1611,1612],{},"Status",[681,1614,1615],{},"Meaning",[691,1617,1618,1628,1638],{},[678,1619,1620,1625],{},[696,1621,1622],{},[114,1623,1624],{},"200",[696,1626,1627],{},"Template or template list returned, or template created.",[678,1629,1630,1635],{},[696,1631,1632],{},[114,1633,1634],{},"401",[696,1636,1637],{},"Missing, malformed, invalid, or unauthorized API key.",[678,1639,1640,1645],{},[696,1641,1642],{},[114,1643,1644],{},"500",[696,1646,1647],{},"Template could not be fetched. Check the template ID and retry, or contact support if it persists.",[1649,1650,1651],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}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);}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}",{"title":136,"searchDepth":200,"depth":200,"links":1653},[1654,1659,1664,1670,1671],{"id":128,"depth":200,"text":129,"children":1655},[1656,1657,1658],{"id":149,"depth":238,"text":150},{"id":162,"depth":238,"text":163},{"id":214,"depth":238,"text":215},{"id":656,"depth":200,"text":657,"children":1660},[1661,1662,1663],{"id":669,"depth":238,"text":670},{"id":709,"depth":238,"text":163},{"id":744,"depth":238,"text":215},{"id":1104,"depth":200,"text":1105,"children":1665},[1666,1667,1668,1669],{"id":1133,"depth":238,"text":150},{"id":1151,"depth":238,"text":1152},{"id":1208,"depth":238,"text":163},{"id":1285,"depth":238,"text":215},{"id":1568,"depth":200,"text":1569},{"id":1602,"depth":200,"text":1603},"List, fetch, and create Scribeless templates for campaign creation.","md",null,{},true,{"title":27,"description":1672},"gwaKQanYDhcQF7BFKh_0Afs-9ZUVWnb-l-tgIvrUkIg",[1680,1682],{"title":22,"path":23,"stem":24,"description":1681,"children":-1},"Install Scribeless skills for AI-assisted API integrations.",{"title":38,"path":39,"stem":40,"description":1683,"children":-1},"Create a Scribeless campaign through the API.",1780671947975]