[{"data":1,"prerenderedAt":396},["ShallowReactive",2],{"navigation_docs":3,"-getting-started-campaigns":104,"-getting-started-campaigns-surround":391},[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":18,"body":106,"description":384,"extension":385,"links":386,"meta":387,"navigation":388,"path":19,"seo":389,"stem":20,"__hash__":390},"docs\u002F1.getting-started\u002F3.campaigns.md",{"type":107,"value":108,"toc":378},"minimark",[109,113,121,126,137,252,255,259,262,269,336,339,343,346,349,353,356,365,374],[110,111,112],"p",{},"Create the campaign in Scribeless before sending recipients through the API. Recipient creation needs a campaign destination.",[110,114,115,116,120],{},"You can create that campaign in the platform UI, which is usually the simplest option. If you already have the required product and template IDs, you can also create one with ",[117,118,119],"code",{},"POST \u002Fapi\u002Fcampaigns",".",[122,123,125],"h2",{"id":124},"find-the-campaign-id","Find the campaign ID",[110,127,128,129,132,133,136],{},"The ",[117,130,131],{},"campaignId"," field in ",[117,134,135],{},"POST \u002Fapi\u002Frecipients"," tells Scribeless which campaign should receive the recipient data.",[138,139,144],"pre",{"className":140,"code":141,"language":142,"meta":143,"style":143},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"campaignId\": \"CAMPAIGN_ID\",\n  \"data\": {\n    \"firstName\": \"Ada\",\n    \"lastName\": \"Lovelace\"\n  }\n}\n","json","",[117,145,146,155,182,197,220,240,246],{"__ignoreMap":143},[147,148,151],"span",{"class":149,"line":150},"line",1,[147,152,154],{"class":153},"sMK4o","{\n",[147,156,158,161,164,167,170,173,177,179],{"class":149,"line":157},2,[147,159,160],{"class":153},"  \"",[147,162,131],{"class":163},"spNyl",[147,165,166],{"class":153},"\"",[147,168,169],{"class":153},":",[147,171,172],{"class":153}," \"",[147,174,176],{"class":175},"sfazB","CAMPAIGN_ID",[147,178,166],{"class":153},[147,180,181],{"class":153},",\n",[147,183,185,187,190,192,194],{"class":149,"line":184},3,[147,186,160],{"class":153},[147,188,189],{"class":163},"data",[147,191,166],{"class":153},[147,193,169],{"class":153},[147,195,196],{"class":153}," {\n",[147,198,200,203,207,209,211,213,216,218],{"class":149,"line":199},4,[147,201,202],{"class":153},"    \"",[147,204,206],{"class":205},"sBMFI","firstName",[147,208,166],{"class":153},[147,210,169],{"class":153},[147,212,172],{"class":153},[147,214,215],{"class":175},"Ada",[147,217,166],{"class":153},[147,219,181],{"class":153},[147,221,223,225,228,230,232,234,237],{"class":149,"line":222},5,[147,224,202],{"class":153},[147,226,227],{"class":205},"lastName",[147,229,166],{"class":153},[147,231,169],{"class":153},[147,233,172],{"class":153},[147,235,236],{"class":175},"Lovelace",[147,238,239],{"class":153},"\"\n",[147,241,243],{"class":149,"line":242},6,[147,244,245],{"class":153},"  }\n",[147,247,249],{"class":149,"line":248},7,[147,250,251],{"class":153},"}\n",[110,253,254],{},"Use the ID for the campaign whose creative, product, delivery settings, template variables, and testing status you want to use.",[122,256,258],{"id":257},"template-variables","Template variables",[110,260,261],{},"Set up the campaign template before sending API recipients. Any personalization fields used by the campaign must be present in each recipient payload.",[110,263,264,265,268],{},"Use ",[117,266,267],{},"variables"," for custom values:",[138,270,272],{"className":140,"code":271,"language":142,"meta":143,"style":143},"{\n  \"variables\": {\n    \"custom1\": \"This is a personalized first sentence\",\n    \"custom2\": \"www.scribeless.co\"\n  }\n}\n",[117,273,274,278,290,310,328,332],{"__ignoreMap":143},[147,275,276],{"class":149,"line":150},[147,277,154],{"class":153},[147,279,280,282,284,286,288],{"class":149,"line":157},[147,281,160],{"class":153},[147,283,267],{"class":163},[147,285,166],{"class":153},[147,287,169],{"class":153},[147,289,196],{"class":153},[147,291,292,294,297,299,301,303,306,308],{"class":149,"line":184},[147,293,202],{"class":153},[147,295,296],{"class":205},"custom1",[147,298,166],{"class":153},[147,300,169],{"class":153},[147,302,172],{"class":153},[147,304,305],{"class":175},"This is a personalized first sentence",[147,307,166],{"class":153},[147,309,181],{"class":153},[147,311,312,314,317,319,321,323,326],{"class":149,"line":199},[147,313,202],{"class":153},[147,315,316],{"class":205},"custom2",[147,318,166],{"class":153},[147,320,169],{"class":153},[147,322,172],{"class":153},[147,324,325],{"class":175},"www.scribeless.co",[147,327,239],{"class":153},[147,329,330],{"class":149,"line":222},[147,331,245],{"class":153},[147,333,334],{"class":149,"line":242},[147,335,251],{"class":153},[110,337,338],{},"If your campaign was built around named custom fields, keep those names consistent between the campaign and API payload.",[122,340,342],{"id":341},"pending-and-testing-mode","Pending and testing mode",[110,344,345],{},"New recipients are added to the campaign with a pending status before rendering and downstream processing.",[110,347,348],{},"If the campaign is in testing mode, recipients created against it are testing recipients. Testing recipients are useful for validation and should not be treated as live mail. In the application UI, testing recipients are marked as not sent.",[122,350,352],{"id":351},"billing-notes","Billing notes",[110,354,355],{},"Live recipient creation may create billable usage according to the campaign product, delivery settings, and account pricing. Test with one non-sensitive recipient before enabling an automation, and confirm your campaign is no longer in testing mode before sending live recipients.",[110,357,358,359,120],{},"Approved partner invoice-billed workflows may require an explicit checkout step before recipients move toward fulfilment. See ",[360,361,362],"a",{"href":85},[117,363,364],{},"POST \u002Fapi\u002Frecipients\u002Fcheckout",[110,366,367,368,120],{},"For campaign and recipient status definitions, see the ",[360,369,373],{"href":370,"rel":371},"https:\u002F\u002Fhelp.scribeless.co\u002Fen\u002Farticles\u002F8800855-campaign-recipient-statuses",[372],"nofollow","Campaign and recipient statuses Help Center article",[375,376,377],"style",{},"html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}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":143,"searchDepth":157,"depth":157,"links":379},[380,381,382,383],{"id":124,"depth":157,"text":125},{"id":257,"depth":157,"text":258},{"id":341,"depth":157,"text":342},{"id":351,"depth":157,"text":352},"Prepare a Scribeless campaign before sending recipients through the API.","md",null,{},true,{"title":18,"description":384},"fJBTYSY5oSV3hGNyO0ThbwdEs4NFyJC8gJ1tXgc6_5c",[392,394],{"title":14,"path":15,"stem":16,"description":393,"children":-1},"Authenticate Scribeless API requests with X-API-Key.",{"title":22,"path":23,"stem":24,"description":395,"children":-1},"Install Scribeless skills for AI-assisted API integrations.",1780671947975]