[{"data":1,"prerenderedAt":1863},["ShallowReactive",2],{"navigation_docs":3,"-recipients-create-html-recipient":104,"-recipients-create-html-recipient-surround":1858},[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":63,"body":106,"description":1851,"extension":1852,"links":1853,"meta":1854,"navigation":1855,"path":64,"seo":1856,"stem":65,"__hash__":1857},"docs\u002F4.recipients\u002F4.create-html-recipient.md",{"type":107,"value":108,"toc":1841},"minimark",[109,113,130,133,138,154,158,270,281,285,291,428,431,435,695,699,713,886,892,906,1078,1087,1101,1111,1115,1122,1750,1754,1789,1793,1837],[110,111,112],"p",{},"Use this endpoint when your workflow generates the mail-piece HTML and you want Scribeless to create the recipient, render the documents, and return signed document URLs. It supports postcards, flat cards or notes, and letters.",[114,115,120],"pre",{"className":116,"code":117,"language":118,"meta":119,"style":119},"language-http shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","POST https:\u002F\u002Fplatform.scribeless.co\u002Fapi\u002Frecipients\u002Fhtml\n","http","",[121,122,123],"code",{"__ignoreMap":119},[124,125,128],"span",{"class":126,"line":127},"line",1,[124,129,117],{},[110,131,132],{},"This endpoint uses product keys rather than an existing campaign ID. Scribeless resolves the product and rendering resources needed to create the recipient.",[134,135,137],"h2",{"id":136},"headers","Headers",[114,139,141],{"className":116,"code":140,"language":118,"meta":119,"style":119},"Content-Type: application\u002Fjson\nX-API-Key: YOUR_API_KEY\n",[121,142,143,148],{"__ignoreMap":119},[124,144,145],{"class":126,"line":127},[124,146,147],{},"Content-Type: application\u002Fjson\n",[124,149,151],{"class":126,"line":150},2,[124,152,153],{},"X-API-Key: YOUR_API_KEY\n",[134,155,157],{"id":156},"request-body","Request body",[159,160,161,177],"table",{},[162,163,164],"thead",{},[165,166,167,171,174],"tr",{},[168,169,170],"th",{},"Field",[168,172,173],{},"Type",[168,175,176],{},"Description",[178,179,180,202,215,233,246,258],"tbody",{},[165,181,182,188,191],{},[183,184,185],"td",{},[121,186,187],{},"product_key",[183,189,190],{},"string",[183,192,193,194,197,198,201],{},"Product key for the mail format, for example ",[121,195,196],{},"a6_postcard"," or ",[121,199,200],{},"4x6_postcard",".",[165,203,204,209,212],{},[183,205,206],{},[121,207,208],{},"include_envelope",[183,210,211],{},"boolean",[183,213,214],{},"Optional. Whether to include an envelope where supported.",[165,216,217,222,224],{},[183,218,219],{},[121,220,221],{},"orientation",[183,223,190],{},[183,225,226,227,197,230,201],{},"Optional. ",[121,228,229],{},"landscape",[121,231,232],{},"portrait",[165,234,235,240,243],{},[183,236,237],{},[121,238,239],{},"data",[183,241,242],{},"object",[183,244,245],{},"Recipient name and address data.",[165,247,248,253,255],{},[183,249,250],{},[121,251,252],{},"html.front",[183,254,242],{},[183,256,257],{},"Required front-side HTML.",[165,259,260,265,267],{},[183,261,262],{},[121,263,264],{},"html.back",[183,266,242],{},[183,268,269],{},"Optional back-side HTML for duplex\u002Ffront-and-back output.",[110,271,272,273,276,277,280],{},"Each side accepts an ",[121,274,275],{},"html"," string and optional ",[121,278,279],{},"styles",". Each side's HTML is capped at 250 KB.",[134,282,284],{"id":283},"product-keys","Product keys",[110,286,287,288,290],{},"The HTML endpoint resolves ",[121,289,187],{}," against the Scribeless product catalog. These public product keys are currently supported for HTML rendering:",[159,292,293,306],{},[162,294,295],{},[165,296,297,300,303],{},[168,298,299],{},"Product",[168,301,302],{},"Product key",[168,304,305],{},"Region\u002Fstandard",[178,307,308,321,332,344,356,368,380,392,404,416],{},[165,309,310,313,318],{},[183,311,312],{},"A5 postcard",[183,314,315],{},[121,316,317],{},"a5_postcard",[183,319,320],{},"ISO \u002F UK-friendly",[165,322,323,326,330],{},[183,324,325],{},"A6 postcard",[183,327,328],{},[121,329,196],{},[183,331,320],{},[165,333,334,337,341],{},[183,335,336],{},"4x6 postcard",[183,338,339],{},[121,340,200],{},[183,342,343],{},"US",[165,345,346,349,354],{},[183,347,348],{},"5x7 postcard",[183,350,351],{},[121,352,353],{},"5x7_postcard",[183,355,343],{},[165,357,358,361,366],{},[183,359,360],{},"A5 card",[183,362,363],{},[121,364,365],{},"a5_card",[183,367,320],{},[165,369,370,373,378],{},[183,371,372],{},"A6 card",[183,374,375],{},[121,376,377],{},"a6_card",[183,379,320],{},[165,381,382,385,390],{},[183,383,384],{},"A4 letter",[183,386,387],{},[121,388,389],{},"a4_letter",[183,391,320],{},[165,393,394,397,402],{},[183,395,396],{},"4x6 card",[183,398,399],{},[121,400,401],{},"4x6_card",[183,403,343],{},[165,405,406,409,414],{},[183,407,408],{},"5x7 card",[183,410,411],{},[121,412,413],{},"5x7_card",[183,415,343],{},[165,417,418,421,426],{},[183,419,420],{},"7x10 letter",[183,422,423],{},[121,424,425],{},"7x10_letter",[183,427,343],{},[110,429,430],{},"Folded product keys are not supported by the HTML endpoint yet. If Scribeless enables a team-specific product for you, use the product key provided by Scribeless.",[134,432,434],{"id":433},"example-request","Example request",[114,436,440],{"className":437,"code":438,"language":439,"meta":119,"style":119},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","curl --request POST 'https:\u002F\u002Fplatform.scribeless.co\u002Fapi\u002Frecipients\u002Fhtml' \\\n  --header 'Content-Type: application\u002Fjson' \\\n  --header 'X-API-Key: YOUR_API_KEY' \\\n  --data '{\n    \"product_key\": \"a6_postcard\",\n    \"orientation\": \"landscape\",\n    \"include_envelope\": false,\n    \"data\": {\n      \"first_name\": \"Ada\",\n      \"last_name\": \"Lovelace\",\n      \"company\": \"Example Co\",\n      \"address\": {\n        \"address1\": \"1 Example Street\",\n        \"city\": \"London\",\n        \"state\": \"London\",\n        \"postal_code\": \"SW1A 1AA\",\n        \"country\": \"GB\"\n      },\n      \"variables\": {\n        \"externalId\": \"order_12345\",\n        \"offerCode\": \"SPRING-25\"\n      }\n    },\n    \"html\": {\n      \"front\": {\n        \"html\": \"\u003Cmain style=\\\"padding:24px;font-size:18px\\\">\u003Ch1>Thanks, Ada\u003C\u002Fh1>\u003Cp>Your offer code is SPRING-25.\u003C\u002Fp>\u003C\u002Fmain>\",\n        \"styles\": {\n          \"backgroundColor\": \"#ffffff\"\n        }\n      },\n      \"back\": {\n        \"html\": \"\u003Cmain style=\\\"padding:24px;font-size:16px\\\">\u003Cp>Scan to redeem your offer.\u003C\u002Fp>\u003Cdiv data-sqr data-sqr-id=\\\"spring-offer\\\" data-sqr-destination=\\\"https:\u002F\u002Fexample.com\u002Foffers\u002FSPRING-25\\\" data-sqr-size=\\\"24mm\\\" data-sqr-ecl=\\\"H\\\" data-sqr-dots-color=\\\"#0f766e\\\" data-sqr-dots-type=\\\"extra-rounded\\\" data-sqr-background-color=\\\"#ffffff\\\" data-sqr-corner-square-type=\\\"extra-rounded\\\" data-sqr-corner-dot-type=\\\"dot\\\" style=\\\"width:24mm;height:24mm\\\">\u003C\u002Fdiv>\u003C\u002Fmain>\"\n      }\n    }\n  }'\n","bash",[121,441,442,469,483,497,508,514,520,526,532,538,544,550,556,562,568,574,580,586,592,598,604,610,616,622,628,634,640,646,652,658,663,669,675,680,686],{"__ignoreMap":119},[124,443,444,448,452,455,459,462,465],{"class":126,"line":127},[124,445,447],{"class":446},"sBMFI","curl",[124,449,451],{"class":450},"sfazB"," --request",[124,453,454],{"class":450}," POST",[124,456,458],{"class":457},"sMK4o"," '",[124,460,461],{"class":450},"https:\u002F\u002Fplatform.scribeless.co\u002Fapi\u002Frecipients\u002Fhtml",[124,463,464],{"class":457},"'",[124,466,468],{"class":467},"sTEyZ"," \\\n",[124,470,471,474,476,479,481],{"class":126,"line":150},[124,472,473],{"class":450},"  --header",[124,475,458],{"class":457},[124,477,478],{"class":450},"Content-Type: application\u002Fjson",[124,480,464],{"class":457},[124,482,468],{"class":467},[124,484,486,488,490,493,495],{"class":126,"line":485},3,[124,487,473],{"class":450},[124,489,458],{"class":457},[124,491,492],{"class":450},"X-API-Key: YOUR_API_KEY",[124,494,464],{"class":457},[124,496,468],{"class":467},[124,498,500,503,505],{"class":126,"line":499},4,[124,501,502],{"class":450},"  --data",[124,504,458],{"class":457},[124,506,507],{"class":450},"{\n",[124,509,511],{"class":126,"line":510},5,[124,512,513],{"class":450},"    \"product_key\": \"a6_postcard\",\n",[124,515,517],{"class":126,"line":516},6,[124,518,519],{"class":450},"    \"orientation\": \"landscape\",\n",[124,521,523],{"class":126,"line":522},7,[124,524,525],{"class":450},"    \"include_envelope\": false,\n",[124,527,529],{"class":126,"line":528},8,[124,530,531],{"class":450},"    \"data\": {\n",[124,533,535],{"class":126,"line":534},9,[124,536,537],{"class":450},"      \"first_name\": \"Ada\",\n",[124,539,541],{"class":126,"line":540},10,[124,542,543],{"class":450},"      \"last_name\": \"Lovelace\",\n",[124,545,547],{"class":126,"line":546},11,[124,548,549],{"class":450},"      \"company\": \"Example Co\",\n",[124,551,553],{"class":126,"line":552},12,[124,554,555],{"class":450},"      \"address\": {\n",[124,557,559],{"class":126,"line":558},13,[124,560,561],{"class":450},"        \"address1\": \"1 Example Street\",\n",[124,563,565],{"class":126,"line":564},14,[124,566,567],{"class":450},"        \"city\": \"London\",\n",[124,569,571],{"class":126,"line":570},15,[124,572,573],{"class":450},"        \"state\": \"London\",\n",[124,575,577],{"class":126,"line":576},16,[124,578,579],{"class":450},"        \"postal_code\": \"SW1A 1AA\",\n",[124,581,583],{"class":126,"line":582},17,[124,584,585],{"class":450},"        \"country\": \"GB\"\n",[124,587,589],{"class":126,"line":588},18,[124,590,591],{"class":450},"      },\n",[124,593,595],{"class":126,"line":594},19,[124,596,597],{"class":450},"      \"variables\": {\n",[124,599,601],{"class":126,"line":600},20,[124,602,603],{"class":450},"        \"externalId\": \"order_12345\",\n",[124,605,607],{"class":126,"line":606},21,[124,608,609],{"class":450},"        \"offerCode\": \"SPRING-25\"\n",[124,611,613],{"class":126,"line":612},22,[124,614,615],{"class":450},"      }\n",[124,617,619],{"class":126,"line":618},23,[124,620,621],{"class":450},"    },\n",[124,623,625],{"class":126,"line":624},24,[124,626,627],{"class":450},"    \"html\": {\n",[124,629,631],{"class":126,"line":630},25,[124,632,633],{"class":450},"      \"front\": {\n",[124,635,637],{"class":126,"line":636},26,[124,638,639],{"class":450},"        \"html\": \"\u003Cmain style=\\\"padding:24px;font-size:18px\\\">\u003Ch1>Thanks, Ada\u003C\u002Fh1>\u003Cp>Your offer code is SPRING-25.\u003C\u002Fp>\u003C\u002Fmain>\",\n",[124,641,643],{"class":126,"line":642},27,[124,644,645],{"class":450},"        \"styles\": {\n",[124,647,649],{"class":126,"line":648},28,[124,650,651],{"class":450},"          \"backgroundColor\": \"#ffffff\"\n",[124,653,655],{"class":126,"line":654},29,[124,656,657],{"class":450},"        }\n",[124,659,661],{"class":126,"line":660},30,[124,662,591],{"class":450},[124,664,666],{"class":126,"line":665},31,[124,667,668],{"class":450},"      \"back\": {\n",[124,670,672],{"class":126,"line":671},32,[124,673,674],{"class":450},"        \"html\": \"\u003Cmain style=\\\"padding:24px;font-size:16px\\\">\u003Cp>Scan to redeem your offer.\u003C\u002Fp>\u003Cdiv data-sqr data-sqr-id=\\\"spring-offer\\\" data-sqr-destination=\\\"https:\u002F\u002Fexample.com\u002Foffers\u002FSPRING-25\\\" data-sqr-size=\\\"24mm\\\" data-sqr-ecl=\\\"H\\\" data-sqr-dots-color=\\\"#0f766e\\\" data-sqr-dots-type=\\\"extra-rounded\\\" data-sqr-background-color=\\\"#ffffff\\\" data-sqr-corner-square-type=\\\"extra-rounded\\\" data-sqr-corner-dot-type=\\\"dot\\\" style=\\\"width:24mm;height:24mm\\\">\u003C\u002Fdiv>\u003C\u002Fmain>\"\n",[124,676,678],{"class":126,"line":677},33,[124,679,615],{"class":450},[124,681,683],{"class":126,"line":682},34,[124,684,685],{"class":450},"    }\n",[124,687,689,692],{"class":126,"line":688},35,[124,690,691],{"class":450},"  }",[124,693,694],{"class":457},"'\n",[134,696,698],{"id":697},"smart-qr-placeholders","Smart QR placeholders",[110,700,701,702,705,706,709,710,712],{},"Use Smart QR placeholders when you want Scribeless to generate a tracked QR code inside your HTML during rendering. Add an empty ",[121,703,704],{},"div"," with the ",[121,707,708],{},"data-sqr"," marker and Scribeless will replace the placeholder contents with a QR image while keeping the ",[121,711,704],{}," in place as the layout anchor.",[114,714,717],{"className":715,"code":716,"language":275,"meta":119,"style":119},"language-html shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u003Cdiv\n  data-sqr\n  data-sqr-id=\"spring-offer\"\n  data-sqr-destination=\"https:\u002F\u002Fexample.com\u002Foffers\u002FSPRING-25\"\n  data-sqr-size=\"24mm\"\n  data-sqr-ecl=\"H\"\n  data-sqr-dots-color=\"#0f766e\"\n  data-sqr-dots-type=\"extra-rounded\"\n  data-sqr-background-color=\"#ffffff\"\n  data-sqr-corner-square-type=\"extra-rounded\"\n  data-sqr-corner-dot-type=\"dot\"\n  style=\"width:24mm;height:24mm\"\n>\u003C\u002Fdiv>\n",[121,718,719,728,734,751,765,779,793,807,821,835,848,862,876],{"__ignoreMap":119},[124,720,721,724],{"class":126,"line":127},[124,722,723],{"class":457},"\u003C",[124,725,727],{"class":726},"swJcz","div\n",[124,729,730],{"class":126,"line":150},[124,731,733],{"class":732},"spNyl","  data-sqr\n",[124,735,736,739,742,745,748],{"class":126,"line":485},[124,737,738],{"class":732},"  data-sqr-id",[124,740,741],{"class":457},"=",[124,743,744],{"class":457},"\"",[124,746,747],{"class":450},"spring-offer",[124,749,750],{"class":457},"\"\n",[124,752,753,756,758,760,763],{"class":126,"line":499},[124,754,755],{"class":732},"  data-sqr-destination",[124,757,741],{"class":457},[124,759,744],{"class":457},[124,761,762],{"class":450},"https:\u002F\u002Fexample.com\u002Foffers\u002FSPRING-25",[124,764,750],{"class":457},[124,766,767,770,772,774,777],{"class":126,"line":510},[124,768,769],{"class":732},"  data-sqr-size",[124,771,741],{"class":457},[124,773,744],{"class":457},[124,775,776],{"class":450},"24mm",[124,778,750],{"class":457},[124,780,781,784,786,788,791],{"class":126,"line":516},[124,782,783],{"class":732},"  data-sqr-ecl",[124,785,741],{"class":457},[124,787,744],{"class":457},[124,789,790],{"class":450},"H",[124,792,750],{"class":457},[124,794,795,798,800,802,805],{"class":126,"line":522},[124,796,797],{"class":732},"  data-sqr-dots-color",[124,799,741],{"class":457},[124,801,744],{"class":457},[124,803,804],{"class":450},"#0f766e",[124,806,750],{"class":457},[124,808,809,812,814,816,819],{"class":126,"line":528},[124,810,811],{"class":732},"  data-sqr-dots-type",[124,813,741],{"class":457},[124,815,744],{"class":457},[124,817,818],{"class":450},"extra-rounded",[124,820,750],{"class":457},[124,822,823,826,828,830,833],{"class":126,"line":534},[124,824,825],{"class":732},"  data-sqr-background-color",[124,827,741],{"class":457},[124,829,744],{"class":457},[124,831,832],{"class":450},"#ffffff",[124,834,750],{"class":457},[124,836,837,840,842,844,846],{"class":126,"line":540},[124,838,839],{"class":732},"  data-sqr-corner-square-type",[124,841,741],{"class":457},[124,843,744],{"class":457},[124,845,818],{"class":450},[124,847,750],{"class":457},[124,849,850,853,855,857,860],{"class":126,"line":546},[124,851,852],{"class":732},"  data-sqr-corner-dot-type",[124,854,741],{"class":457},[124,856,744],{"class":457},[124,858,859],{"class":450},"dot",[124,861,750],{"class":457},[124,863,864,867,869,871,874],{"class":126,"line":552},[124,865,866],{"class":732},"  style",[124,868,741],{"class":457},[124,870,744],{"class":457},[124,872,873],{"class":450},"width:24mm;height:24mm",[124,875,750],{"class":457},[124,877,878,881,883],{"class":126,"line":558},[124,879,880],{"class":457},">\u003C\u002F",[124,882,704],{"class":726},[124,884,885],{"class":457},">\n",[110,887,888,889,891],{},"The placeholder must be an explicitly closed ",[121,890,704],{},"; do not use self-closing syntax. It should not contain child elements.",[110,893,894,897,898,901,902,905],{},[121,895,896],{},"data-sqr-size"," controls the generated QR image size. CSS ",[121,899,900],{},"width"," and ",[121,903,904],{},"height"," are optional layout styles, but they are recommended so your HTML reserves the right amount of space before Scribeless replaces the placeholder with the QR image. If you add padding or borders around the placeholder, account for that in your CSS layout.",[159,907,908,917],{},[162,909,910],{},[165,911,912,915],{},[168,913,914],{},"Attribute",[168,916,176],{},[178,918,919,932,942,952,974,999,1012,1040,1050,1065],{},[165,920,921,925],{},[183,922,923],{},[121,924,708],{},[183,926,927,928,931],{},"Required marker. Only ",[121,929,930],{},"div[data-sqr]"," placeholders are supported.",[165,933,934,939],{},[183,935,936],{},[121,937,938],{},"data-sqr-id",[183,940,941],{},"Required. Unique ID for this QR block on the same side of the mail piece.",[165,943,944,949],{},[183,945,946],{},[121,947,948],{},"data-sqr-destination",[183,950,951],{},"Required. The URL the QR code should send recipients to.",[165,953,954,958],{},[183,955,956],{},[121,957,896],{},[183,959,960,961,197,964,967,968,970,971,201],{},"Optional. QR size using ",[121,962,963],{},"mm",[121,965,966],{},"in",", for example ",[121,969,776],{},". Defaults to ",[121,972,973],{},"15mm",[165,975,976,981],{},[183,977,978],{},[121,979,980],{},"data-sqr-ecl",[183,982,983,984,987,988,987,991,994,995,970,997,201],{},"Optional. Error correction level: ",[121,985,986],{},"L",", ",[121,989,990],{},"M",[121,992,993],{},"Q",", or ",[121,996,790],{},[121,998,993],{},[165,1000,1001,1006],{},[183,1002,1003],{},[121,1004,1005],{},"data-sqr-dots-color",[183,1007,1008,1009,201],{},"Optional. QR dot color. Defaults to ",[121,1010,1011],{},"#000000",[165,1013,1014,1019],{},[183,1015,1016],{},[121,1017,1018],{},"data-sqr-dots-type",[183,1020,226,1021,987,1024,987,1027,987,1030,987,1033,994,1036,970,1038,201],{},[121,1022,1023],{},"rounded",[121,1025,1026],{},"dots",[121,1028,1029],{},"classy",[121,1031,1032],{},"classy-rounded",[121,1034,1035],{},"square",[121,1037,818],{},[121,1039,1035],{},[165,1041,1042,1047],{},[183,1043,1044],{},[121,1045,1046],{},"data-sqr-background-color",[183,1048,1049],{},"Optional. QR background color.",[165,1051,1052,1057],{},[183,1053,1054],{},[121,1055,1056],{},"data-sqr-corner-square-type",[183,1058,226,1059,987,1061,994,1063,201],{},[121,1060,859],{},[121,1062,1035],{},[121,1064,818],{},[165,1066,1067,1072],{},[183,1068,1069],{},[121,1070,1071],{},"data-sqr-corner-dot-type",[183,1073,226,1074,197,1076,201],{},[121,1075,859],{},[121,1077,1035],{},[110,1079,1080,1081,1083,1084,1086],{},"You can include SQR placeholders on the front, back, or both sides. Multiple placeholders are allowed on the same side as long as each has a unique ",[121,1082,938],{},". The same ",[121,1085,938],{}," can be used once on the front and once on the back.",[110,1088,1089,1091,1092,987,1094,994,1097,1100],{},[121,1090,938],{}," is a stable identifier for the QR slot in your HTML, not a globally unique analytics ID. Use a descriptive value such as ",[121,1093,747],{},[121,1095,1096],{},"booking-link",[121,1098,1099],{},"renewal-cta",". Reuse the same ID across recipients when it represents the same QR placement, and use a different ID when you have multiple QR placeholders on the same side.",[110,1102,1103,1104,201],{},"To receive a server-side event when a generated Smart QR code is scanned, create a ",[1105,1106,1107,1110],"a",{"href":102},[121,1108,1109],{},"qr_code.scanned"," webhook subscription",[134,1112,1114],{"id":1113},"response","Response",[110,1116,1117,1118,1121],{},"Successful requests return the created recipient and signed document URLs. The recipient can remain ",[121,1119,1120],{},"pending","; the generated documents in the response confirm that rendering succeeded.",[114,1123,1127],{"className":1124,"code":1125,"language":1126,"meta":119,"style":119},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"recipient\": {\n    \"id\": \"RECIPIENT_ID\",\n    \"first_name\": \"Ada\",\n    \"last_name\": \"Lovelace\",\n    \"status\": \"pending\",\n    \"variables\": {\n      \"externalId\": \"order_12345\",\n      \"offerCode\": \"SPRING-25\",\n      \"html\": {\n        \"front\": {\n          \"html\": \"\u003Cmain>...\u003C\u002Fmain>\",\n          \"styles\": {}\n        },\n        \"back\": {\n          \"html\": \"\u003Cmain>...\u003C\u002Fmain>\",\n          \"styles\": {}\n        }\n      }\n    }\n  },\n  \"documents\": [\n    {\n      \"id\": \"DOCUMENT_ID\",\n      \"format\": \"pdf\",\n      \"type\": \"postcard\",\n      \"src\": \"DOCUMENT_STORAGE_PATH\",\n      \"signed_url\": \"SIGNED_DOCUMENT_URL\"\n    },\n    {\n      \"id\": \"PREVIEW_ID\",\n      \"format\": \"preview\",\n      \"type\": \"postcard\",\n      \"src\": \"PREVIEW_STORAGE_PATH\",\n      \"signed_url\": \"SIGNED_PREVIEW_URL\"\n    },\n    {\n      \"id\": \"PREVIEW_ID_2\",\n      \"format\": \"preview\",\n      \"type\": \"postcard\",\n      \"src\": \"PREVIEW_STORAGE_PATH_2\",\n      \"signed_url\": \"SIGNED_PREVIEW_URL_2\"\n    }\n  ]\n}\n","json",[121,1128,1129,1133,1149,1172,1192,1212,1231,1244,1266,1286,1298,1312,1333,1346,1351,1364,1382,1394,1398,1402,1406,1411,1425,1430,1449,1469,1489,1509,1527,1531,1535,1554,1573,1591,1610,1627,1632,1637,1657,1676,1695,1715,1733,1738,1744],{"__ignoreMap":119},[124,1130,1131],{"class":126,"line":127},[124,1132,507],{"class":457},[124,1134,1135,1138,1141,1143,1146],{"class":126,"line":150},[124,1136,1137],{"class":457},"  \"",[124,1139,1140],{"class":732},"recipient",[124,1142,744],{"class":457},[124,1144,1145],{"class":457},":",[124,1147,1148],{"class":457}," {\n",[124,1150,1151,1154,1157,1159,1161,1164,1167,1169],{"class":126,"line":485},[124,1152,1153],{"class":457},"    \"",[124,1155,1156],{"class":446},"id",[124,1158,744],{"class":457},[124,1160,1145],{"class":457},[124,1162,1163],{"class":457}," \"",[124,1165,1166],{"class":450},"RECIPIENT_ID",[124,1168,744],{"class":457},[124,1170,1171],{"class":457},",\n",[124,1173,1174,1176,1179,1181,1183,1185,1188,1190],{"class":126,"line":499},[124,1175,1153],{"class":457},[124,1177,1178],{"class":446},"first_name",[124,1180,744],{"class":457},[124,1182,1145],{"class":457},[124,1184,1163],{"class":457},[124,1186,1187],{"class":450},"Ada",[124,1189,744],{"class":457},[124,1191,1171],{"class":457},[124,1193,1194,1196,1199,1201,1203,1205,1208,1210],{"class":126,"line":510},[124,1195,1153],{"class":457},[124,1197,1198],{"class":446},"last_name",[124,1200,744],{"class":457},[124,1202,1145],{"class":457},[124,1204,1163],{"class":457},[124,1206,1207],{"class":450},"Lovelace",[124,1209,744],{"class":457},[124,1211,1171],{"class":457},[124,1213,1214,1216,1219,1221,1223,1225,1227,1229],{"class":126,"line":516},[124,1215,1153],{"class":457},[124,1217,1218],{"class":446},"status",[124,1220,744],{"class":457},[124,1222,1145],{"class":457},[124,1224,1163],{"class":457},[124,1226,1120],{"class":450},[124,1228,744],{"class":457},[124,1230,1171],{"class":457},[124,1232,1233,1235,1238,1240,1242],{"class":126,"line":522},[124,1234,1153],{"class":457},[124,1236,1237],{"class":446},"variables",[124,1239,744],{"class":457},[124,1241,1145],{"class":457},[124,1243,1148],{"class":457},[124,1245,1246,1249,1253,1255,1257,1259,1262,1264],{"class":126,"line":528},[124,1247,1248],{"class":457},"      \"",[124,1250,1252],{"class":1251},"sbssI","externalId",[124,1254,744],{"class":457},[124,1256,1145],{"class":457},[124,1258,1163],{"class":457},[124,1260,1261],{"class":450},"order_12345",[124,1263,744],{"class":457},[124,1265,1171],{"class":457},[124,1267,1268,1270,1273,1275,1277,1279,1282,1284],{"class":126,"line":534},[124,1269,1248],{"class":457},[124,1271,1272],{"class":1251},"offerCode",[124,1274,744],{"class":457},[124,1276,1145],{"class":457},[124,1278,1163],{"class":457},[124,1280,1281],{"class":450},"SPRING-25",[124,1283,744],{"class":457},[124,1285,1171],{"class":457},[124,1287,1288,1290,1292,1294,1296],{"class":126,"line":540},[124,1289,1248],{"class":457},[124,1291,275],{"class":1251},[124,1293,744],{"class":457},[124,1295,1145],{"class":457},[124,1297,1148],{"class":457},[124,1299,1300,1303,1306,1308,1310],{"class":126,"line":546},[124,1301,1302],{"class":457},"        \"",[124,1304,1305],{"class":726},"front",[124,1307,744],{"class":457},[124,1309,1145],{"class":457},[124,1311,1148],{"class":457},[124,1313,1314,1317,1320,1322,1324,1326,1329,1331],{"class":126,"line":552},[124,1315,1316],{"class":457},"          \"",[124,1318,275],{"class":1319},"su27w",[124,1321,744],{"class":457},[124,1323,1145],{"class":457},[124,1325,1163],{"class":457},[124,1327,1328],{"class":450},"\u003Cmain>...\u003C\u002Fmain>",[124,1330,744],{"class":457},[124,1332,1171],{"class":457},[124,1334,1335,1337,1339,1341,1343],{"class":126,"line":558},[124,1336,1316],{"class":457},[124,1338,279],{"class":1319},[124,1340,744],{"class":457},[124,1342,1145],{"class":457},[124,1344,1345],{"class":457}," {}\n",[124,1347,1348],{"class":126,"line":564},[124,1349,1350],{"class":457},"        },\n",[124,1352,1353,1355,1358,1360,1362],{"class":126,"line":570},[124,1354,1302],{"class":457},[124,1356,1357],{"class":726},"back",[124,1359,744],{"class":457},[124,1361,1145],{"class":457},[124,1363,1148],{"class":457},[124,1365,1366,1368,1370,1372,1374,1376,1378,1380],{"class":126,"line":576},[124,1367,1316],{"class":457},[124,1369,275],{"class":1319},[124,1371,744],{"class":457},[124,1373,1145],{"class":457},[124,1375,1163],{"class":457},[124,1377,1328],{"class":450},[124,1379,744],{"class":457},[124,1381,1171],{"class":457},[124,1383,1384,1386,1388,1390,1392],{"class":126,"line":582},[124,1385,1316],{"class":457},[124,1387,279],{"class":1319},[124,1389,744],{"class":457},[124,1391,1145],{"class":457},[124,1393,1345],{"class":457},[124,1395,1396],{"class":126,"line":588},[124,1397,657],{"class":457},[124,1399,1400],{"class":126,"line":594},[124,1401,615],{"class":457},[124,1403,1404],{"class":126,"line":600},[124,1405,685],{"class":457},[124,1407,1408],{"class":126,"line":606},[124,1409,1410],{"class":457},"  },\n",[124,1412,1413,1415,1418,1420,1422],{"class":126,"line":612},[124,1414,1137],{"class":457},[124,1416,1417],{"class":732},"documents",[124,1419,744],{"class":457},[124,1421,1145],{"class":457},[124,1423,1424],{"class":457}," [\n",[124,1426,1427],{"class":126,"line":618},[124,1428,1429],{"class":457},"    {\n",[124,1431,1432,1434,1436,1438,1440,1442,1445,1447],{"class":126,"line":624},[124,1433,1248],{"class":457},[124,1435,1156],{"class":446},[124,1437,744],{"class":457},[124,1439,1145],{"class":457},[124,1441,1163],{"class":457},[124,1443,1444],{"class":450},"DOCUMENT_ID",[124,1446,744],{"class":457},[124,1448,1171],{"class":457},[124,1450,1451,1453,1456,1458,1460,1462,1465,1467],{"class":126,"line":630},[124,1452,1248],{"class":457},[124,1454,1455],{"class":446},"format",[124,1457,744],{"class":457},[124,1459,1145],{"class":457},[124,1461,1163],{"class":457},[124,1463,1464],{"class":450},"pdf",[124,1466,744],{"class":457},[124,1468,1171],{"class":457},[124,1470,1471,1473,1476,1478,1480,1482,1485,1487],{"class":126,"line":636},[124,1472,1248],{"class":457},[124,1474,1475],{"class":446},"type",[124,1477,744],{"class":457},[124,1479,1145],{"class":457},[124,1481,1163],{"class":457},[124,1483,1484],{"class":450},"postcard",[124,1486,744],{"class":457},[124,1488,1171],{"class":457},[124,1490,1491,1493,1496,1498,1500,1502,1505,1507],{"class":126,"line":642},[124,1492,1248],{"class":457},[124,1494,1495],{"class":446},"src",[124,1497,744],{"class":457},[124,1499,1145],{"class":457},[124,1501,1163],{"class":457},[124,1503,1504],{"class":450},"DOCUMENT_STORAGE_PATH",[124,1506,744],{"class":457},[124,1508,1171],{"class":457},[124,1510,1511,1513,1516,1518,1520,1522,1525],{"class":126,"line":648},[124,1512,1248],{"class":457},[124,1514,1515],{"class":446},"signed_url",[124,1517,744],{"class":457},[124,1519,1145],{"class":457},[124,1521,1163],{"class":457},[124,1523,1524],{"class":450},"SIGNED_DOCUMENT_URL",[124,1526,750],{"class":457},[124,1528,1529],{"class":126,"line":654},[124,1530,621],{"class":457},[124,1532,1533],{"class":126,"line":660},[124,1534,1429],{"class":457},[124,1536,1537,1539,1541,1543,1545,1547,1550,1552],{"class":126,"line":665},[124,1538,1248],{"class":457},[124,1540,1156],{"class":446},[124,1542,744],{"class":457},[124,1544,1145],{"class":457},[124,1546,1163],{"class":457},[124,1548,1549],{"class":450},"PREVIEW_ID",[124,1551,744],{"class":457},[124,1553,1171],{"class":457},[124,1555,1556,1558,1560,1562,1564,1566,1569,1571],{"class":126,"line":671},[124,1557,1248],{"class":457},[124,1559,1455],{"class":446},[124,1561,744],{"class":457},[124,1563,1145],{"class":457},[124,1565,1163],{"class":457},[124,1567,1568],{"class":450},"preview",[124,1570,744],{"class":457},[124,1572,1171],{"class":457},[124,1574,1575,1577,1579,1581,1583,1585,1587,1589],{"class":126,"line":677},[124,1576,1248],{"class":457},[124,1578,1475],{"class":446},[124,1580,744],{"class":457},[124,1582,1145],{"class":457},[124,1584,1163],{"class":457},[124,1586,1484],{"class":450},[124,1588,744],{"class":457},[124,1590,1171],{"class":457},[124,1592,1593,1595,1597,1599,1601,1603,1606,1608],{"class":126,"line":682},[124,1594,1248],{"class":457},[124,1596,1495],{"class":446},[124,1598,744],{"class":457},[124,1600,1145],{"class":457},[124,1602,1163],{"class":457},[124,1604,1605],{"class":450},"PREVIEW_STORAGE_PATH",[124,1607,744],{"class":457},[124,1609,1171],{"class":457},[124,1611,1612,1614,1616,1618,1620,1622,1625],{"class":126,"line":688},[124,1613,1248],{"class":457},[124,1615,1515],{"class":446},[124,1617,744],{"class":457},[124,1619,1145],{"class":457},[124,1621,1163],{"class":457},[124,1623,1624],{"class":450},"SIGNED_PREVIEW_URL",[124,1626,750],{"class":457},[124,1628,1630],{"class":126,"line":1629},36,[124,1631,621],{"class":457},[124,1633,1635],{"class":126,"line":1634},37,[124,1636,1429],{"class":457},[124,1638,1640,1642,1644,1646,1648,1650,1653,1655],{"class":126,"line":1639},38,[124,1641,1248],{"class":457},[124,1643,1156],{"class":446},[124,1645,744],{"class":457},[124,1647,1145],{"class":457},[124,1649,1163],{"class":457},[124,1651,1652],{"class":450},"PREVIEW_ID_2",[124,1654,744],{"class":457},[124,1656,1171],{"class":457},[124,1658,1660,1662,1664,1666,1668,1670,1672,1674],{"class":126,"line":1659},39,[124,1661,1248],{"class":457},[124,1663,1455],{"class":446},[124,1665,744],{"class":457},[124,1667,1145],{"class":457},[124,1669,1163],{"class":457},[124,1671,1568],{"class":450},[124,1673,744],{"class":457},[124,1675,1171],{"class":457},[124,1677,1679,1681,1683,1685,1687,1689,1691,1693],{"class":126,"line":1678},40,[124,1680,1248],{"class":457},[124,1682,1475],{"class":446},[124,1684,744],{"class":457},[124,1686,1145],{"class":457},[124,1688,1163],{"class":457},[124,1690,1484],{"class":450},[124,1692,744],{"class":457},[124,1694,1171],{"class":457},[124,1696,1698,1700,1702,1704,1706,1708,1711,1713],{"class":126,"line":1697},41,[124,1699,1248],{"class":457},[124,1701,1495],{"class":446},[124,1703,744],{"class":457},[124,1705,1145],{"class":457},[124,1707,1163],{"class":457},[124,1709,1710],{"class":450},"PREVIEW_STORAGE_PATH_2",[124,1712,744],{"class":457},[124,1714,1171],{"class":457},[124,1716,1718,1720,1722,1724,1726,1728,1731],{"class":126,"line":1717},42,[124,1719,1248],{"class":457},[124,1721,1515],{"class":446},[124,1723,744],{"class":457},[124,1725,1145],{"class":457},[124,1727,1163],{"class":457},[124,1729,1730],{"class":450},"SIGNED_PREVIEW_URL_2",[124,1732,750],{"class":457},[124,1734,1736],{"class":126,"line":1735},43,[124,1737,685],{"class":457},[124,1739,1741],{"class":126,"line":1740},44,[124,1742,1743],{"class":457},"  ]\n",[124,1745,1747],{"class":126,"line":1746},45,[124,1748,1749],{"class":457},"}\n",[134,1751,1753],{"id":1752},"html-guidance","HTML guidance",[1755,1756,1757,1761,1764,1767,1770,1773,1780,1786],"ul",{},[1758,1759,1760],"li",{},"Send complete HTML fragments for the side you want to render. Keep CSS inline or side-level.",[1758,1762,1763],{},"Use HTTPS URLs for externally hosted images and fonts.",[1758,1765,1766],{},"Keep images small enough to render reliably for print.",[1758,1768,1769],{},"Do not rely on client-side JavaScript for printed output.",[1758,1771,1772],{},"Do not use external CSS, scripts, fetch\u002FXHR, iframes, or form actions.",[1758,1774,1775,1776,1779],{},"Inline ",[121,1777,1778],{},"data:image\u002F*"," URLs are allowed.",[1758,1781,1782,1783,1785],{},"Send the final text you want printed inside the HTML. Recipient ",[121,1784,1237],{}," are stored with the recipient, but the HTML endpoint should not be treated as a general-purpose HTML templating engine.",[1758,1787,1788],{},"Test with one non-sensitive recipient before sending production traffic.",[134,1790,1792],{"id":1791},"errors","Errors",[159,1794,1795,1805],{},[162,1796,1797],{},[165,1798,1799,1802],{},[168,1800,1801],{},"Status",[168,1803,1804],{},"Meaning",[178,1806,1807,1817,1827],{},[165,1808,1809,1814],{},[183,1810,1811],{},[121,1812,1813],{},"400",[183,1815,1816],{},"Invalid payload, invalid product key, missing required recipient data, unsupported address data, or invalid Smart QR placeholder attributes.",[165,1818,1819,1824],{},[183,1820,1821],{},[121,1822,1823],{},"401",[183,1825,1826],{},"Missing, malformed, revoked, or invalid API key.",[165,1828,1829,1834],{},[183,1830,1831],{},[121,1832,1833],{},"500",[183,1835,1836],{},"Recipient creation or HTML rendering failed. Contact support if this persists.",[1838,1839,1840],"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 .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}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}html pre.shiki code .su27w, html code.shiki .su27w{--shiki-light:#916B53;--shiki-default:#916B53;--shiki-dark:#916B53}",{"title":119,"searchDepth":150,"depth":150,"links":1842},[1843,1844,1845,1846,1847,1848,1849,1850],{"id":136,"depth":150,"text":137},{"id":156,"depth":150,"text":157},{"id":283,"depth":150,"text":284},{"id":433,"depth":150,"text":434},{"id":697,"depth":150,"text":698},{"id":1113,"depth":150,"text":1114},{"id":1752,"depth":150,"text":1753},{"id":1791,"depth":150,"text":1792},"Create a Scribeless recipient from custom HTML.","md",null,{},true,{"title":63,"description":1851},"GlymLJs15_V5ii6qHE2tmjKddB5GeAg8Ffa3tTR_DjI",[1859,1861],{"title":59,"path":60,"stem":61,"description":1860,"children":-1},"Download a rendered PNG preview for a Scribeless recipient.",{"title":67,"path":68,"stem":69,"description":1862,"children":-1},"Render Scribeless handwriting text as a PNG.",1780671949151]