[{"data":1,"prerenderedAt":1729},["ShallowReactive",2],{"navigation_docs":3,"-docs-core-operations-webhooks-send-webhooks":478,"-docs-core-operations-webhooks-send-webhooks-surround":1724},[4,352,446],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Docs",false,"\u002Fdocs\u002Fcore","docs\u002F1.core",[10,35,141,174,195,212,242,318],{"title":11,"icon":6,"path":12,"stem":13,"children":14,"page":6},"Getting Started","\u002Fdocs\u002Fcore\u002Fgetting-started","docs\u002F1.core\u002F1.getting-started",[15,19,23,27,31],{"title":16,"path":17,"stem":18},"Introduction","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fintroduction","docs\u002F1.core\u002F1.getting-started\u002F1.introduction",{"title":20,"path":21,"stem":22},"Quick Start","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fquick-start","docs\u002F1.core\u002F1.getting-started\u002F2.quick-start",{"title":24,"path":25,"stem":26},"Add to an Existing Site","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fexisting-site","docs\u002F1.core\u002F1.getting-started\u002F3.existing-site",{"title":28,"path":29,"stem":30},"Configuration","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fconfiguration","docs\u002F1.core\u002F1.getting-started\u002F4.configuration",{"title":32,"path":33,"stem":34},"How Tenon works","\u002Fdocs\u002Fcore\u002Fgetting-started\u002Fhow-tenon-works","docs\u002F1.core\u002F1.getting-started\u002F5.how-tenon-works",{"title":36,"icon":6,"path":37,"stem":38,"children":39,"page":6},"Content Modeling","\u002Fdocs\u002Fcore\u002Fcontent-modeling","docs\u002F1.core\u002F2.content-modeling",[40,44,111,115,119],{"title":41,"path":42,"stem":43},"Collections and Globals","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fcollections-and-globals","docs\u002F1.core\u002F2.content-modeling\u002F1.collections-and-globals",{"title":45,"icon":6,"path":46,"stem":47,"children":48},"Fields","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002Findex",[49,51,55,59,63,67,71,75,79,83,87,91,95,99,103,107],{"title":50,"path":46,"stem":47},"Overview",{"title":52,"path":53,"stem":54},"Array","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Farray","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F01.array",{"title":56,"path":57,"stem":58},"Blocks","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fblocks","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F02.blocks",{"title":60,"path":61,"stem":62},"Boolean","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fboolean","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F03.boolean",{"title":64,"path":65,"stem":66},"Date","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fdate","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F04.date",{"title":68,"path":69,"stem":70},"File","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Ffile","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F05.file",{"title":72,"path":73,"stem":74},"Group","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fgroup","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F06.group",{"title":76,"path":77,"stem":78},"Image","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fimage","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F07.image",{"title":80,"path":81,"stem":82},"Link","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Flink","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F08.link",{"title":84,"path":85,"stem":86},"Number","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fnumber","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F09.number",{"title":88,"path":89,"stem":90},"Relation","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Frelation","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F10.relation",{"title":92,"path":93,"stem":94},"Rich text","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Frich-text","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F11.rich-text",{"title":96,"path":97,"stem":98},"Select","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fselect","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F12.select",{"title":100,"path":101,"stem":102},"Size","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fsize","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F13.size",{"title":104,"path":105,"stem":106},"Slug","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Fslug","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F14.slug",{"title":108,"path":109,"stem":110},"Text","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Ffields\u002Ftext","docs\u002F1.core\u002F2.content-modeling\u002F2.fields\u002F15.text",{"title":112,"path":113,"stem":114},"Relations","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Frelations","docs\u002F1.core\u002F2.content-modeling\u002F3.relations",{"title":116,"path":117,"stem":118},"Media","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fmedia","docs\u002F1.core\u002F2.content-modeling\u002F4.media",{"title":120,"icon":6,"path":121,"stem":122,"children":123},"Presets","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002Findex",[124,125,129,133,137],{"title":50,"path":121,"stem":122},{"title":126,"path":127,"stem":128},"Menu","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fmenu","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F1.menu",{"title":130,"path":131,"stem":132},"Pages","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fpages","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F2.pages",{"title":134,"path":135,"stem":136},"Settings","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fsettings","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F3.settings",{"title":138,"path":139,"stem":140},"Strings","\u002Fdocs\u002Fcore\u002Fcontent-modeling\u002Fpresets\u002Fstrings","docs\u002F1.core\u002F2.content-modeling\u002F5.presets\u002F4.strings",{"title":142,"icon":6,"path":143,"stem":144,"children":145,"page":6},"Working with Content","\u002Fdocs\u002Fcore\u002Fworking-with-content","docs\u002F1.core\u002F3.working-with-content",[146,150,154,158,162,166,170],{"title":147,"path":148,"stem":149},"Reading","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Freading","docs\u002F1.core\u002F3.working-with-content\u002F1.reading",{"title":151,"path":152,"stem":153},"Writing and Drafts","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fwriting","docs\u002F1.core\u002F3.working-with-content\u002F2.writing",{"title":155,"path":156,"stem":157},"Scheduled publishing","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fscheduled-publishing","docs\u002F1.core\u002F3.working-with-content\u002F3.scheduled-publishing",{"title":159,"path":160,"stem":161},"HTTP API and Client","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fhttp-api-and-client","docs\u002F1.core\u002F3.working-with-content\u002F4.http-api-and-client",{"title":163,"path":164,"stem":165},"Headless","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fheadless","docs\u002F1.core\u002F3.working-with-content\u002F5.headless",{"title":167,"path":168,"stem":169},"Localization","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Flocalization","docs\u002F1.core\u002F3.working-with-content\u002F6.localization",{"title":171,"path":172,"stem":173},"Hooks","\u002Fdocs\u002Fcore\u002Fworking-with-content\u002Fhooks","docs\u002F1.core\u002F3.working-with-content\u002F7.hooks",{"title":175,"icon":6,"path":176,"stem":177,"children":178,"page":6},"Building Your Site","\u002Fdocs\u002Fcore\u002Fbuilding-your-site","docs\u002F1.core\u002F4.building-your-site",[179,183,187,191],{"title":180,"path":181,"stem":182},"Pages and SEO","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Fpages-and-seo","docs\u002F1.core\u002F4.building-your-site\u002F1.pages-and-seo",{"title":184,"path":185,"stem":186},"Components","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Fcomponents","docs\u002F1.core\u002F4.building-your-site\u002F2.components",{"title":188,"path":189,"stem":190},"Menus","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Fmenus","docs\u002F1.core\u002F4.building-your-site\u002F3.menus",{"title":192,"path":193,"stem":194},"Live Preview","\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Flive-preview","docs\u002F1.core\u002F4.building-your-site\u002F4.live-preview",{"title":196,"icon":6,"path":197,"stem":198,"children":199,"page":6},"Users and Access","\u002Fdocs\u002Fcore\u002Fusers-and-access","docs\u002F1.core\u002F5.users-and-access",[200,204,208],{"title":201,"path":202,"stem":203},"Authentication","\u002Fdocs\u002Fcore\u002Fusers-and-access\u002Fauthentication","docs\u002F1.core\u002F5.users-and-access\u002F1.authentication",{"title":205,"path":206,"stem":207},"Access Control","\u002Fdocs\u002Fcore\u002Fusers-and-access\u002Faccess-control","docs\u002F1.core\u002F5.users-and-access\u002F2.access-control",{"title":209,"path":210,"stem":211},"API Keys","\u002Fdocs\u002Fcore\u002Fusers-and-access\u002Fapi-keys","docs\u002F1.core\u002F5.users-and-access\u002F3.api-keys",{"title":213,"icon":6,"path":214,"stem":215,"children":216},"Customization","\u002Fdocs\u002Fcore\u002Fcustomization","docs\u002F1.core\u002F6.customization\u002Findex",[217,218,222,226,230,234,238],{"title":50,"path":214,"stem":215},{"title":219,"path":220,"stem":221},"Admin","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fadmin","docs\u002F1.core\u002F6.customization\u002F1.admin",{"title":223,"path":224,"stem":225},"Custom Fields","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fcustom-fields","docs\u002F1.core\u002F6.customization\u002F2.custom-fields",{"title":227,"path":228,"stem":229},"Custom Pages and Actions","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fcustom-pages-and-actions","docs\u002F1.core\u002F6.customization\u002F3.custom-pages-and-actions",{"title":231,"path":232,"stem":233},"Styles and UI Libraries","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fstyles-and-ui-libraries","docs\u002F1.core\u002F6.customization\u002F4.styles-and-ui-libraries",{"title":235,"path":236,"stem":237},"Rich Text Extensions","\u002Fdocs\u002Fcore\u002Fcustomization\u002Frich-text-extensions","docs\u002F1.core\u002F6.customization\u002F5.rich-text-extensions",{"title":239,"path":240,"stem":241},"Plugins","\u002Fdocs\u002Fcore\u002Fcustomization\u002Fplugins","docs\u002F1.core\u002F6.customization\u002F6.plugins",{"title":243,"icon":6,"path":244,"stem":245,"children":246},"Operations","\u002Fdocs\u002Fcore\u002Foperations","docs\u002F1.core\u002F7.operations\u002Findex",[247,248,266,288,306,310,314],{"title":50,"path":244,"stem":245},{"title":249,"icon":6,"path":250,"stem":251,"children":252},"Email","\u002Fdocs\u002Fcore\u002Foperations\u002Femail","docs\u002F1.core\u002F7.operations\u002F1.email\u002Findex",[253,254,258,262],{"title":50,"path":250,"stem":251},{"title":255,"path":256,"stem":257},"SMTP","\u002Fdocs\u002Fcore\u002Foperations\u002Femail\u002Fsmtp","docs\u002F1.core\u002F7.operations\u002F1.email\u002F1.smtp",{"title":259,"path":260,"stem":261},"Cloudflare","\u002Fdocs\u002Fcore\u002Foperations\u002Femail\u002Fcloudflare","docs\u002F1.core\u002F7.operations\u002F1.email\u002F2.cloudflare",{"title":263,"path":264,"stem":265},"Custom adapter","\u002Fdocs\u002Fcore\u002Foperations\u002Femail\u002Fcustom-adapter","docs\u002F1.core\u002F7.operations\u002F1.email\u002F3.custom-adapter",{"title":267,"icon":6,"path":268,"stem":269,"children":270},"Jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002Findex",[271,272,276,280,284],{"title":50,"path":268,"stem":269},{"title":273,"path":274,"stem":275},"Queue jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Fqueue-jobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F1.queue-jobs",{"title":277,"path":278,"stem":279},"Recurring jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Frecurring-jobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F2.recurring-jobs",{"title":281,"path":282,"stem":283},"The clock","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Fclock","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F3.clock",{"title":285,"path":286,"stem":287},"Manage jobs","\u002Fdocs\u002Fcore\u002Foperations\u002Fjobs\u002Fmanage-jobs","docs\u002F1.core\u002F7.operations\u002F2.jobs\u002F4.manage-jobs",{"title":289,"icon":6,"path":290,"stem":291,"children":292},"Webhooks","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002Findex",[293,294,298,302],{"title":50,"path":290,"stem":291},{"title":295,"path":296,"stem":297},"Send webhooks","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks\u002Fsend-webhooks","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002F1.send-webhooks",{"title":299,"path":300,"stem":301},"Receive webhooks","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks\u002Freceive-webhooks","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002F2.receive-webhooks",{"title":303,"path":304,"stem":305},"Rebuild on publish","\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks\u002Frebuild-on-publish","docs\u002F1.core\u002F7.operations\u002F3.webhooks\u002F3.rebuild-on-publish",{"title":307,"path":308,"stem":309},"Backup and Restore","\u002Fdocs\u002Fcore\u002Foperations\u002Fbackup-and-restore","docs\u002F1.core\u002F7.operations\u002F4.backup-and-restore",{"title":311,"path":312,"stem":313},"Lifecycle Hooks","\u002Fdocs\u002Fcore\u002Foperations\u002Flifecycle-hooks","docs\u002F1.core\u002F7.operations\u002F5.lifecycle-hooks",{"title":315,"path":316,"stem":317},"Upgrades and Schema Changes","\u002Fdocs\u002Fcore\u002Foperations\u002Fupgrades-and-schema-changes","docs\u002F1.core\u002F7.operations\u002F6.upgrades-and-schema-changes",{"title":319,"icon":6,"path":320,"stem":321,"children":322,"page":6},"Reference","\u002Fdocs\u002Fcore\u002Freference","docs\u002F1.core\u002F8.reference",[323,326,344,348],{"title":28,"path":324,"stem":325},"\u002Fdocs\u002Fcore\u002Freference\u002Fconfiguration","docs\u002F1.core\u002F8.reference\u002F1.configuration",{"title":327,"icon":6,"path":328,"stem":329,"children":330},"API","\u002Fdocs\u002Fcore\u002Freference\u002Fapi","docs\u002F1.core\u002F8.reference\u002F2.api\u002Findex",[331,332,336,340],{"title":50,"path":328,"stem":329},{"title":333,"path":334,"stem":335},"Local API","\u002Fdocs\u002Fcore\u002Freference\u002Fapi\u002Flocal-api","docs\u002F1.core\u002F8.reference\u002F2.api\u002F1.local-api",{"title":337,"path":338,"stem":339},"Client","\u002Fdocs\u002Fcore\u002Freference\u002Fapi\u002Fclient","docs\u002F1.core\u002F8.reference\u002F2.api\u002F2.client",{"title":341,"path":342,"stem":343},"HTTP routes","\u002Fdocs\u002Fcore\u002Freference\u002Fapi\u002Fhttp-routes","docs\u002F1.core\u002F8.reference\u002F2.api\u002F3.http-routes",{"title":345,"path":346,"stem":347},"Errors and types","\u002Fdocs\u002Fcore\u002Freference\u002Ferrors-and-types","docs\u002F1.core\u002F8.reference\u002F3.errors-and-types",{"title":349,"path":350,"stem":351},"Package exports","\u002Fdocs\u002Fcore\u002Freference\u002Fpackage-exports","docs\u002F1.core\u002F8.reference\u002F4.package-exports",{"title":353,"icon":6,"path":354,"stem":355,"children":356,"page":6},"Guide","\u002Fdocs\u002Fguide","docs\u002F2.guide",[357,383,400,417],{"title":358,"icon":6,"path":359,"stem":360,"children":361},"Frameworks","\u002Fdocs\u002Fguide\u002Fframeworks","docs\u002F2.guide\u002F1.frameworks\u002Findex",[362,363,367,371,375,379],{"title":50,"path":359,"stem":360},{"title":364,"path":365,"stem":366},"Astro","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fastro","docs\u002F2.guide\u002F1.frameworks\u002F1.astro",{"title":368,"path":369,"stem":370},"Nuxt","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fnuxt","docs\u002F2.guide\u002F1.frameworks\u002F2.nuxt",{"title":372,"path":373,"stem":374},"TanStack Start","\u002Fdocs\u002Fguide\u002Fframeworks\u002Ftanstack-start","docs\u002F2.guide\u002F1.frameworks\u002F3.tanstack-start",{"title":376,"path":377,"stem":378},"Standalone","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fstandalone","docs\u002F2.guide\u002F1.frameworks\u002F4.standalone",{"title":380,"path":381,"stem":382},"Other Frameworks","\u002Fdocs\u002Fguide\u002Fframeworks\u002Fother-frameworks","docs\u002F2.guide\u002F1.frameworks\u002F5.other-frameworks",{"title":384,"icon":6,"path":385,"stem":386,"children":387},"Deployment","\u002Fdocs\u002Fguide\u002Fdeployment","docs\u002F2.guide\u002F2.deployment\u002Findex",[388,389,393,397],{"title":50,"path":385,"stem":386},{"title":390,"path":391,"stem":392},"Node","\u002Fdocs\u002Fguide\u002Fdeployment\u002Fnode","docs\u002F2.guide\u002F2.deployment\u002F1.node",{"title":394,"path":395,"stem":396},"Vercel","\u002Fdocs\u002Fguide\u002Fdeployment\u002Fvercel","docs\u002F2.guide\u002F2.deployment\u002F2.vercel",{"title":259,"path":398,"stem":399},"\u002Fdocs\u002Fguide\u002Fdeployment\u002Fcloudflare","docs\u002F2.guide\u002F2.deployment\u002F3.cloudflare",{"title":401,"icon":6,"path":402,"stem":403,"children":404,"page":6},"Databases and Storage","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage","docs\u002F2.guide\u002F3.databases-and-storage",[405,409,413],{"title":406,"path":407,"stem":408},"Databases","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage\u002Fdatabases","docs\u002F2.guide\u002F3.databases-and-storage\u002F1.databases",{"title":410,"path":411,"stem":412},"Media Storage","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage\u002Fmedia-storage","docs\u002F2.guide\u002F3.databases-and-storage\u002F2.media-storage",{"title":414,"path":415,"stem":416},"Image Providers","\u002Fdocs\u002Fguide\u002Fdatabases-and-storage\u002Fimage-providers","docs\u002F2.guide\u002F3.databases-and-storage\u002F3.image-providers",{"title":418,"icon":6,"path":419,"stem":420,"children":421,"page":6},"Recipes","\u002Fdocs\u002Fguide\u002Frecipes","docs\u002F2.guide\u002F4.recipes",[422,426,430,434,438,442],{"title":423,"path":424,"stem":425},"Seed Content","\u002Fdocs\u002Fguide\u002Frecipes\u002Fseed-content","docs\u002F2.guide\u002F4.recipes\u002F1.seed-content",{"title":427,"path":428,"stem":429},"Tracking and Consent","\u002Fdocs\u002Fguide\u002Frecipes\u002Ftracking-and-consent","docs\u002F2.guide\u002F4.recipes\u002F2.tracking-and-consent",{"title":431,"path":432,"stem":433},"Build a Custom Field","\u002Fdocs\u002Fguide\u002Frecipes\u002Fbuild-a-custom-field","docs\u002F2.guide\u002F4.recipes\u002F3.build-a-custom-field",{"title":435,"path":436,"stem":437},"Write a Plugin","\u002Fdocs\u002Fguide\u002Frecipes\u002Fwrite-a-plugin","docs\u002F2.guide\u002F4.recipes\u002F4.write-a-plugin",{"title":439,"path":440,"stem":441},"Build a Headless Site with Next.js","\u002Fdocs\u002Fguide\u002Frecipes\u002Fbuild-a-headless-site-with-nextjs","docs\u002F2.guide\u002F4.recipes\u002F5.build-a-headless-site-with-nextjs",{"title":443,"path":444,"stem":445},"Troubleshooting","\u002Fdocs\u002Fguide\u002Frecipes\u002Ftroubleshooting","docs\u002F2.guide\u002F4.recipes\u002F6.troubleshooting",{"title":447,"icon":6,"path":448,"stem":449,"children":450,"page":6},"CLI","\u002Fdocs\u002Fcli","docs\u002F3.cli",[451,454,458,462,466,470,474],{"title":50,"path":452,"stem":453},"\u002Fdocs\u002Fcli\u002Foverview","docs\u002F3.cli\u002F1.overview",{"title":455,"path":456,"stem":457},"create-tenoncms","\u002Fdocs\u002Fcli\u002Fcreate-tenoncms","docs\u002F3.cli\u002F2.create-tenoncms",{"title":459,"path":460,"stem":461},"tenon backup","\u002Fdocs\u002Fcli\u002Fbackup","docs\u002F3.cli\u002F3.backup",{"title":463,"path":464,"stem":465},"tenon users","\u002Fdocs\u002Fcli\u002Fusers","docs\u002F3.cli\u002F4.users",{"title":467,"path":468,"stem":469},"tenon media","\u002Fdocs\u002Fcli\u002Fmedia","docs\u002F3.cli\u002F5.media",{"title":471,"path":472,"stem":473},"tenon upgrade","\u002Fdocs\u002Fcli\u002Fupgrade","docs\u002F3.cli\u002F6.upgrade",{"title":475,"path":476,"stem":477},"tenon login","\u002Fdocs\u002Fcli\u002Flogin","docs\u002F3.cli\u002F7.login",{"id":479,"title":295,"body":480,"description":1718,"extension":1719,"links":1720,"meta":1721,"navigation":1398,"path":296,"seo":1722,"stem":297,"__hash__":1723},"docs\u002Fdocs\u002F1.core\u002F7.operations\u002F3.webhooks\u002F1.send-webhooks.md",{"type":481,"value":482,"toc":1705},"minimark",[483,492,649,654,741,744,746,752,973,1019,1024,1037,1041,1044,1249,1252,1255,1261,1276,1295,1301,1304,1310,1318,1577,1586,1590,1600,1656,1662,1666,1669,1684,1688,1701],[484,485,486,487,491],"p",{},"Each key in ",[488,489,490],"code",{},"webhooks"," names one webhook:",[493,494,500],"pre",{"className":495,"code":496,"filename":497,"language":498,"meta":499,"style":499},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","webhooks: {\n  purge: {\n    url: \"https:\u002F\u002Fexample.com\u002Fapi\u002Fpurge\",\n    collections: [\"pages\", \"posts\"],\n    events: [\"update\", \"delete\"],\n    secret: process.env.WEBHOOK_SECRET,\n  },\n},\n","tenon.config.ts","ts","",[488,501,502,517,527,548,582,612,637,643],{"__ignoreMap":499},[503,504,507,510,514],"span",{"class":505,"line":506},"line",1,[503,508,490],{"class":509},"sBMFI",[503,511,513],{"class":512},"sMK4o",":",[503,515,516],{"class":512}," {\n",[503,518,520,523,525],{"class":505,"line":519},2,[503,521,522],{"class":509},"  purge",[503,524,513],{"class":512},[503,526,516],{"class":512},[503,528,530,533,535,538,542,545],{"class":505,"line":529},3,[503,531,532],{"class":509},"    url",[503,534,513],{"class":512},[503,536,537],{"class":512}," \"",[503,539,541],{"class":540},"sfazB","https:\u002F\u002Fexample.com\u002Fapi\u002Fpurge",[503,543,544],{"class":512},"\"",[503,546,547],{"class":512},",\n",[503,549,551,554,556,560,562,565,567,570,572,575,577,580],{"class":505,"line":550},4,[503,552,553],{"class":509},"    collections",[503,555,513],{"class":512},[503,557,559],{"class":558},"swJcz"," [",[503,561,544],{"class":512},[503,563,564],{"class":540},"pages",[503,566,544],{"class":512},[503,568,569],{"class":512},",",[503,571,537],{"class":512},[503,573,574],{"class":540},"posts",[503,576,544],{"class":512},[503,578,579],{"class":558},"]",[503,581,547],{"class":512},[503,583,585,588,590,592,594,597,599,601,603,606,608,610],{"class":505,"line":584},5,[503,586,587],{"class":509},"    events",[503,589,513],{"class":512},[503,591,559],{"class":558},[503,593,544],{"class":512},[503,595,596],{"class":540},"update",[503,598,544],{"class":512},[503,600,569],{"class":512},[503,602,537],{"class":512},[503,604,605],{"class":540},"delete",[503,607,544],{"class":512},[503,609,579],{"class":558},[503,611,547],{"class":512},[503,613,615,618,620,624,627,630,632,635],{"class":505,"line":614},6,[503,616,617],{"class":509},"    secret",[503,619,513],{"class":512},[503,621,623],{"class":622},"sTEyZ"," process",[503,625,626],{"class":512},".",[503,628,629],{"class":622},"env",[503,631,626],{"class":512},[503,633,634],{"class":622},"WEBHOOK_SECRET",[503,636,547],{"class":512},[503,638,640],{"class":505,"line":639},7,[503,641,642],{"class":512},"  },\n",[503,644,646],{"class":505,"line":645},8,[503,647,648],{"class":512},"},\n",[650,651,653],"h2",{"id":652},"options","Options",[655,656,657,672,684,692,702,715,724,733],"field-group",{},[658,659,663,664,667,668,671],"field",{"name":660,"type":661,":required":662},"url","string","true","Where to send the request. It MUST be ",[488,665,666],{},"http"," or ",[488,669,670],{},"https",". Read it from an environment variable: a missing variable fails at startup.",[658,673,676,677,679,680,683],{"name":674,"type":675},"collections","string[]","The collections that send. Without ",[488,678,674],{}," and ",[488,681,682],{},"globals",", every collection and global sends.",[658,685,686,687,667,689,691],{"name":682,"type":675},"The globals that send. Once you set ",[488,688,674],{},[488,690,682],{},", only the listed ones send.",[658,693,696,697,626],{"name":694,"type":695},"events","(\"create\" | \"update\" | \"delete\")[]","The changes that send. Default: all three. See ",[698,699,701],"a",{"href":700},"\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks#events","Events",[658,703,706,707,710,711,626],{"name":704,"type":705},"payload","\"minimal\" | \"full\" | (batch) => unknown","What the body holds. Default: ",[488,708,709],{},"\"minimal\"",". See ",[698,712,714],{"href":713},"#payload","Payload",[658,716,719,720,626],{"name":717,"type":718},"debounce","number","Seconds to collect changes into one request. See ",[698,721,723],{"href":722},"#collect-changes","Collect changes",[658,725,728,729,626],{"name":726,"type":727},"secret","string | string[]","Signs each request. See ",[698,730,732],{"href":731},"#sign-requests","Sign requests",[658,734,737,738,626],{"name":735,"type":736},"headers","Record\u003Cstring, string>","Extra headers, like ",[488,739,740],{},"authorization",[484,742,743],{},"The database stores only the name of the webhook and the body. The URL, the secret and the headers stay in your config, so a URL with a token never reaches the database or the admin.",[650,745,714],{"id":704},[484,747,748,749,751],{},"Every request has the same shape: a list of changes. Without ",[488,750,717],{},", the list holds one change.",[493,753,757],{"className":754,"code":755,"language":756,"meta":499,"style":499},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"changes\": [\n    {\n      \"event\": \"update\",\n      \"collection\": \"posts\",\n      \"id\": \"8f2c…\",\n      \"locale\": \"en\",\n      \"published\": true,\n      \"permalink\": \"\u002Fen\u002Fposts\u002Fnew-slug\",\n      \"previousPermalink\": \"\u002Fen\u002Fposts\u002Fold-slug\",\n      \"at\": \"2026-11-10T12:00:00.000Z\"\n    }\n  ],\n  \"truncated\": false\n}\n","json",[488,758,759,764,780,785,805,824,844,864,878,899,920,940,946,952,967],{"__ignoreMap":499},[503,760,761],{"class":505,"line":506},[503,762,763],{"class":512},"{\n",[503,765,766,769,773,775,777],{"class":505,"line":519},[503,767,768],{"class":512},"  \"",[503,770,772],{"class":771},"spNyl","changes",[503,774,544],{"class":512},[503,776,513],{"class":512},[503,778,779],{"class":512}," [\n",[503,781,782],{"class":505,"line":529},[503,783,784],{"class":512},"    {\n",[503,786,787,790,793,795,797,799,801,803],{"class":505,"line":550},[503,788,789],{"class":512},"      \"",[503,791,792],{"class":509},"event",[503,794,544],{"class":512},[503,796,513],{"class":512},[503,798,537],{"class":512},[503,800,596],{"class":540},[503,802,544],{"class":512},[503,804,547],{"class":512},[503,806,807,809,812,814,816,818,820,822],{"class":505,"line":584},[503,808,789],{"class":512},[503,810,811],{"class":509},"collection",[503,813,544],{"class":512},[503,815,513],{"class":512},[503,817,537],{"class":512},[503,819,574],{"class":540},[503,821,544],{"class":512},[503,823,547],{"class":512},[503,825,826,828,831,833,835,837,840,842],{"class":505,"line":614},[503,827,789],{"class":512},[503,829,830],{"class":509},"id",[503,832,544],{"class":512},[503,834,513],{"class":512},[503,836,537],{"class":512},[503,838,839],{"class":540},"8f2c…",[503,841,544],{"class":512},[503,843,547],{"class":512},[503,845,846,848,851,853,855,857,860,862],{"class":505,"line":639},[503,847,789],{"class":512},[503,849,850],{"class":509},"locale",[503,852,544],{"class":512},[503,854,513],{"class":512},[503,856,537],{"class":512},[503,858,859],{"class":540},"en",[503,861,544],{"class":512},[503,863,547],{"class":512},[503,865,866,868,871,873,875],{"class":505,"line":645},[503,867,789],{"class":512},[503,869,870],{"class":509},"published",[503,872,544],{"class":512},[503,874,513],{"class":512},[503,876,877],{"class":512}," true,\n",[503,879,881,883,886,888,890,892,895,897],{"class":505,"line":880},9,[503,882,789],{"class":512},[503,884,885],{"class":509},"permalink",[503,887,544],{"class":512},[503,889,513],{"class":512},[503,891,537],{"class":512},[503,893,894],{"class":540},"\u002Fen\u002Fposts\u002Fnew-slug",[503,896,544],{"class":512},[503,898,547],{"class":512},[503,900,902,904,907,909,911,913,916,918],{"class":505,"line":901},10,[503,903,789],{"class":512},[503,905,906],{"class":509},"previousPermalink",[503,908,544],{"class":512},[503,910,513],{"class":512},[503,912,537],{"class":512},[503,914,915],{"class":540},"\u002Fen\u002Fposts\u002Fold-slug",[503,917,544],{"class":512},[503,919,547],{"class":512},[503,921,923,925,928,930,932,934,937],{"class":505,"line":922},11,[503,924,789],{"class":512},[503,926,927],{"class":509},"at",[503,929,544],{"class":512},[503,931,513],{"class":512},[503,933,537],{"class":512},[503,935,936],{"class":540},"2026-11-10T12:00:00.000Z",[503,938,939],{"class":512},"\"\n",[503,941,943],{"class":505,"line":942},12,[503,944,945],{"class":512},"    }\n",[503,947,949],{"class":505,"line":948},13,[503,950,951],{"class":512},"  ],\n",[503,953,955,957,960,962,964],{"class":505,"line":954},14,[503,956,768],{"class":512},[503,958,959],{"class":771},"truncated",[503,961,544],{"class":512},[503,963,513],{"class":512},[503,965,966],{"class":512}," false\n",[503,968,970],{"class":505,"line":969},15,[503,971,972],{"class":512},"}\n",[974,975,976,988,1009],"ul",{},[977,978,979,980,983,984,679,986,626],"li",{},"A global has ",[488,981,982],{},"global"," instead of ",[488,985,811],{},[488,987,830],{},[977,989,990,992,993,995,996,999,1000,1003,1004,1006,1007,626],{},[488,991,885],{}," is the public URL after the change, and ",[488,994,906],{}," the one before. A slug change moves the URL, so a cache purge needs both. They are ",[488,997,998],{},"null"," for a collection without a ",[698,1001,885],{"href":1002},"\u002Fdocs\u002Fcore\u002Fbuilding-your-site\u002Fpages-and-seo#permalinks",". On a delete, ",[488,1005,885],{}," is ",[488,1008,998],{},[977,1010,1011,1006,1013,1015,1016,626],{},[488,1012,850],{},[488,1014,998],{}," without ",[698,1017,1018],{"href":168},"localization",[1020,1021,1023],"h3",{"id":1022},"full-documents","Full documents",[484,1025,1026,1029,1030,679,1033,1036],{},[488,1027,1028],{},"payload: \"full\""," adds ",[488,1031,1032],{},"doc",[488,1034,1035],{},"previousDoc"," to each change: the stored documents, with relations as ids.",[1020,1038,1040],{"id":1039},"your-own-format","Your own format",[484,1042,1043],{},"A function gets the batch with the full changes and returns the body. Use it for a service that expects its own JSON:",[493,1045,1047],{"className":495,"code":1046,"filename":497,"language":498,"meta":499,"style":499},"webhooks: {\n  slack: {\n    url: process.env.SLACK_WEBHOOK_URL!,\n    collections: [\"posts\"],\n    events: [\"create\"],\n    payload: ({ changes }) => ({\n      text: changes.map((c) => `New post: ${c.doc?.title} ${c.permalink}`).join(\"\\n\"),\n    }),\n  },\n},\n",[488,1048,1049,1057,1066,1086,1104,1123,1148,1232,1241,1245],{"__ignoreMap":499},[503,1050,1051,1053,1055],{"class":505,"line":506},[503,1052,490],{"class":509},[503,1054,513],{"class":512},[503,1056,516],{"class":512},[503,1058,1059,1062,1064],{"class":505,"line":519},[503,1060,1061],{"class":509},"  slack",[503,1063,513],{"class":512},[503,1065,516],{"class":512},[503,1067,1068,1070,1072,1074,1076,1078,1080,1083],{"class":505,"line":529},[503,1069,532],{"class":509},[503,1071,513],{"class":512},[503,1073,623],{"class":622},[503,1075,626],{"class":512},[503,1077,629],{"class":622},[503,1079,626],{"class":512},[503,1081,1082],{"class":622},"SLACK_WEBHOOK_URL",[503,1084,1085],{"class":512},"!,\n",[503,1087,1088,1090,1092,1094,1096,1098,1100,1102],{"class":505,"line":550},[503,1089,553],{"class":509},[503,1091,513],{"class":512},[503,1093,559],{"class":558},[503,1095,544],{"class":512},[503,1097,574],{"class":540},[503,1099,544],{"class":512},[503,1101,579],{"class":558},[503,1103,547],{"class":512},[503,1105,1106,1108,1110,1112,1114,1117,1119,1121],{"class":505,"line":584},[503,1107,587],{"class":509},[503,1109,513],{"class":512},[503,1111,559],{"class":558},[503,1113,544],{"class":512},[503,1115,1116],{"class":540},"create",[503,1118,544],{"class":512},[503,1120,579],{"class":558},[503,1122,547],{"class":512},[503,1124,1125,1128,1130,1133,1137,1140,1143,1146],{"class":505,"line":614},[503,1126,1127],{"class":509},"    payload",[503,1129,513],{"class":512},[503,1131,1132],{"class":512}," ({",[503,1134,1136],{"class":1135},"sHdIc"," changes",[503,1138,1139],{"class":512}," })",[503,1141,1142],{"class":771}," =>",[503,1144,1145],{"class":558}," (",[503,1147,763],{"class":512},[503,1149,1150,1153,1155,1157,1159,1163,1166,1168,1171,1174,1176,1179,1182,1185,1187,1189,1191,1194,1197,1200,1203,1205,1207,1209,1212,1214,1216,1219,1221,1223,1226,1228,1230],{"class":505,"line":639},[503,1151,1152],{"class":558},"      text",[503,1154,513],{"class":512},[503,1156,1136],{"class":622},[503,1158,626],{"class":512},[503,1160,1162],{"class":1161},"s2Zo4","map",[503,1164,1165],{"class":558},"(",[503,1167,1165],{"class":512},[503,1169,1170],{"class":1135},"c",[503,1172,1173],{"class":512},")",[503,1175,1142],{"class":771},[503,1177,1178],{"class":512}," `",[503,1180,1181],{"class":540},"New post: ",[503,1183,1184],{"class":512},"${",[503,1186,1170],{"class":622},[503,1188,626],{"class":512},[503,1190,1032],{"class":622},[503,1192,1193],{"class":512},"?.",[503,1195,1196],{"class":622},"title",[503,1198,1199],{"class":512},"}",[503,1201,1202],{"class":512}," ${",[503,1204,1170],{"class":622},[503,1206,626],{"class":512},[503,1208,885],{"class":622},[503,1210,1211],{"class":512},"}`",[503,1213,1173],{"class":558},[503,1215,626],{"class":512},[503,1217,1218],{"class":1161},"join",[503,1220,1165],{"class":558},[503,1222,544],{"class":512},[503,1224,1225],{"class":622},"\\n",[503,1227,544],{"class":512},[503,1229,1173],{"class":558},[503,1231,547],{"class":512},[503,1233,1234,1237,1239],{"class":505,"line":645},[503,1235,1236],{"class":512},"    }",[503,1238,1173],{"class":558},[503,1240,547],{"class":512},[503,1242,1243],{"class":505,"line":880},[503,1244,642],{"class":512},[503,1246,1247],{"class":505,"line":901},[503,1248,648],{"class":512},[484,1250,1251],{},"The function runs when the job sends, not during the write. It MAY be async. If it throws, the attempt fails and retries.",[650,1253,723],{"id":1254},"collect-changes",[484,1256,1257,1258,1260],{},"An import or a cascade delete can change hundreds of documents at once. A deploy hook should run once, not for each of them. ",[488,1259,717],{}," collects the changes into one request:",[1262,1263,1264,1270,1273],"ol",{},[977,1265,1266,1267,1269],{},"The first change opens a window of ",[488,1268,717],{}," seconds.",[977,1271,1272],{},"Every change in the window joins the same request.",[977,1274,1275],{},"When the window ends, the next clock tick sends it.",[974,1277,1278,1284,1292],{},[977,1279,1280,1281,1283],{},"The window does not move. Constant editing never holds a deploy back for more than ",[488,1282,717],{}," plus one tick.",[977,1285,1286,1287,1006,1289,1291],{},"A request holds at most 1000 changes. Past that, the rest are dropped and ",[488,1288,959],{},[488,1290,662],{},". Treat everything as changed then: rebuild the site, or purge the whole cache.",[977,1293,1294],{},"A change that arrives while the request is sending opens a new window.",[484,1296,1297,1298,1300],{},"Without ",[488,1299,717],{},", every change sends its own request. An import of 500 documents sends 500 requests.",[650,1302,732],{"id":1303},"sign-requests",[484,1305,1306,1307,1309],{},"Without a ",[488,1308,726],{},", requests are not signed. A deploy hook URL is a secret of its own. When the receiver is your own code, set a secret so it can check that the request comes from Tenon.",[1311,1312,1313,1314,626],"tip",{},"Does the receiver run in the same app as Tenon? Then a hook is simpler than a webhook. See ",[698,1315,1317],{"href":1316},"\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks#code-instead-of-a-request","Code instead of a request",[1262,1319,1320,1345,1354],{},[977,1321,1322,1323],{},"Create a secret of at least 24 bytes:",[493,1324,1328],{"className":1325,"code":1326,"language":1327,"meta":499,"style":499},"language-sh shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","openssl rand -base64 32\n","sh",[488,1329,1330],{"__ignoreMap":499},[503,1331,1332,1335,1338,1341],{"class":505,"line":506},[503,1333,1334],{"class":509},"openssl",[503,1336,1337],{"class":540}," rand",[503,1339,1340],{"class":540}," -base64",[503,1342,1344],{"class":1343},"sbssI"," 32\n",[977,1346,1347,1348,1350,1351,1353],{},"Set it as ",[488,1349,634],{}," on both sides, and pass it as ",[488,1352,726],{}," in the webhook.",[977,1355,1356,1357,513,1360],{},"Check each request in the receiver with ",[488,1358,1359],{},"verifyWebhook()",[493,1361,1364],{"className":495,"code":1362,"filename":1363,"language":498,"meta":499,"style":499},"import { verifyWebhook } from \"tenoncms\";\n\nexport async function POST(request: Request) {\n  if (!(await verifyWebhook(request, process.env.WEBHOOK_SECRET!))) {\n    return new Response(null, { status: 401 });\n  }\n  const { changes, truncated } = await request.json();\n  \u002F\u002F Purge `permalink` and `previousPermalink` of each change, or everything when `truncated`.\n  return new Response(null, { status: 204 });\n}\n","server\u002Fapi\u002Fpurge.ts",[488,1365,1366,1394,1400,1428,1468,1500,1505,1539,1545,1573],{"__ignoreMap":499},[503,1367,1368,1372,1375,1378,1381,1384,1386,1389,1391],{"class":505,"line":506},[503,1369,1371],{"class":1370},"s7zQu","import",[503,1373,1374],{"class":512}," {",[503,1376,1377],{"class":622}," verifyWebhook",[503,1379,1380],{"class":512}," }",[503,1382,1383],{"class":1370}," from",[503,1385,537],{"class":512},[503,1387,1388],{"class":540},"tenoncms",[503,1390,544],{"class":512},[503,1392,1393],{"class":512},";\n",[503,1395,1396],{"class":505,"line":519},[503,1397,1399],{"emptyLinePlaceholder":1398},true,"\n",[503,1401,1402,1405,1408,1411,1414,1416,1419,1421,1424,1426],{"class":505,"line":529},[503,1403,1404],{"class":1370},"export",[503,1406,1407],{"class":771}," async",[503,1409,1410],{"class":771}," function",[503,1412,1413],{"class":1161}," POST",[503,1415,1165],{"class":512},[503,1417,1418],{"class":1135},"request",[503,1420,513],{"class":512},[503,1422,1423],{"class":509}," Request",[503,1425,1173],{"class":512},[503,1427,516],{"class":512},[503,1429,1430,1433,1435,1438,1440,1443,1445,1447,1449,1451,1453,1455,1457,1459,1461,1463,1466],{"class":505,"line":550},[503,1431,1432],{"class":1370},"  if",[503,1434,1145],{"class":558},[503,1436,1437],{"class":512},"!",[503,1439,1165],{"class":558},[503,1441,1442],{"class":1370},"await",[503,1444,1377],{"class":1161},[503,1446,1165],{"class":558},[503,1448,1418],{"class":622},[503,1450,569],{"class":512},[503,1452,623],{"class":622},[503,1454,626],{"class":512},[503,1456,629],{"class":622},[503,1458,626],{"class":512},[503,1460,634],{"class":622},[503,1462,1437],{"class":512},[503,1464,1465],{"class":558},"))) ",[503,1467,763],{"class":512},[503,1469,1470,1473,1476,1479,1481,1484,1486,1489,1491,1494,1496,1498],{"class":505,"line":584},[503,1471,1472],{"class":1370},"    return",[503,1474,1475],{"class":512}," new",[503,1477,1478],{"class":1161}," Response",[503,1480,1165],{"class":558},[503,1482,1483],{"class":512},"null,",[503,1485,1374],{"class":512},[503,1487,1488],{"class":558}," status",[503,1490,513],{"class":512},[503,1492,1493],{"class":1343}," 401",[503,1495,1380],{"class":512},[503,1497,1173],{"class":558},[503,1499,1393],{"class":512},[503,1501,1502],{"class":505,"line":614},[503,1503,1504],{"class":512},"  }\n",[503,1506,1507,1510,1512,1514,1516,1519,1521,1524,1527,1530,1532,1534,1537],{"class":505,"line":639},[503,1508,1509],{"class":771},"  const",[503,1511,1374],{"class":512},[503,1513,1136],{"class":622},[503,1515,569],{"class":512},[503,1517,1518],{"class":622}," truncated",[503,1520,1380],{"class":512},[503,1522,1523],{"class":512}," =",[503,1525,1526],{"class":1370}," await",[503,1528,1529],{"class":622}," request",[503,1531,626],{"class":512},[503,1533,756],{"class":1161},[503,1535,1536],{"class":558},"()",[503,1538,1393],{"class":512},[503,1540,1541],{"class":505,"line":645},[503,1542,1544],{"class":1543},"sHwdD","  \u002F\u002F Purge `permalink` and `previousPermalink` of each change, or everything when `truncated`.\n",[503,1546,1547,1550,1552,1554,1556,1558,1560,1562,1564,1567,1569,1571],{"class":505,"line":880},[503,1548,1549],{"class":1370},"  return",[503,1551,1475],{"class":512},[503,1553,1478],{"class":1161},[503,1555,1165],{"class":558},[503,1557,1483],{"class":512},[503,1559,1374],{"class":512},[503,1561,1488],{"class":558},[503,1563,513],{"class":512},[503,1565,1566],{"class":1343}," 204",[503,1568,1380],{"class":512},[503,1570,1173],{"class":558},[503,1572,1393],{"class":512},[503,1574,1575],{"class":505,"line":901},[503,1576,972],{"class":512},[484,1578,1579,1581,1582,1585],{},[488,1580,1359],{}," reads a copy of the request, so you can still read the body after it. It refuses a request whose time is more than 5 minutes off. ",[488,1583,1584],{},"{ tolerance: 600 }"," changes that, in seconds.",[1020,1587,1589],{"id":1588},"verify-on-another-stack","Verify on another stack",[484,1591,1592,1593,1599],{},"The signature follows ",[698,1594,1598],{"href":1595,"rel":1596},"https:\u002F\u002Fwww.standardwebhooks.com\u002F",[1597],"nofollow","Standard Webhooks",". A receiver that does not run JavaScript can check it with one of their libraries:",[1601,1602,1603,1616],"table",{},[1604,1605,1606],"thead",{},[1607,1608,1609,1613],"tr",{},[1610,1611,1612],"th",{},"Header",[1610,1614,1615],{},"Value",[1617,1618,1619,1630,1640],"tbody",{},[1607,1620,1621,1627],{},[1622,1623,1624],"td",{},[488,1625,1626],{},"webhook-id",[1622,1628,1629],{},"The id of the delivery",[1607,1631,1632,1637],{},[1622,1633,1634],{},[488,1635,1636],{},"webhook-timestamp",[1622,1638,1639],{},"When it was sent, in Unix seconds",[1607,1641,1642,1647],{},[1622,1643,1644],{},[488,1645,1646],{},"webhook-signature",[1622,1648,1649,1652,1653],{},[488,1650,1651],{},"v1,"," and the base64 HMAC-SHA256 of ",[488,1654,1655],{},"id.timestamp.body",[484,1657,1658,1659,626],{},"A secret is either a plain string or a Standard Webhooks secret that starts with ",[488,1660,1661],{},"whsec_",[1020,1663,1665],{"id":1664},"change-the-secret","Change the secret",[484,1667,1668],{},"A list signs each request with every secret in it. To change a secret without downtime:",[1262,1670,1671,1678,1681],{},[977,1672,1673,1674,1677],{},"Set ",[488,1675,1676],{},"secret: [next, current]"," and deploy.",[977,1679,1680],{},"Switch the receiver to the new secret.",[977,1682,1683],{},"Remove the old secret from the list.",[650,1685,1687],{"id":1686},"related-resources","Related resources",[974,1689,1690,1696],{},[977,1691,1692,1695],{},[698,1693,289],{"href":1694},"\u002Fdocs\u002Fcore\u002Foperations\u002Fwebhooks#delivery",": retries and timeouts of a delivery.",[977,1697,1698,1700],{},[698,1699,299],{"href":300},": the other direction, a service that sends to Tenon.",[1702,1703,1704],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}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 pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}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 .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sHdIc, html code.shiki .sHdIc{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--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 .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}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 .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}",{"title":499,"searchDepth":519,"depth":519,"links":1706},[1707,1708,1712,1713,1717],{"id":652,"depth":519,"text":653},{"id":704,"depth":519,"text":714,"children":1709},[1710,1711],{"id":1022,"depth":529,"text":1023},{"id":1039,"depth":529,"text":1040},{"id":1254,"depth":519,"text":723},{"id":1303,"depth":519,"text":732,"children":1714},[1715,1716],{"id":1588,"depth":529,"text":1589},{"id":1664,"depth":529,"text":1665},{"id":1686,"depth":519,"text":1687},"Pick where a webhook goes, which changes send it, what its body holds and how it is signed.","md",null,{},{"title":295,"description":1718},"YaytHHiA5U3WYlEOFXIEucK2hCpm6ncbMkhw-ZpWsT8",[1725,1727],{"title":50,"path":290,"stem":291,"description":1726,"children":-1},"Tell other services when published content changes.",{"title":299,"path":300,"stem":301,"description":1728,"children":-1},"Let another service, like a shop system, change content in Tenon.",1795884723343]