[{"data":1,"prerenderedAt":2716},["ShallowReactive",2],{"navigation_docs":3,"-docs-core-reference-api-http-routes":478,"-docs-core-reference-api-http-routes-surround":2711},[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":341,"body":480,"description":2704,"extension":2705,"links":2706,"meta":2707,"navigation":2708,"path":342,"seo":2709,"stem":343,"__hash__":2710},"docs\u002Fdocs\u002F1.core\u002F8.reference\u002F2.api\u002F3.http-routes.md",{"type":481,"value":482,"toc":2686},"minimark",[483,500,505,589,598,602,932,989,993,1184,1188,1195,1318,1321,1332,1606,1614,1618,1643,1925,1936,1939,2077,2086,2090,2104,2250,2256,2260,2458,2461,2465,2489,2495,2543,2547,2653,2667,2671],[484,485,486,487,491,492,496,497,499],"p",{},"Tenon serves its API under ",[488,489,490],"code",{},"\u002F_tenon",", in your app. The ",[493,494,495],"a",{"href":338},"client"," calls these routes for you. The paths below are relative to ",[488,498,490],{},".",[501,502,504],"h2",{"id":503},"who-may-call-a-route","Who may call a route",[506,507,508,521],"table",{},[509,510,511],"thead",{},[512,513,514,518],"tr",{},[515,516,517],"th",{},"Caller",[515,519,520],{},"Meaning",[522,523,524,536,554,568,577],"tbody",{},[512,525,526,533],{},[527,528,529],"td",{},[530,531,532],"strong",{},"Public",[527,534,535],{},"Anyone. No session is looked up",[512,537,538,543],{},[527,539,540],{},[530,541,542],{},"Content",[527,544,545,546,549,550,553],{},"Anyone. The ",[493,547,548],{"href":206},"access rules"," decide. Writes pass the CSRF check. An ",[493,551,552],{"href":210},"API key"," works with a grant for the target",[512,555,556,561],{},[527,557,558],{},[530,559,560],{},"Session",[527,562,563,564,567],{},"A signed-in user. An API key gets ",[488,565,566],{},"403",", except where noted",[512,569,570,574],{},[527,571,572],{},[530,573,219],{},[527,575,576],{},"A signed-in admin",[512,578,579,584],{},[527,580,581],{},[530,582,583],{},"Secret",[527,585,586],{},[488,587,588],{},"Authorization: Bearer \u003Cjobs.secret>",[484,590,591,592,595,596,499],{},"The CSRF check refuses a write from another origin with a form or text body. A JSON body, a ZIP body and a request with ",[488,593,594],{},"x-api-key"," pass. A refused request answers ",[488,597,566],{},[501,599,601],{"id":600},"collections","Collections",[506,603,604,619],{},[509,605,606],{},[512,607,608,611,614,616],{},[515,609,610],{},"Method",[515,612,613],{},"Path",[515,615,517],{},[515,617,618],{},"What it does",[522,620,621,642,662,681,699,715,731,747,763,783,800,818,842,861,877,895,913],{},[512,622,623,628,633,635],{},[527,624,625],{},[488,626,627],{},"GET",[527,629,630],{},[488,631,632],{},"\u002Fcollections\u002F:name",[527,634,542],{},[527,636,637,638,641],{},"Lists documents. Every other query key is a ",[488,639,640],{},"where"," filter",[512,643,644,648,653,655],{},[527,645,646],{},[488,647,627],{},[527,649,650],{},[488,651,652],{},"\u002Fcollections\u002F:name\u002F:id",[527,654,542],{},[527,656,657,658,661],{},"Reads one document. ",[488,659,660],{},"404"," when it is missing",[512,663,664,669,673,675],{},[527,665,666],{},[488,667,668],{},"POST",[527,670,671],{},[488,672,632],{},[527,674,542],{},[527,676,677,678],{},"Creates a document. ",[488,679,680],{},"201",[512,682,683,687,692,694],{},[527,684,685],{},[488,686,668],{},[527,688,689],{},[488,690,691],{},"\u002Fcollections\u002F:name\u002Fdraft",[527,693,542],{},[527,695,696,697],{},"Creates a draft. ",[488,698,680],{},[512,700,701,706,710,712],{},[527,702,703],{},[488,704,705],{},"PUT",[527,707,708],{},[488,709,652],{},[527,711,542],{},[527,713,714],{},"Saves and publishes",[512,716,717,721,726,728],{},[527,718,719],{},[488,720,705],{},[527,722,723],{},[488,724,725],{},"\u002Fcollections\u002F:name\u002F:id\u002Fdraft",[527,727,542],{},[527,729,730],{},"Saves a draft",[512,732,733,737,742,744],{},[527,734,735],{},[488,736,668],{},[527,738,739],{},[488,740,741],{},"\u002Fcollections\u002F:name\u002F:id\u002Fpublish",[527,743,542],{},[527,745,746],{},"Publishes the draft",[512,748,749,753,758,760],{},[527,750,751],{},[488,752,668],{},[527,754,755],{},[488,756,757],{},"\u002Fcollections\u002F:name\u002F:id\u002Funpublish",[527,759,542],{},[527,761,762],{},"Takes the document offline",[512,764,765,770,774,776],{},[527,766,767],{},[488,768,769],{},"DELETE",[527,771,772],{},[488,773,725],{},[527,775,542],{},[527,777,778,779,782],{},"Discards the draft. ",[488,780,781],{},"204"," when it deleted a document that was never published",[512,784,785,789,793,795],{},[527,786,787],{},[488,788,769],{},[527,790,791],{},[488,792,652],{},[527,794,542],{},[527,796,797,798],{},"Deletes. ",[488,799,781],{},[512,801,802,806,811,813],{},[527,803,804],{},[488,805,668],{},[527,807,808],{},[488,809,810],{},"\u002Fcollections\u002F:name\u002F:id\u002Fduplicate",[527,812,542],{},[527,814,815,816],{},"Copies a document. ",[488,817,680],{},[512,819,820,824,829,831],{},[527,821,822],{},[488,823,668],{},[527,825,826],{},[488,827,828],{},"\u002Fcollections\u002F:name\u002F:id\u002Fschedule",[527,830,542],{},[527,832,833,834,837,838,841],{},"Body ",[488,835,836],{},"{ action, at, locale? }",". Returns ",[488,839,840],{},"{ id }"," of the job",[512,843,844,848,853,855],{},[527,845,846],{},[488,847,668],{},[527,849,850],{},[488,851,852],{},"\u002Fcollections\u002F:name\u002F:id\u002Flocales\u002F:to\u002Fcopy",[527,854,542],{},[527,856,833,857,860],{},[488,858,859],{},"{ from }",". Copies one language into another",[512,862,863,867,872,874],{},[527,864,865],{},[488,866,769],{},[527,868,869],{},[488,870,871],{},"\u002Fcollections\u002F:name\u002F:id\u002Flocales\u002F:locale",[527,873,542],{},[527,875,876],{},"Removes one language",[512,878,879,883,888,890],{},[527,880,881],{},[488,882,668],{},[527,884,885],{},[488,886,887],{},"\u002Fcollections\u002F:name\u002F:id\u002Fstructure",[527,889,542],{},[527,891,833,892],{},[488,893,894],{},"{ sync, locale?, dryRun? }",[512,896,897,901,906,908],{},[527,898,899],{},[488,900,668],{},[527,902,903],{},[488,904,905],{},"\u002Fcollections\u002F:name\u002Fstructure\u002Fapply",[527,907,542],{},[527,909,833,910],{},[488,911,912],{},"{ dryRun? }",[512,914,915,919,924,926],{},[527,916,917],{},[488,918,668],{},[527,920,921],{},[488,922,923],{},"\u002Fcollections\u002F:name\u002Fpreview-url",[527,925,560],{},[527,927,928,929],{},"The preview URL of unsaved data. Returns ",[488,930,931],{},"{ url }",[484,933,934,935,939,940,943,944,943,947,943,950,943,953,943,956,943,959,962,963,966,967,962,969,971,972,975,976,943,979,943,982,962,985,988],{},"The read routes take the ",[493,936,938],{"href":937},"\u002Fdocs\u002Fcore\u002Freference\u002Fapi\u002Flocal-api#read-options","read options"," as query parameters: ",[488,941,942],{},"limit",", ",[488,945,946],{},"populate",[488,948,949],{},"depth",[488,951,952],{},"select",[488,954,955],{},"locale",[488,957,958],{},"fallback",[488,960,961],{},"permalink"," and ",[488,964,965],{},"alternates",". ",[488,968,946],{},[488,970,952],{}," take dot paths, like ",[488,973,974],{},"select=title,seo.title",". The write routes take ",[488,977,978],{},"?locale=",[488,980,981],{},"?updatedAt=",[488,983,984],{},"?allowBrokenLinks=true",[488,986,987],{},"?all=true"," where the local method has the option.",[501,990,992],{"id":991},"globals","Globals",[506,994,995,1007],{},[509,996,997],{},[512,998,999,1001,1003,1005],{},[515,1000,610],{},[515,1002,613],{},[515,1004,517],{},[515,1006,618],{},[522,1008,1009,1025,1039,1054,1069,1085,1100,1117,1134,1149,1166],{},[512,1010,1011,1015,1020,1022],{},[527,1012,1013],{},[488,1014,627],{},[527,1016,1017],{},[488,1018,1019],{},"\u002Fglobals\u002F:name",[527,1021,542],{},[527,1023,1024],{},"Reads a global",[512,1026,1027,1031,1035,1037],{},[527,1028,1029],{},[488,1030,705],{},[527,1032,1033],{},[488,1034,1019],{},[527,1036,542],{},[527,1038,714],{},[512,1040,1041,1045,1050,1052],{},[527,1042,1043],{},[488,1044,705],{},[527,1046,1047],{},[488,1048,1049],{},"\u002Fglobals\u002F:name\u002Fdraft",[527,1051,542],{},[527,1053,730],{},[512,1055,1056,1060,1065,1067],{},[527,1057,1058],{},[488,1059,668],{},[527,1061,1062],{},[488,1063,1064],{},"\u002Fglobals\u002F:name\u002Fpublish",[527,1066,542],{},[527,1068,746],{},[512,1070,1071,1075,1080,1082],{},[527,1072,1073],{},[488,1074,668],{},[527,1076,1077],{},[488,1078,1079],{},"\u002Fglobals\u002F:name\u002Funpublish",[527,1081,542],{},[527,1083,1084],{},"Takes the global offline",[512,1086,1087,1091,1095,1097],{},[527,1088,1089],{},[488,1090,769],{},[527,1092,1093],{},[488,1094,1049],{},[527,1096,542],{},[527,1098,1099],{},"Discards the draft",[512,1101,1102,1106,1111,1113],{},[527,1103,1104],{},[488,1105,668],{},[527,1107,1108],{},[488,1109,1110],{},"\u002Fglobals\u002F:name\u002Fschedule",[527,1112,542],{},[527,1114,833,1115],{},[488,1116,836],{},[512,1118,1119,1123,1128,1130],{},[527,1120,1121],{},[488,1122,668],{},[527,1124,1125],{},[488,1126,1127],{},"\u002Fglobals\u002F:name\u002Flocales\u002F:to\u002Fcopy",[527,1129,542],{},[527,1131,833,1132],{},[488,1133,859],{},[512,1135,1136,1140,1145,1147],{},[527,1137,1138],{},[488,1139,769],{},[527,1141,1142],{},[488,1143,1144],{},"\u002Fglobals\u002F:name\u002Flocales\u002F:locale",[527,1146,542],{},[527,1148,876],{},[512,1150,1151,1155,1160,1162],{},[527,1152,1153],{},[488,1154,668],{},[527,1156,1157],{},[488,1158,1159],{},"\u002Fglobals\u002F:name\u002Fstructure",[527,1161,542],{},[527,1163,833,1164],{},[488,1165,894],{},[512,1167,1168,1172,1177,1179],{},[527,1169,1170],{},[488,1171,668],{},[527,1173,1174],{},[488,1175,1176],{},"\u002Fglobals\u002F:name\u002Fpreview-url",[527,1178,560],{},[527,1180,1181,1182],{},"Returns ",[488,1183,931],{},[501,1185,1187],{"id":1186},"versions-and-locks","Versions and locks",[484,1189,1190,1191,1194],{},"These need a session and the ",[488,1192,1193],{},"update"," rule of the document or global.",[506,1196,1197,1207],{},[509,1198,1199],{},[512,1200,1201,1203,1205],{},[515,1202,610],{},[515,1204,613],{},[515,1206,618],{},[522,1208,1209,1223,1237,1251,1268,1281,1301],{},[512,1210,1211,1215,1220],{},[527,1212,1213],{},[488,1214,627],{},[527,1216,1217],{},[488,1218,1219],{},"\u002Fcollections\u002F:name\u002F:id\u002Fversions",[527,1221,1222],{},"Lists the versions",[512,1224,1225,1229,1234],{},[527,1226,1227],{},[488,1228,627],{},[527,1230,1231],{},[488,1232,1233],{},"\u002Fcollections\u002F:name\u002F:id\u002Fversions\u002F:version",[527,1235,1236],{},"Reads one version",[512,1238,1239,1243,1248],{},[527,1240,1241],{},[488,1242,668],{},[527,1244,1245],{},[488,1246,1247],{},"\u002Fcollections\u002F:name\u002F:id\u002Fversions\u002F:version\u002Frestore",[527,1249,1250],{},"Makes the version the draft",[512,1252,1253,1257,1265],{},[527,1254,1255],{},[488,1256,627],{},[527,1258,1259,943,1262],{},[488,1260,1261],{},"\u002Fglobals\u002F:name\u002Fversions",[488,1263,1264],{},"\u002Fglobals\u002F:name\u002Fversions\u002F:version",[527,1266,1267],{},"The same for a global",[512,1269,1270,1274,1279],{},[527,1271,1272],{},[488,1273,668],{},[527,1275,1276],{},[488,1277,1278],{},"\u002Fglobals\u002F:name\u002Fversions\u002F:version\u002Frestore",[527,1280,1267],{},[512,1282,1283,1287,1295],{},[527,1284,1285],{},[488,1286,668],{},[527,1288,1289,943,1292],{},[488,1290,1291],{},"\u002Fcollections\u002F:name\u002F:id\u002Flock",[488,1293,1294],{},"\u002Fglobals\u002F:name\u002Flock",[527,1296,833,1297,1300],{},[488,1298,1299],{},"{ takeover? }",". Takes or renews the edit lock for 90 seconds",[512,1302,1303,1307,1313],{},[527,1304,1305],{},[488,1306,769],{},[527,1308,1309,943,1311],{},[488,1310,1291],{},[488,1312,1294],{},[527,1314,1315,1316],{},"Frees your lock. ",[488,1317,781],{},[501,1319,116],{"id":1320},"media",[484,1322,1323,1324,1327,1328,1331],{},"These exist while the ",[493,1325,1326],{"href":117},"media library"," is on. ",[488,1329,1330],{},"media.access"," decides who may call the content routes.",[506,1333,1334,1346],{},[509,1335,1336],{},[512,1337,1338,1340,1342,1344],{},[515,1339,610],{},[515,1341,613],{},[515,1343,517],{},[515,1345,618],{},[522,1347,1348,1368,1391,1410,1426,1442,1463,1479,1500,1516,1536,1554,1573,1589],{},[512,1349,1350,1354,1359,1361],{},[527,1351,1352],{},[488,1353,627],{},[527,1355,1356],{},[488,1357,1358],{},"\u002Fmedia\u002Ffiles\u002F:key",[527,1360,532],{},[527,1362,1363,1364,1367],{},"The original file. Checks ",[488,1365,1366],{},"media.access.read"," when it is set",[512,1369,1370,1374,1379,1381],{},[527,1371,1372],{},[488,1373,627],{},[527,1375,1376],{},[488,1377,1378],{},"\u002Fmedia\u002Fimg\u002F:modifiers\u002F:key",[527,1380,532],{},[527,1382,1383,1384,1387,1388],{},"An image variant. Renders it on the first request with ",[488,1385,1386],{},"ipx()"," or ",[488,1389,1390],{},"cloudflare()",[512,1392,1393,1397,1402,1404],{},[527,1394,1395],{},[488,1396,627],{},[527,1398,1399],{},[488,1400,1401],{},"\u002Fmedia\u002Fthumbnail\u002F:key",[527,1403,532],{},[527,1405,1406,1407],{},"The admin's preview image, without ",[488,1408,1409],{},"media.images",[512,1411,1412,1416,1421,1423],{},[527,1413,1414],{},[488,1415,627],{},[527,1417,1418],{},[488,1419,1420],{},"\u002Fmedia\u002Ffolders",[527,1422,542],{},[527,1424,1425],{},"The folders of the files you may read",[512,1427,1428,1432,1437,1439],{},[527,1429,1430],{},[488,1431,627],{},[527,1433,1434],{},[488,1435,1436],{},"\u002Fmedia\u002Fdownload?id=&folder=",[527,1438,542],{},[527,1440,1441],{},"One file as a download, or several as a ZIP",[512,1443,1444,1448,1453,1455],{},[527,1445,1446],{},[488,1447,668],{},[527,1449,1450],{},[488,1451,1452],{},"\u002Fmedia\u002Fuploads",[527,1454,542],{},[527,1456,833,1457,1460,1461],{},[488,1458,1459],{},"{ filename, size, mimeType, folder }",". Starts an upload in parts. ",[488,1462,680],{},[512,1464,1465,1469,1474,1476],{},[527,1466,1467],{},[488,1468,705],{},[527,1470,1471],{},[488,1472,1473],{},"\u002Fmedia\u002Fuploads\u002F:id\u002Fparts\u002F:n",[527,1475,542],{},[527,1477,1478],{},"Sends one part",[512,1480,1481,1485,1490,1492],{},[527,1482,1483],{},[488,1484,668],{},[527,1486,1487],{},[488,1488,1489],{},"\u002Fmedia\u002Fuploads\u002F:id\u002Fcomplete",[527,1491,542],{},[527,1493,833,1494,1497,1498],{},[488,1495,1496],{},"{ parts }",". Finishes the upload. ",[488,1499,680],{},[512,1501,1502,1506,1511,1513],{},[527,1503,1504],{},[488,1505,769],{},[527,1507,1508],{},[488,1509,1510],{},"\u002Fmedia\u002Fuploads\u002F:id",[527,1512,542],{},[527,1514,1515],{},"Cancels the upload",[512,1517,1518,1523,1528,1530],{},[527,1519,1520],{},[488,1521,1522],{},"PATCH",[527,1524,1525],{},[488,1526,1527],{},"\u002Fmedia\u002F:id",[527,1529,542],{},[527,1531,833,1532,1535],{},[488,1533,1534],{},"{ alt?, filename?, folder? }",". A new name or folder moves the file",[512,1537,1538,1542,1547,1549],{},[527,1539,1540],{},[488,1541,668],{},[527,1543,1544],{},[488,1545,1546],{},"\u002Fmedia\u002Ffolders\u002Frename",[527,1548,542],{},[527,1550,833,1551],{},[488,1552,1553],{},"{ from, to }",[512,1555,1556,1560,1565,1567],{},[527,1557,1558],{},[488,1559,668],{},[527,1561,1562],{},[488,1563,1564],{},"\u002Fmedia\u002F:id\u002Fregenerate",[527,1566,542],{},[527,1568,833,1569,1572],{},[488,1570,1571],{},"{ force? }",". Renders the variants again",[512,1574,1575,1579,1584,1586],{},[527,1576,1577],{},[488,1578,705],{},[527,1580,1581],{},[488,1582,1583],{},"\u002Fmedia\u002F:id\u002Fthumbnail",[527,1585,542],{},[527,1587,1588],{},"A WebP or JPEG body. Sets the preview image",[512,1590,1591,1595,1599,1601],{},[527,1592,1593],{},[488,1594,769],{},[527,1596,1597],{},[488,1598,1527],{},[527,1600,542],{},[527,1602,1603,1604],{},"Deletes the file. ",[488,1605,781],{},[484,1607,1608,1611,1612,499],{},[488,1609,1610],{},"GET \u002Fcollections\u002Fmedia"," lists the files. The other collection routes refuse to write to ",[488,1613,1320],{},[501,1615,1617],{"id":1616},"users-and-sign-in","Users and sign-in",[484,1619,1620,1626,1627,1630,1631,943,1634,962,1637,1640,1641,499],{},[493,1621,1625],{"href":1622,"rel":1623},"https:\u002F\u002Fwww.better-auth.com\u002Fdocs",[1624],"nofollow","better-auth"," answers every route under ",[488,1628,1629],{},"\u002Fauth",", like ",[488,1632,1633],{},"POST \u002Fauth\u002Fsign-in\u002Femail",[488,1635,1636],{},"POST \u002Fauth\u002Fsign-out",[488,1638,1639],{},"GET \u002Fauth\u002Fget-session",". Its errors have its own body. See ",[493,1642,201],{"href":202},[506,1644,1645,1657],{},[509,1646,1647],{},[512,1648,1649,1651,1653,1655],{},[515,1650,610],{},[515,1652,613],{},[515,1654,517],{},[515,1656,618],{},[522,1658,1659,1675,1697,1716,1735,1754,1773,1789,1810,1827,1843,1859,1877,1893,1909],{},[512,1660,1661,1665,1670,1672],{},[527,1662,1663],{},[488,1664,627],{},[527,1666,1667],{},[488,1668,1669],{},"\u002Fauth-status",[527,1671,532],{},[527,1673,1674],{},"Which sign-in methods are on, and whether setup is needed",[512,1676,1677,1681,1686,1688],{},[527,1678,1679],{},[488,1680,627],{},[527,1682,1683],{},[488,1684,1685],{},"\u002Fauth\u002Fsign-in-link?token=",[527,1687,532],{},[527,1689,1690,1691,1387,1694],{},"Signs in with a link from ",[488,1692,1693],{},"tenon users recover",[488,1695,1696],{},"cms.users.signInLink()",[512,1698,1699,1703,1708,1710],{},[527,1700,1701],{},[488,1702,668],{},[527,1704,1705],{},[488,1706,1707],{},"\u002Fsetup",[527,1709,532],{},[527,1711,833,1712,1715],{},[488,1713,1714],{},"{ name, email }",". Creates the first admin, when password sign-in is off",[512,1717,1718,1722,1727,1729],{},[527,1719,1720],{},[488,1721,668],{},[527,1723,1724],{},[488,1725,1726],{},"\u002Faccount\u002Fpassword",[527,1728,560],{},[527,1730,833,1731,1734],{},[488,1732,1733],{},"{ newPassword }",". Sets a first password",[512,1736,1737,1741,1746,1748],{},[527,1738,1739],{},[488,1740,668],{},[527,1742,1743],{},[488,1744,1745],{},"\u002Finvites\u002Fcheck",[527,1747,532],{},[527,1749,833,1750,1753],{},[488,1751,1752],{},"{ token }",". The email and role of an invite",[512,1755,1756,1760,1765,1767],{},[527,1757,1758],{},[488,1759,668],{},[527,1761,1762],{},[488,1763,1764],{},"\u002Finvites\u002Faccept",[527,1766,532],{},[527,1768,833,1769,1772],{},[488,1770,1771],{},"{ token, name, password? }",". Creates the user and signs in",[512,1774,1775,1779,1784,1786],{},[527,1776,1777],{},[488,1778,627],{},[527,1780,1781],{},[488,1782,1783],{},"\u002Finvites",[527,1785,219],{},[527,1787,1788],{},"Lists the invites",[512,1790,1791,1795,1799,1801],{},[527,1792,1793],{},[488,1794,668],{},[527,1796,1797],{},[488,1798,1783],{},[527,1800,219],{},[527,1802,833,1803,966,1806,1809],{},[488,1804,1805],{},"{ email, role, url? }",[488,1807,1808],{},"502"," when the email failed",[512,1811,1812,1816,1821,1823],{},[527,1813,1814],{},[488,1815,668],{},[527,1817,1818],{},[488,1819,1820],{},"\u002Finvites\u002F:id\u002Fresend",[527,1822,219],{},[527,1824,833,1825],{},[488,1826,931],{},[512,1828,1829,1833,1838,1840],{},[527,1830,1831],{},[488,1832,769],{},[527,1834,1835],{},[488,1836,1837],{},"\u002Finvites\u002F:id",[527,1839,219],{},[527,1841,1842],{},"Revokes the invite",[512,1844,1845,1849,1854,1856],{},[527,1846,1847],{},[488,1848,627],{},[527,1850,1851],{},[488,1852,1853],{},"\u002Fapi-keys",[527,1855,219],{},[527,1857,1858],{},"Lists the API keys",[512,1860,1861,1865,1869,1871],{},[527,1862,1863],{},[488,1864,668],{},[527,1866,1867],{},[488,1868,1853],{},[527,1870,219],{},[527,1872,833,1873,1876],{},[488,1874,1875],{},"{ name, permissions, expiresIn? }",". Returns the key once",[512,1878,1879,1883,1888,1890],{},[527,1880,1881],{},[488,1882,668],{},[527,1884,1885],{},[488,1886,1887],{},"\u002Fapi-keys\u002F:id\u002Froll",[527,1889,219],{},[527,1891,1892],{},"A new key for the same permissions",[512,1894,1895,1899,1904,1906],{},[527,1896,1897],{},[488,1898,668],{},[527,1900,1901],{},[488,1902,1903],{},"\u002Fapi-keys\u002F:id\u002Frevoke",[527,1905,219],{},[527,1907,1908],{},"Revokes the key",[512,1910,1911,1915,1920,1922],{},[527,1912,1913],{},[488,1914,769],{},[527,1916,1917],{},[488,1918,1919],{},"\u002Fapi-keys\u002F:id",[527,1921,219],{},[527,1923,1924],{},"Deletes the key",[484,1926,1927,1928,1931,1932,1935],{},"The public routes that sign someone in accept only JSON, and answer ",[488,1929,1930],{},"415"," for any other body. User management runs through better-auth's admin routes under ",[488,1933,1934],{},"\u002Fauth\u002Fadmin",", for admins only.",[501,1937,267],{"id":1938},"jobs",[506,1940,1941,1953],{},[509,1942,1943],{},[512,1944,1945,1947,1949,1951],{},[515,1946,610],{},[515,1948,613],{},[515,1950,517],{},[515,1952,618],{},[522,1954,1955,1988,2004,2020,2036,2052],{},[512,1956,1957,1961,1966,1968],{},[527,1958,1959],{},[488,1960,627],{},[527,1962,1963],{},[488,1964,1965],{},"\u002Fjobs",[527,1967,560],{},[527,1969,1970,1971,943,1974,943,1977,943,1980,943,1983,943,1986],{},"Query ",[488,1972,1973],{},"id",[488,1975,1976],{},"status",[488,1978,1979],{},"task",[488,1981,1982],{},"target",[488,1984,1985],{},"docId",[488,1987,942],{},[512,1989,1990,1994,1999,2001],{},[527,1991,1992],{},[488,1993,627],{},[527,1995,1996],{},[488,1997,1998],{},"\u002Fjobs\u002Fcron",[527,2000,560],{},[527,2002,2003],{},"The cron entries with their next and last run",[512,2005,2006,2010,2015,2017],{},[527,2007,2008],{},[488,2009,668],{},[527,2011,2012],{},[488,2013,2014],{},"\u002Fjobs\u002F:id\u002Frun",[527,2016,560],{},[527,2018,2019],{},"Runs a queued or failed job now",[512,2021,2022,2026,2031,2033],{},[527,2023,2024],{},[488,2025,668],{},[527,2027,2028],{},[488,2029,2030],{},"\u002Fjobs\u002F:id\u002Fretry",[527,2032,560],{},[527,2034,2035],{},"Queues a failed job again",[512,2037,2038,2042,2047,2049],{},[527,2039,2040],{},[488,2041,769],{},[527,2043,2044],{},[488,2045,2046],{},"\u002Fjobs\u002F:id",[527,2048,560],{},[527,2050,2051],{},"Cancels a job",[512,2053,2054,2060,2065,2067],{},[527,2055,2056,943,2058],{},[488,2057,627],{},[488,2059,668],{},[527,2061,2062],{},[488,2063,2064],{},"\u002Fjobs\u002Frun",[527,2066,583],{},[527,2068,2069,2070,2073,2074],{},"Runs the due jobs. Returns ",[488,2071,2072],{},"{ ran, next }",". Only with ",[488,2075,2076],{},"jobs.secret",[484,2078,2079,2080,2083,2084,499],{},"Each job route also checks the ",[488,2081,2082],{},"access"," of the task. See ",[493,2085,285],{"href":286},[501,2087,2089],{"id":2088},"export-and-import","Export and import",[484,2091,2092,2093,2096,2097,2100,2101,2103],{},"An admin, or an API key with a grant on ",[488,2094,2095],{},"backup",", may call these: ",[488,2098,2099],{},"read"," to export, ",[488,2102,1193],{}," to import.",[506,2105,2106,2116],{},[509,2107,2108],{},[512,2109,2110,2112,2114],{},[515,2111,610],{},[515,2113,613],{},[515,2115,618],{},[522,2117,2118,2132,2146,2162,2176,2193,2207,2220,2236],{},[512,2119,2120,2124,2129],{},[527,2121,2122],{},[488,2123,627],{},[527,2125,2126],{},[488,2127,2128],{},"\u002Fexport?media=&scope=",[527,2130,2131],{},"Streams the ZIP",[512,2133,2134,2138,2143],{},[527,2135,2136],{},[488,2137,627],{},[527,2139,2140],{},[488,2141,2142],{},"\u002Fexport\u002Fsummary",[527,2144,2145],{},"What an export would hold",[512,2147,2148,2152,2157],{},[527,2149,2150],{},[488,2151,668],{},[527,2153,2154],{},[488,2155,2156],{},"\u002Fexport",[527,2158,1181,2159,2161],{},[488,2160,931],{},", a download link",[512,2163,2164,2168,2173],{},[527,2165,2166],{},[488,2167,668],{},[527,2169,2170],{},[488,2171,2172],{},"\u002Fimport?mode=",[527,2174,2175],{},"A ZIP body. Imports it",[512,2177,2178,2182,2187],{},[527,2179,2180],{},[488,2181,668],{},[527,2183,2184],{},[488,2185,2186],{},"\u002Fimport\u002Fcheck",[527,2188,833,2189,2192],{},[488,2190,2191],{},"{ manifest, mode? }",". Checks an archive",[512,2194,2195,2199,2204],{},[527,2196,2197],{},[488,2198,668],{},[527,2200,2201],{},[488,2202,2203],{},"\u002Fimport\u002Fuploads",[527,2205,2206],{},"Starts an import in parts",[512,2208,2209,2213,2218],{},[527,2210,2211],{},[488,2212,705],{},[527,2214,2215],{},[488,2216,2217],{},"\u002Fimport\u002Fuploads\u002F:id\u002Fparts\u002F:n",[527,2219,1478],{},[512,2221,2222,2226,2231],{},[527,2223,2224],{},[488,2225,668],{},[527,2227,2228],{},[488,2229,2230],{},"\u002Fimport\u002Fuploads\u002F:id\u002Fcomplete?mode=",[527,2232,833,2233,2235],{},[488,2234,1496],{},". Runs the import",[512,2237,2238,2242,2247],{},[527,2239,2240],{},[488,2241,769],{},[527,2243,2244],{},[488,2245,2246],{},"\u002Fimport\u002Fuploads\u002F:id",[527,2248,2249],{},"Cancels the import",[484,2251,2252,2253,499],{},"See ",[493,2254,2255],{"href":308},"Backup and restore",[501,2257,2259],{"id":2258},"schema-preview-and-admin","Schema, preview and admin",[506,2261,2262,2274],{},[509,2263,2264],{},[512,2265,2266,2268,2270,2272],{},[515,2267,610],{},[515,2269,613],{},[515,2271,517],{},[515,2273,618],{},[522,2275,2276,2298,2317,2338,2355,2371,2387,2407,2426,2442],{},[512,2277,2278,2282,2287,2289],{},[527,2279,2280],{},[488,2281,627],{},[527,2283,2284],{},[488,2285,2286],{},"\u002Fschema",[527,2288,560],{},[527,2290,2291,2292,2294,2295],{},"The schema the user may see. Also an API key with ",[488,2293,2099],{}," on ",[488,2296,2297],{},"schema",[512,2299,2300,2304,2309,2311],{},[527,2301,2302],{},[488,2303,627],{},[527,2305,2306],{},[488,2307,2308],{},"\u002Flocalization",[527,2310,532],{},[527,2312,2313,2314],{},"The locales and the default locale, or ",[488,2315,2316],{},"null",[512,2318,2319,2323,2328,2330],{},[527,2320,2321],{},[488,2322,668],{},[527,2324,2325],{},[488,2326,2327],{},"\u002Fpreview",[527,2329,560],{},[527,2331,833,2332,2335,2336],{},[488,2333,2334],{},"{ perspective? }",". Sets the preview cookie. ",[488,2337,781],{},[512,2339,2340,2344,2348,2350],{},[527,2341,2342],{},[488,2343,769],{},[527,2345,2346],{},[488,2347,2327],{},[527,2349,560],{},[527,2351,2352,2353],{},"Clears the preview cookie. ",[488,2354,781],{},[512,2356,2357,2361,2366,2368],{},[527,2358,2359],{},[488,2360,627],{},[527,2362,2363],{},[488,2364,2365],{},"\u002Fadmin-bar?url=&mode=&locale=",[527,2367,560],{},[527,2369,2370],{},"The items of the admin bar for a page",[512,2372,2373,2377,2382,2384],{},[527,2374,2375],{},[488,2376,627],{},[527,2378,2379],{},[488,2380,2381],{},"\u002Fadmin-brand",[527,2383,532],{},[527,2385,2386],{},"The logo, icon and name for the sign-in page",[512,2388,2389,2393,2398,2400],{},[527,2390,2391],{},[488,2392,668],{},[527,2394,2395],{},[488,2396,2397],{},"\u002Fadmin\u002Fload",[527,2399,560],{},[527,2401,2402,2403,2406],{},"Runs the ",[488,2404,2405],{},"load"," of a custom field, page or bar item",[512,2408,2409,2413,2418,2420],{},[527,2410,2411],{},[488,2412,668],{},[527,2414,2415],{},[488,2416,2417],{},"\u002Fadmin\u002Factions\u002F:key",[527,2419,560],{},[527,2421,2422,2423],{},"Runs an action. Returns ",[488,2424,2425],{},"{ message }",[512,2427,2428,2432,2437,2439],{},[527,2429,2430],{},[488,2431,668],{},[527,2433,2434],{},[488,2435,2436],{},"\u002Fadmin\u002Flinks\u002Fresolve",[527,2438,560],{},[527,2440,2441],{},"Resolves link references",[512,2443,2444,2448,2453,2455],{},[527,2445,2446],{},[488,2447,627],{},[527,2449,2450],{},[488,2451,2452],{},"\u002Fadmin\u002Flinks\u002Fsearch?query=",[527,2454,560],{},[527,2456,2457],{},"Searches link targets by title",[484,2459,2460],{},"The admin routes exist only while the admin is on.",[501,2462,2464],{"id":2463},"plugin-routes","Plugin routes",[484,2466,2467,2468,962,2471,2474,2475,966,2478,2480,2481,2483,2484,2486,2487,499],{},"A plugin's ",[488,2469,2470],{},"publicRoutes",[488,2472,2473],{},"routes"," mount under ",[488,2476,2477],{},"\u002F\u003Cplugin name>",[488,2479,2470],{}," are public. ",[488,2482,2473],{}," need a session, and API keys get ",[488,2485,566],{},". See ",[493,2488,239],{"href":240},[501,2490,2492,2493],{"id":2491},"outside-_tenon","Outside ",[488,2494,490],{},[506,2496,2497,2507],{},[509,2498,2499],{},[512,2500,2501,2503,2505],{},[515,2502,610],{},[515,2504,613],{},[515,2506,618],{},[522,2508,2509,2526],{},[512,2510,2511,2515,2520],{},[527,2512,2513],{},[488,2514,627],{},[527,2516,2517],{},[488,2518,2519],{},"\u002Fsitemap.xml",[527,2521,2522,2523],{},"The sitemap, unless ",[488,2524,2525],{},"sitemap: false",[512,2527,2528,2532,2537],{},[527,2529,2530],{},[488,2531,627],{},[527,2533,2534],{},[488,2535,2536],{},"\u002Frobots.txt",[527,2538,2539,2540],{},"The robots file, unless ",[488,2541,2542],{},"robots: false",[501,2544,2546],{"id":2545},"status-codes","Status codes",[506,2548,2549,2559],{},[509,2550,2551],{},[512,2552,2553,2556],{},[515,2554,2555],{},"Status",[515,2557,2558],{},"Means",[522,2560,2561,2575,2585,2594,2603,2627,2636],{},[512,2562,2563,2568],{},[527,2564,2565],{},[488,2566,2567],{},"400",[527,2569,2570,2571,2574],{},"Invalid data or query. ",[488,2572,2573],{},"errors"," holds one message per field",[512,2576,2577,2582],{},[527,2578,2579],{},[488,2580,2581],{},"401",[527,2583,2584],{},"No session, or an unknown API key",[512,2586,2587,2591],{},[527,2588,2589],{},[488,2590,566],{},[527,2592,2593],{},"The access rule denies, the CSRF check failed, or an API key cannot use the route",[512,2595,2596,2600],{},[527,2597,2598],{},[488,2599,660],{},[527,2601,2602],{},"The document, file or route does not exist",[512,2604,2605,2610],{},[527,2606,2607],{},[488,2608,2609],{},"409",[527,2611,2612,2613,2615,2616,1387,2619,2622,2623,2626],{},"A conflict. ",[488,2614,488],{}," is ",[488,2617,2618],{},"CHANGED",[488,2620,2621],{},"LINKED_CONTENT",", or ",[488,2624,2625],{},"references"," lists the documents that block a delete",[512,2628,2629,2633],{},[527,2630,2631],{},[488,2632,1930],{},[527,2634,2635],{},"The body is not JSON where only JSON is allowed",[512,2637,2638,2643],{},[527,2639,2640],{},[488,2641,2642],{},"500",[527,2644,2645,2646,2652],{},"An unexpected error. ",[493,2647,2649],{"href":2648},"\u002Fdocs\u002Fcore\u002Foperations\u002Flifecycle-hooks#aftererror",[488,2650,2651],{},"afterError"," sees it",[484,2654,2655,2656,2658,2659,2661,2662,2486,2664,2666],{},"Without a session, an unknown path under ",[488,2657,490],{}," answers ",[488,2660,2581],{},", not ",[488,2663,660],{},[493,2665,345],{"href":346}," for the error body.",[501,2668,2670],{"id":2669},"related-resources","Related resources",[2672,2673,2674,2680],"ul",{},[2675,2676,2677,2679],"li",{},[493,2678,337],{"href":338},": the methods that call these routes.",[2675,2681,2682,2685],{},[493,2683,2684],{"href":160},"HTTP API and client",": a guide to the read and write routes.",{"title":2687,"searchDepth":2688,"depth":2688,"links":2689},"",2,[2690,2691,2692,2693,2694,2695,2696,2697,2698,2699,2700,2702,2703],{"id":503,"depth":2688,"text":504},{"id":600,"depth":2688,"text":601},{"id":991,"depth":2688,"text":992},{"id":1186,"depth":2688,"text":1187},{"id":1320,"depth":2688,"text":116},{"id":1616,"depth":2688,"text":1617},{"id":1938,"depth":2688,"text":267},{"id":2088,"depth":2688,"text":2089},{"id":2258,"depth":2688,"text":2259},{"id":2463,"depth":2688,"text":2464},{"id":2491,"depth":2688,"text":2701},"Outside \u002F_tenon",{"id":2545,"depth":2688,"text":2546},{"id":2669,"depth":2688,"text":2670},"Every route under \u002F_tenon, who may call it, and the status codes it answers.","md",null,{},true,{"title":341,"description":2704},"QzI3F1CZLl-chPVVTopzpCastZUXErsiDu_LW7Ij6iQ",[2712,2714],{"title":337,"path":338,"stem":339,"description":2713,"children":-1},"The options of createClient(), where its methods differ from the local API, and the methods only the client has.",{"title":345,"path":346,"stem":347,"description":2715,"children":-1},"The errors Tenon throws, the error body over HTTP, and the types that describe your content.",1795884709330]