[{"data":1,"prerenderedAt":567},["ShallowReactive",2],{"navigation":3,"\u002Fgetting-started\u002Ftest-integration":176,"\u002Fgetting-started\u002Ftest-integration-surround":562},[4,40,100,152],{"title":5,"path":6,"stem":7,"children":8,"icon":39},"Getting started","\u002Fgetting-started","1.getting-started\u002F1.index",[9,11,15,19,23,27,31,35],{"title":10,"path":6,"stem":7},"Introduction",{"title":12,"path":13,"stem":14},"How Postvia works","\u002Fgetting-started\u002Fhow-it-works","1.getting-started\u002F2.how-it-works",{"title":16,"path":17,"stem":18},"First customer and website","\u002Fgetting-started\u002Ffirst-customer-and-website","1.getting-started\u002F3.first-customer-and-website",{"title":20,"path":21,"stem":22},"Create your first form","\u002Fgetting-started\u002Ffirst-form","1.getting-started\u002F4.first-form",{"title":24,"path":25,"stem":26},"Submit your first JSON request","\u002Fgetting-started\u002Ffirst-json-request","1.getting-started\u002F5.first-json-request",{"title":28,"path":29,"stem":30},"Email notifications","\u002Fgetting-started\u002Femail-notifications","1.getting-started\u002F6.email-notifications",{"title":32,"path":33,"stem":34},"Test integration","\u002Fgetting-started\u002Ftest-integration","1.getting-started\u002F7.test-integration",{"title":36,"path":37,"stem":38},"Deploy integration","\u002Fgetting-started\u002Fdeploy-integration","1.getting-started\u002F8.deploy-integration","i-lucide-rocket",{"title":41,"icon":42,"path":43,"stem":44,"children":45},"Guides","i-lucide-book-open","\u002Fguides","2.guides",[46,48,52,56,60,64,68,72,76,80,84,88,92,96],{"title":41,"path":43,"stem":47},"2.guides\u002Findex",{"title":49,"path":50,"stem":51},"JavaScript integration","\u002Fguides\u002Fjavascript","2.guides\u002F1.javascript",{"title":53,"path":54,"stem":55},"Rate limits and retries","\u002Fguides\u002Frate-limits-retries","2.guides\u002F10.rate-limits-retries",{"title":57,"path":58,"stem":59},"Multiple recipients","\u002Fguides\u002Fmultiple-recipients","2.guides\u002F11.multiple-recipients",{"title":61,"path":62,"stem":63},"Success redirects","\u002Fguides\u002Fsuccess-redirects","2.guides\u002F12.success-redirects",{"title":65,"path":66,"stem":67},"Troubleshooting delivery","\u002Fguides\u002Ftroubleshooting-delivery","2.guides\u002F13.troubleshooting-delivery",{"title":69,"path":70,"stem":71},"TypeScript integration","\u002Fguides\u002Ftypescript","2.guides\u002F2.typescript",{"title":73,"path":74,"stem":75},"Nuxt 4 integration","\u002Fguides\u002Fnuxt","2.guides\u002F3.nuxt",{"title":77,"path":78,"stem":79},"Vue integration","\u002Fguides\u002Fvue","2.guides\u002F4.vue",{"title":81,"path":82,"stem":83},"Standard HTML forms","\u002Fguides\u002Fhtml-forms","2.guides\u002F5.html-forms",{"title":85,"path":86,"stem":87},"Turnstile integration","\u002Fguides\u002Fcloudflare-turnstile","2.guides\u002F6.cloudflare-turnstile",{"title":89,"path":90,"stem":91},"Validation errors","\u002Fguides\u002Fvalidation-errors","2.guides\u002F7.validation-errors",{"title":93,"path":94,"stem":95},"Successful submissions","\u002Fguides\u002Fsuccessful-submissions","2.guides\u002F8.successful-submissions",{"title":97,"path":98,"stem":99},"Prevent duplicates","\u002Fguides\u002Fpreventing-duplicates","2.guides\u002F9.preventing-duplicates",{"title":101,"path":102,"stem":103,"children":104,"icon":151},"API reference","\u002Fapi","3.api\u002F1.index",[105,107,111,115,119,123,127,131,135,139,143,147],{"title":106,"path":102,"stem":103},"API overview",{"title":108,"path":109,"stem":110},"Idempotency","\u002Fapi\u002Fidempotency","3.api\u002F10.idempotency",{"title":112,"path":113,"stem":114},"Security and spam protection","\u002Fapi\u002Fsecurity","3.api\u002F11.security",{"title":116,"path":117,"stem":118},"API playground","\u002Fapi\u002Fplayground","3.api\u002F12.playground",{"title":120,"path":121,"stem":122},"Base URLs and versioning","\u002Fapi\u002Fbase-urls-versioning","3.api\u002F2.base-urls-versioning",{"title":124,"path":125,"stem":126},"Submit form","\u002Fapi\u002Fsubmit-form","3.api\u002F3.submit-form",{"title":128,"path":129,"stem":130},"Short alias","\u002Fapi\u002Falias-endpoint","3.api\u002F4.alias-endpoint",{"title":132,"path":133,"stem":134},"Request headers","\u002Fapi\u002Frequest-headers","3.api\u002F5.request-headers",{"title":136,"path":137,"stem":138},"Request body","\u002Fapi\u002Frequest-body","3.api\u002F6.request-body",{"title":140,"path":141,"stem":142},"Response format","\u002Fapi\u002Fresponse-format","3.api\u002F7.response-format",{"title":144,"path":145,"stem":146},"Error codes","\u002Fapi\u002Ferrors","3.api\u002F8.errors",{"title":148,"path":149,"stem":150},"Rate limits","\u002Fapi\u002Frate-limits","3.api\u002F9.rate-limits","i-lucide-code-xml",{"title":153,"icon":154,"path":155,"stem":156,"children":157},"Resources","i-lucide-life-buoy","\u002Fresources","4.resources",[158,160,164,168,172],{"title":153,"path":155,"stem":159},"4.resources\u002Findex",{"title":161,"path":162,"stem":163},"Frequently asked questions","\u002Fresources\u002Ffaq","4.resources\u002F1.faq",{"title":165,"path":166,"stem":167},"Troubleshooting","\u002Fresources\u002Ftroubleshooting","4.resources\u002F2.troubleshooting",{"title":169,"path":170,"stem":171},"API changelog","\u002Fresources\u002Fchangelog","4.resources\u002F3.changelog",{"title":173,"path":174,"stem":175},"Migration guides","\u002Fresources\u002Fmigrations","4.resources\u002F4.migrations",{"id":177,"title":32,"apiOperation":178,"body":179,"description":557,"extension":558,"links":178,"meta":559,"navigation":475,"path":33,"related":178,"seo":560,"stem":34,"__hash__":561},"docs\u002F1.getting-started\u002F7.test-integration.md",null,{"type":180,"value":181,"toc":551},"minimark",[182,186,191,215,218,222,225,511,514,518,536,540,547],[183,184,185],"p",{},"Test from the real customer origin whenever possible. The public API enforces the website’s origin allowlist even for tests.",[187,188,190],"h2",{"id":189},"from-the-administration-portal","From the administration portal",[192,193,194,198,206,209,212],"ol",{},[195,196,197],"li",{},"Open the form.",[195,199,200,201,205],{},"Choose ",[202,203,204],"strong",{},"Test submission",".",[195,207,208],{},"Submit representative field values.",[195,210,211],{},"Optionally send the test to the configured recipients. This requires explicit confirmation.",[195,213,214],{},"Confirm the submission appears in the inbox and review the delivery timeline.",[183,216,217],{},"Test submissions use the same persistence and delivery pipeline. They are clearly labelled and never bypass protection for public callers.",[187,219,221],{"id":220},"from-the-browser-console","From the browser console",[183,223,224],{},"Open the customer website and run:",[226,227,232],"pre",{"className":228,"code":229,"language":230,"meta":231,"style":231},"language-js shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","const response = await fetch('https:\u002F\u002Fapi.postvia.dev\u002Fv1\u002Fforms\u002Fabc123\u002Fsubmissions', {\n  method: 'POST',\n  headers: {\n    Accept: 'application\u002Fjson',\n    'Content-Type': 'application\u002Fjson',\n    'Idempotency-Key': crypto.randomUUID(),\n  },\n  body: JSON.stringify({\n    name: 'Browser test',\n    email: 'test@example.com',\n    message: 'Testing the Postvia integration',\n  }),\n})\n\nconsole.log(response.status, await response.json())\n","js","",[233,234,235,278,299,309,326,347,372,378,399,416,433,450,461,470,477],"code",{"__ignoreMap":231},[236,237,240,244,248,252,256,260,263,266,270,272,275],"span",{"class":238,"line":239},"line",1,[236,241,243],{"class":242},"spNyl","const",[236,245,247],{"class":246},"sTEyZ"," response ",[236,249,251],{"class":250},"sMK4o","=",[236,253,255],{"class":254},"s7zQu"," await",[236,257,259],{"class":258},"s2Zo4"," fetch",[236,261,262],{"class":246},"(",[236,264,265],{"class":250},"'",[236,267,269],{"class":268},"sfazB","https:\u002F\u002Fapi.postvia.dev\u002Fv1\u002Fforms\u002Fabc123\u002Fsubmissions",[236,271,265],{"class":250},[236,273,274],{"class":250},",",[236,276,277],{"class":250}," {\n",[236,279,281,285,288,291,294,296],{"class":238,"line":280},2,[236,282,284],{"class":283},"swJcz","  method",[236,286,287],{"class":250},":",[236,289,290],{"class":250}," '",[236,292,293],{"class":268},"POST",[236,295,265],{"class":250},[236,297,298],{"class":250},",\n",[236,300,302,305,307],{"class":238,"line":301},3,[236,303,304],{"class":283},"  headers",[236,306,287],{"class":250},[236,308,277],{"class":250},[236,310,312,315,317,319,322,324],{"class":238,"line":311},4,[236,313,314],{"class":283},"    Accept",[236,316,287],{"class":250},[236,318,290],{"class":250},[236,320,321],{"class":268},"application\u002Fjson",[236,323,265],{"class":250},[236,325,298],{"class":250},[236,327,329,332,335,337,339,341,343,345],{"class":238,"line":328},5,[236,330,331],{"class":250},"    '",[236,333,334],{"class":283},"Content-Type",[236,336,265],{"class":250},[236,338,287],{"class":250},[236,340,290],{"class":250},[236,342,321],{"class":268},[236,344,265],{"class":250},[236,346,298],{"class":250},[236,348,350,352,355,357,359,362,364,367,370],{"class":238,"line":349},6,[236,351,331],{"class":250},[236,353,354],{"class":283},"Idempotency-Key",[236,356,265],{"class":250},[236,358,287],{"class":250},[236,360,361],{"class":246}," crypto",[236,363,205],{"class":250},[236,365,366],{"class":258},"randomUUID",[236,368,369],{"class":246},"()",[236,371,298],{"class":250},[236,373,375],{"class":238,"line":374},7,[236,376,377],{"class":250},"  },\n",[236,379,381,384,386,389,391,394,396],{"class":238,"line":380},8,[236,382,383],{"class":283},"  body",[236,385,287],{"class":250},[236,387,388],{"class":246}," JSON",[236,390,205],{"class":250},[236,392,393],{"class":258},"stringify",[236,395,262],{"class":246},[236,397,398],{"class":250},"{\n",[236,400,402,405,407,409,412,414],{"class":238,"line":401},9,[236,403,404],{"class":283},"    name",[236,406,287],{"class":250},[236,408,290],{"class":250},[236,410,411],{"class":268},"Browser test",[236,413,265],{"class":250},[236,415,298],{"class":250},[236,417,419,422,424,426,429,431],{"class":238,"line":418},10,[236,420,421],{"class":283},"    email",[236,423,287],{"class":250},[236,425,290],{"class":250},[236,427,428],{"class":268},"test@example.com",[236,430,265],{"class":250},[236,432,298],{"class":250},[236,434,436,439,441,443,446,448],{"class":238,"line":435},11,[236,437,438],{"class":283},"    message",[236,440,287],{"class":250},[236,442,290],{"class":250},[236,444,445],{"class":268},"Testing the Postvia integration",[236,447,265],{"class":250},[236,449,298],{"class":250},[236,451,453,456,459],{"class":238,"line":452},12,[236,454,455],{"class":250},"  }",[236,457,458],{"class":246},")",[236,460,298],{"class":250},[236,462,464,467],{"class":238,"line":463},13,[236,465,466],{"class":250},"}",[236,468,469],{"class":246},")\n",[236,471,473],{"class":238,"line":472},14,[236,474,476],{"emptyLinePlaceholder":475},true,"\n",[236,478,480,483,485,488,491,493,496,498,500,503,505,508],{"class":238,"line":479},15,[236,481,482],{"class":246},"console",[236,484,205],{"class":250},[236,486,487],{"class":258},"log",[236,489,490],{"class":246},"(response",[236,492,205],{"class":250},[236,494,495],{"class":246},"status",[236,497,274],{"class":250},[236,499,255],{"class":254},[236,501,502],{"class":246}," response",[236,504,205],{"class":250},[236,506,507],{"class":258},"json",[236,509,510],{"class":246},"())\n",[183,512,513],{},"A CORS error usually means the page origin is not on the website allowlist.",[187,515,517],{"id":516},"readiness-checklist","Readiness checklist",[519,520,521,524,527,530,533],"ul",{},[195,522,523],{},"Customer, website and form are active.",[195,525,526],{},"The page origin matches an allowed origin exactly.",[195,528,529],{},"Turnstile is configured and the site key matches the website.",[195,531,532],{},"At least one recipient exists.",[195,534,535],{},"The queue worker and scheduler are running.",[187,537,539],{"id":538},"next","Next",[183,541,542,543,205],{},"Continue to ",[544,545,546],"a",{"href":37},"Deploy your integration",[548,549,550],"style",{},"html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}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);}",{"title":231,"searchDepth":280,"depth":280,"links":552},[553,554,555,556],{"id":189,"depth":280,"text":190},{"id":220,"depth":280,"text":221},{"id":516,"depth":280,"text":517},{"id":538,"depth":280,"text":539},"Use the authenticated test-submission workflow and verify delivery end to end.","md",{},{"title":32,"description":557},"F_M6Rk3vy8Vga3prW2JAOlmGeGdSWEGAOz6NeTf76Mk",[563,565],{"title":28,"path":29,"stem":30,"description":564,"children":-1},"Set recipients, subject, Reply-To and delivery expectations.",{"title":36,"path":37,"stem":38,"description":566,"children":-1},"Ship the form, verify production behaviour and keep documentation in sync.",1795377932598]