[{"data":1,"prerenderedAt":726,"buildId":727},["ShallowReactive",2],{"\u002Freference\u002Fapi":3,"\u002Freference\u002Fapi-surround":413,"navigation":424},{"id":4,"title":5,"body":6,"description":405,"extension":406,"meta":407,"navigation":408,"path":409,"seo":410,"stem":411,"__hash__":412},"docs\u002F8.reference\u002F4.api.md","HTTP API",{"type":7,"value":8,"toc":398},"minimark",[9,19,24,40,44,56,92,95,170,173,176,180,201,313,326,330,345,349,358,387,394],[10,11,12,13,18],"p",{},"Everything the dashboard does goes through Avenvail's HTTP API, and you can call the same API from scripts, ShareX and other apps. The ",[14,15,17],"a",{"href":16},"\u002Fapi","API reference"," lists every endpoint an API token can call, with its parameters, request and response bodies, required scope and errors. It is generated from the code on every build, so it can't drift from what the server does.",[20,21,23],"h2",{"id":22},"where-requests-go","Where requests go",[10,25,26,27,31,32,35,36,39],{},"There is no central Avenvail API: requests go to your own instance, under ",[28,29,30],"code",{},"\u002Fapi\u002Fv1",". With the instance at ",[28,33,34],{},"https:\u002F\u002Ffiles.example.com",", the file list is ",[28,37,38],{},"https:\u002F\u002Ffiles.example.com\u002Fapi\u002Fv1\u002Ffiles",".",[20,41,43],{"id":42},"authentication","Authentication",[10,45,46,47,51,52,55],{},"Create a token under ",[48,49,50],"strong",{},"Settings › API tokens"," and send it in the ",[28,53,54],{},"Authorization"," header:",[57,58,63],"pre",{"className":59,"code":60,"language":61,"meta":62,"style":62},"language-bash shiki shiki-themes material-theme-lighter github-light github-dark","curl -H \"Authorization: Bearer avn_...\" https:\u002F\u002Ffiles.example.com\u002Fapi\u002Fv1\u002Ffiles\n","bash","",[28,64,65],{"__ignoreMap":62},[66,67,70,74,78,82,86,89],"span",{"class":68,"line":69},"line",1,[66,71,73],{"class":72},"sbgvK","curl",[66,75,77],{"class":76},"stzsN"," -H",[66,79,81],{"class":80},"sjJ54"," \"",[66,83,85],{"class":84},"s_sjI","Authorization: Bearer avn_...",[66,87,88],{"class":80},"\"",[66,90,91],{"class":84}," https:\u002F\u002Ffiles.example.com\u002Fapi\u002Fv1\u002Ffiles\n",[10,93,94],{},"A token only does what its permissions (scopes) allow:",[96,97,98,114],"table",{},[99,100,101],"thead",{},[102,103,104,108,111],"tr",{},[105,106,107],"th",{},"Scope",[105,109,110],{},"In the app",[105,112,113],{},"Allows",[115,116,117,131,144,157],"tbody",{},[102,118,119,125,128],{},[120,121,122],"td",{},[28,123,124],{},"upload:create",[120,126,127],{},"Upload files",[120,129,130],{},"Uploading files, in one request or in resumable pieces",[102,132,133,138,141],{},[120,134,135],{},[28,136,137],{},"files:read",[120,139,140],{},"Read files",[120,142,143],{},"Listing, searching and downloading files, folders, tags, fields and shares",[102,145,146,151,154],{},[120,147,148],{},[28,149,150],{},"files:write",[120,152,153],{},"Change files",[120,155,156],{},"Renaming, moving, tagging and deleting files, and changing their fields and attachments",[102,158,159,164,167],{},[120,160,161],{},[28,162,163],{},"shares:create",[120,165,166],{},"Create share links",[120,168,169],{},"Sharing files and revoking shares; uploads also get a public link",[10,171,172],{},"Tokens can't create or revoke other tokens. Each endpoint in the reference shows the scope it needs.",[10,174,175],{},"The dashboard also uses internal endpoints for workflows, connections, account security, users and instance settings. They refuse API tokens, need a signed-in browser session, and may change in any release, so they aren't in the reference.",[20,177,179],{"id":178},"errors","Errors",[10,181,182,183,189,190,192,193,196,197,200],{},"Every error is a ",[14,184,188],{"href":185,"rel":186},"https:\u002F\u002Fwww.rfc-editor.org\u002Frfc\u002Frfc9457",[187],"nofollow","Problem Details"," response with a stable ",[28,191,28],{},", an English ",[28,194,195],{},"detail"," and, for some errors, ",[28,198,199],{},"args"," with values such as a size limit:",[57,202,206],{"className":203,"code":204,"language":205,"meta":62,"style":62},"language-json shiki shiki-themes material-theme-lighter github-light github-dark","{\n  \"status\": 413,\n  \"detail\": \"The file exceeds this server's 100 MB upload limit.\",\n  \"code\": \"upload_too_large\",\n  \"args\": { \"maxBytes\": 104857600 }\n}\n","json",[28,207,208,214,237,257,277,307],{"__ignoreMap":62},[66,209,210],{"class":68,"line":69},[66,211,213],{"class":212},"sP7_E","{\n",[66,215,217,221,225,227,230,234],{"class":68,"line":216},2,[66,218,220],{"class":219},"s39Yj","  \"",[66,222,224],{"class":223},"sseR_","status",[66,226,88],{"class":219},[66,228,229],{"class":212},":",[66,231,233],{"class":232},"srdBf"," 413",[66,235,236],{"class":212},",\n",[66,238,240,242,244,246,248,250,253,255],{"class":68,"line":239},3,[66,241,220],{"class":219},[66,243,195],{"class":223},[66,245,88],{"class":219},[66,247,229],{"class":212},[66,249,81],{"class":80},[66,251,252],{"class":84},"The file exceeds this server's 100 MB upload limit.",[66,254,88],{"class":80},[66,256,236],{"class":212},[66,258,260,262,264,266,268,270,273,275],{"class":68,"line":259},4,[66,261,220],{"class":219},[66,263,28],{"class":223},[66,265,88],{"class":219},[66,267,229],{"class":212},[66,269,81],{"class":80},[66,271,272],{"class":84},"upload_too_large",[66,274,88],{"class":80},[66,276,236],{"class":212},[66,278,280,282,284,286,288,291,293,297,299,301,304],{"class":68,"line":279},5,[66,281,220],{"class":219},[66,283,199],{"class":223},[66,285,88],{"class":219},[66,287,229],{"class":212},[66,289,290],{"class":212}," {",[66,292,81],{"class":219},[66,294,296],{"class":295},"sZMiF","maxBytes",[66,298,88],{"class":219},[66,300,229],{"class":212},[66,302,303],{"class":232}," 104857600",[66,305,306],{"class":212}," }\n",[66,308,310],{"class":68,"line":309},6,[66,311,312],{"class":212},"}\n",[10,314,315,316,318,319,321,322,39],{},"Match on ",[28,317,28],{},", not on ",[28,320,195],{},", which may change wording. Common codes are listed under ",[14,323,325],{"href":324},"\u002Freference\u002Flimits","Limits and errors",[20,327,329],{"id":328},"paging","Paging",[10,331,332,333,336,337,340,341,344],{},"Long lists, such as files, trash and shares, return a page of items and a ",[28,334,335],{},"nextCursor",". Pass it back as ",[28,338,339],{},"cursor"," to get the next page; it is ",[28,342,343],{},"null"," on the last one. Keep the other parameters the same between pages.",[20,346,348],{"id":347},"the-openapi-description","The OpenAPI description",[10,350,351,352,357],{},"The reference is built from an ",[14,353,356],{"href":354,"rel":355},"https:\u002F\u002Fspec.openapis.org\u002Foas\u002Fv3.1.1",[187],"OpenAPI 3.1"," description that you can use to generate a client in most languages:",[359,360,361,376],"ul",{},[362,363,364,367,368,371,372,375],"li",{},[48,365,366],{},"For your version:"," your instance serves its own description at ",[28,369,370],{},"\u002Fapi\u002Fopenapi.json",", for example ",[28,373,374],{},"https:\u002F\u002Ffiles.example.com\u002Fapi\u002Fopenapi.json",". Use this one to generate a client, because it matches the version you run.",[362,377,378,381,382,386],{},[48,379,380],{},"Latest:"," ",[14,383,385],{"href":384},"\u002Fopenapi.json","docs.avenvail.dev\u002Fopenapi.json"," follows the newest code, which may be ahead of the release you run.",[10,388,389,390,393],{},"Endpoints marked ",[48,391,392],{},"Experimental"," may change or disappear in any release. Don't build on them yet.",[395,396,397],"style",{},"html pre.shiki code .sbgvK, html code.shiki .sbgvK{--shiki-light:#E2931D;--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .stzsN, html code.shiki .stzsN{--shiki-light:#91B859;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sjJ54, html code.shiki .sjJ54{--shiki-light:#39ADB5;--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .s_sjI, html code.shiki .s_sjI{--shiki-light:#91B859;--shiki-default:#032F62;--shiki-dark:#9ECBFF}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 .sP7_E, html code.shiki .sP7_E{--shiki-light:#39ADB5;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .s39Yj, html code.shiki .s39Yj{--shiki-light:#39ADB5;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sseR_, html code.shiki .sseR_{--shiki-light:#9C3EDA;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .srdBf, html code.shiki .srdBf{--shiki-light:#F76D47;--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sZMiF, html code.shiki .sZMiF{--shiki-light:#E2931D;--shiki-default:#005CC5;--shiki-dark:#79B8FF}",{"title":62,"searchDepth":216,"depth":239,"links":399},[400,401,402,403,404],{"id":22,"depth":216,"text":23},{"id":42,"depth":216,"text":43},{"id":178,"depth":216,"text":179},{"id":328,"depth":216,"text":329},{"id":347,"depth":216,"text":348},"Call your Avenvail instance from scripts and other apps with API tokens, and find every endpoint in the generated API reference.","md",{},{"title":5},"\u002Freference\u002Fapi",{"title":5,"description":405},"8.reference\u002F4.api","K4qWtfqU6uIiwLHltrUDE7pOM-CKF1AKEF5Q2Rf2RMc",[414,419],{"title":415,"path":416,"stem":417,"description":418,"children":-1},"Live updates API","\u002Freference\u002Flive-updates","8.reference\u002F3.live-updates","The experimental event stream the web app uses to hear about changes, and what its events mean.",{"title":420,"path":421,"stem":422,"description":423,"children":-1},"Local development","\u002Fdevelopment","9.development\u002F1.index","Run the API and dashboard from source, run the checks, add migrations and translations, and test against S3.",[425,445,484,528,547,566,577,620,667,681,694],{"title":426,"path":427,"stem":428,"children":429,"icon":444},"Getting started","\u002Fgetting-started","1.getting-started\u002F1.index",[430,432,436,440],{"title":431,"path":427,"stem":428},"Introduction",{"title":433,"path":434,"stem":435},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation",{"title":437,"path":438,"stem":439},"Configure ShareX","\u002Fgetting-started\u002Fsharex","1.getting-started\u002F3.sharex",{"title":441,"path":442,"stem":443},"Updating Avenvail","\u002Fgetting-started\u002Fupdating","1.getting-started\u002F4.updating","i-lucide-rocket",{"title":446,"icon":447,"path":448,"stem":449,"children":450,"page":483},"Library","i-lucide-folder","\u002Flibrary","2.library",[451,455,459,463,467,471,475,479],{"title":452,"path":453,"stem":454},"Uploading files","\u002Flibrary\u002Fuploading","2.library\u002F1.uploading",{"title":456,"path":457,"stem":458},"Files and folders","\u002Flibrary\u002Ffiles-and-folders","2.library\u002F2.files-and-folders",{"title":460,"path":461,"stem":462},"Sharing files","\u002Flibrary\u002Fsharing","2.library\u002F3.sharing",{"title":464,"path":465,"stem":466},"Tags","\u002Flibrary\u002Ftags","2.library\u002F4.tags",{"title":468,"path":469,"stem":470},"Fields","\u002Flibrary\u002Ffields","2.library\u002F5.fields",{"title":472,"path":473,"stem":474},"Attachments","\u002Flibrary\u002Fattachments","2.library\u002F6.attachments",{"title":476,"path":477,"stem":478},"Search","\u002Flibrary\u002Fsearch","2.library\u002F7.search",{"title":480,"path":481,"stem":482},"Trash and recovery","\u002Flibrary\u002Ftrash","2.library\u002F8.trash",false,{"title":485,"path":486,"stem":487,"children":488,"icon":527},"Automations","\u002Fautomations","3.automations\u002F01.index",[489,491,495,499,503,507,511,515,519,523],{"title":490,"path":486,"stem":487},"Overview",{"title":492,"path":493,"stem":494},"Your first workflow","\u002Fautomations\u002Ffirst-workflow","3.automations\u002F02.first-workflow",{"title":496,"path":497,"stem":498},"The editor","\u002Fautomations\u002Feditor","3.automations\u002F03.editor",{"title":500,"path":501,"stem":502},"Values and templates","\u002Fautomations\u002Fvalues","3.automations\u002F04.values",{"title":504,"path":505,"stem":506},"Conditions and branching","\u002Fautomations\u002Fbranching","3.automations\u002F05.branching",{"title":508,"path":509,"stem":510},"Upload intake","\u002Fautomations\u002Fintake","3.automations\u002F06.intake",{"title":512,"path":513,"stem":514},"Testing","\u002Fautomations\u002Ftesting","3.automations\u002F07.testing",{"title":516,"path":517,"stem":518},"Runs and history","\u002Fautomations\u002Fruns","3.automations\u002F08.runs",{"title":520,"path":521,"stem":522},"Quarantine and failures","\u002Fautomations\u002Fquarantine","3.automations\u002F09.quarantine",{"title":524,"path":525,"stem":526},"Workflow templates","\u002Fautomations\u002Ftemplates","3.automations\u002F10.templates","i-lucide-workflow",{"title":529,"path":530,"stem":531,"children":532,"icon":546},"Connections","\u002Fconnections","4.connections\u002F1.index",[533,534,538,542],{"title":490,"path":530,"stem":531},{"title":535,"path":536,"stem":537},"AI providers","\u002Fconnections\u002Fai-providers","4.connections\u002F2.ai-providers",{"title":539,"path":540,"stem":541},"File storage","\u002Fconnections\u002Fstorage","4.connections\u002F3.storage",{"title":543,"path":544,"stem":545},"Photos and documents","\u002Fconnections\u002Fphotos-and-documents","4.connections\u002F4.photos-and-documents","i-lucide-plug",{"title":548,"path":549,"stem":550,"children":551,"icon":565},"AI","\u002Fai","5.ai\u002F1.index",[552,553,557,561],{"title":490,"path":549,"stem":550},{"title":554,"path":555,"stem":556},"AI classify and extract","\u002Fai\u002Fclassify-and-extract","5.ai\u002F2.classify-and-extract",{"title":558,"path":559,"stem":560},"AI describe, summarize and write","\u002Fai\u002Fdescribe-and-write","5.ai\u002F3.describe-and-write",{"title":562,"path":563,"stem":564},"AI detect and suggest tags","\u002Fai\u002Fdetect-and-tag","5.ai\u002F4.detect-and-tag","i-lucide-sparkles",{"title":567,"path":568,"stem":569,"children":570,"icon":576},"OCR","\u002Focr","5.ocr\u002F1.index",[571,572],{"title":490,"path":568,"stem":569},{"title":573,"path":574,"stem":575},"Setup","\u002Focr\u002Fsetup","5.ocr\u002F2.setup","i-lucide-scan-text",{"title":578,"path":579,"stem":580,"children":581,"icon":619},"Self-hosting","\u002Fself-hosting","6.self-hosting\u002F1.index",[582,583,587,591,595,599,603,607,611,615],{"title":490,"path":579,"stem":580},{"title":584,"path":585,"stem":586},"Troubleshooting","\u002Fself-hosting\u002Ftroubleshooting","6.self-hosting\u002F10.troubleshooting",{"title":588,"path":589,"stem":590},"Configuration","\u002Fself-hosting\u002Fconfiguration","6.self-hosting\u002F2.configuration",{"title":592,"path":593,"stem":594},"Reverse proxies and HTTPS","\u002Fself-hosting\u002Freverse-proxy","6.self-hosting\u002F3.reverse-proxy",{"title":596,"path":597,"stem":598},"DigitalOcean","\u002Fself-hosting\u002Fdigitalocean","6.self-hosting\u002F4.digitalocean",{"title":600,"path":601,"stem":602},"Backups and restoration","\u002Fself-hosting\u002Fbackups","6.self-hosting\u002F5.backups",{"title":604,"path":605,"stem":606},"Users and roles","\u002Fself-hosting\u002Fusers","6.self-hosting\u002F6.users",{"title":608,"path":609,"stem":610},"Single sign-on","\u002Fself-hosting\u002Fsingle-sign-on","6.self-hosting\u002F7.single-sign-on",{"title":612,"path":613,"stem":614},"Two-factor and passkeys","\u002Fself-hosting\u002Ftwo-factor-and-passkeys","6.self-hosting\u002F8.two-factor-and-passkeys",{"title":616,"path":617,"stem":618},"Importing","\u002Fself-hosting\u002Fimporting","6.self-hosting\u002F9.importing","i-lucide-server",{"title":621,"path":622,"stem":623,"children":624,"icon":666},"Guides","\u002Fguides","7.guides\u002F1.index",[625,626,630,634,638,642,646,650,654,658,662],{"title":490,"path":622,"stem":623},{"title":627,"path":628,"stem":629},"File scans in Paperless","\u002Fguides\u002Ffile-scans-in-paperless","7.guides\u002F10.file-scans-in-paperless",{"title":631,"path":632,"stem":633},"Send photos to Immich","\u002Fguides\u002Fphotos-to-immich","7.guides\u002F11.photos-to-immich",{"title":635,"path":636,"stem":637},"Optimize ShareX uploads","\u002Fguides\u002Fcompress-uploads","7.guides\u002F2.compress-uploads",{"title":639,"path":640,"stem":641},"Send Discord notifications","\u002Fguides\u002Fdiscord-notifications","7.guides\u002F3.discord-notifications",{"title":643,"path":644,"stem":645},"Organize screenshots with AI","\u002Fguides\u002Fcategorize-screenshots","7.guides\u002F4.categorize-screenshots",{"title":647,"path":648,"stem":649},"Extract receipts with AI","\u002Fguides\u002Fextract-receipts","7.guides\u002F5.extract-receipts",{"title":651,"path":652,"stem":653},"Name screenshots with AI","\u002Fguides\u002Fai-file-names","7.guides\u002F6.ai-file-names",{"title":655,"path":656,"stem":657},"Run AI locally with Ollama","\u002Fguides\u002Flocal-ai-ollama","7.guides\u002F7.local-ai-ollama",{"title":659,"path":660,"stem":661},"Make screenshots searchable","\u002Fguides\u002Fsearchable-screenshots","7.guides\u002F8.searchable-screenshots",{"title":663,"path":664,"stem":665},"Back up to Nextcloud","\u002Fguides\u002Fback-up-to-nextcloud","7.guides\u002F9.back-up-to-nextcloud","i-lucide-book-open",{"title":668,"icon":669,"path":670,"stem":671,"children":672,"page":483},"Reference","i-lucide-library","\u002Freference","8.reference",[673,677,679,680],{"title":674,"path":675,"stem":676},"Step reference","\u002Freference\u002Fsteps","8.reference\u002F1.steps",{"title":325,"path":324,"stem":678},"8.reference\u002F2.limits",{"title":415,"path":416,"stem":417},{"title":5,"path":409,"stem":411},{"title":682,"path":421,"stem":422,"children":683,"icon":693},"Development",[684,685,689],{"title":420,"path":421,"stem":422},{"title":686,"path":687,"stem":688},"Plugin development","\u002Fdevelopment\u002Fplugins","9.development\u002F2.plugins",{"title":690,"path":691,"stem":692},"Writing documentation","\u002Fdevelopment\u002Fdocumentation","9.development\u002F3.documentation","i-lucide-code",{"title":695,"path":696,"stem":697,"children":698,"icon":725},"Comparisons","\u002Fcomparisons","99.comparisons\u002F1.index",[699,701,705,709,713,717,721],{"title":700,"path":696,"stem":697},"Comparing Avenvail",{"title":702,"path":703,"stem":704},"Avenvail and Zipline","\u002Fcomparisons\u002Fzipline","99.comparisons\u002F2.zipline",{"title":706,"path":707,"stem":708},"Avenvail and XBackBone","\u002Fcomparisons\u002Fxbackbone","99.comparisons\u002F3.xbackbone",{"title":710,"path":711,"stem":712},"Avenvail and chibisafe","\u002Fcomparisons\u002Fchibisafe","99.comparisons\u002F4.chibisafe",{"title":714,"path":715,"stem":716},"Avenvail and Slink","\u002Fcomparisons\u002Fslink","99.comparisons\u002F5.slink",{"title":718,"path":719,"stem":720},"Avenvail and Pingvin Share","\u002Fcomparisons\u002Fpingvin-share","99.comparisons\u002F6.pingvin-share",{"title":722,"path":723,"stem":724},"Avenvail and PicoShare","\u002Fcomparisons\u002Fpicoshare","99.comparisons\u002F7.picoshare","i-lucide-scale",1796391526322,"50da0f49-5ffe-418d-9ada-20d446e1504e"]