[{"data":1,"prerenderedAt":477},["ShallowReactive",2],{"navigation_docs":3,"-platform-api-keys":223,"-platform-api-keys-surround":472},[4,30,83,128,157,182],{"title":5,"path":6,"stem":7,"children":8,"page":29},"Getting Started","\u002Fgetting-started","1.getting-started",[9,13,17,21,25],{"title":10,"path":11,"stem":12},"What is FlashDrive?","\u002Fgetting-started\u002Fwhat-is-flashdrive","1.getting-started\u002F01.what-is-flashdrive",{"title":14,"path":15,"stem":16},"Quickstart","\u002Fgetting-started\u002Fquickstart","1.getting-started\u002F02.quickstart",{"title":18,"path":19,"stem":20},"Key concepts","\u002Fgetting-started\u002Fkey-concepts","1.getting-started\u002F03.key-concepts",{"title":22,"path":23,"stem":24},"Find files","\u002Fgetting-started\u002Ffind-files","1.getting-started\u002F04.find-files",{"title":26,"path":27,"stem":28},"Common use cases","\u002Fgetting-started\u002Fuse-cases","1.getting-started\u002F05.use-cases",false,{"title":31,"path":32,"stem":33,"children":34,"page":29},"Platform Guide","\u002Fplatform","2.platform",[35,39,43,47,51,55,59,63,67,71,75,79],{"title":36,"path":37,"stem":38},"Organizations and workspaces","\u002Fplatform\u002Forganizations-and-workspaces","2.platform\u002F01.organizations-and-workspaces",{"title":40,"path":41,"stem":42},"Members, invitations, and roles","\u002Fplatform\u002Fmembers-and-roles","2.platform\u002F02.members-and-roles",{"title":44,"path":45,"stem":46},"API keys and permissions","\u002Fplatform\u002Fapi-keys","2.platform\u002F03.api-keys",{"title":48,"path":49,"stem":50},"Drives and the default drive","\u002Fplatform\u002Fdrives-and-defaults","2.platform\u002F04.drives-and-defaults",{"title":52,"path":53,"stem":54},"Folders and files","\u002Fplatform\u002Ffolders-and-documents","2.platform\u002F05.folders-and-documents",{"title":56,"path":57,"stem":58},"Upload files","\u002Fplatform\u002Fuploads-and-indexing","2.platform\u002F06.uploads-and-processing",{"title":60,"path":61,"stem":62},"Usage","\u002Fplatform\u002Fusage","2.platform\u002F07.usage",{"title":64,"path":65,"stem":66},"Billing and credits","\u002Fplatform\u002Fbilling","2.platform\u002F08.billing",{"title":68,"path":69,"stem":70},"Storage and limits","\u002Fplatform\u002Fstorage-and-upgrades","2.platform\u002F09.storage-and-upgrades",{"title":72,"path":73,"stem":74},"Account settings and security","\u002Fplatform\u002Faccount-and-security","2.platform\u002F10.account-and-security",{"title":76,"path":77,"stem":78},"Redeem a promo code","\u002Fplatform\u002Fpromo-codes","2.platform\u002F11.promo-codes",{"title":80,"path":81,"stem":82},"Build tools from files","\u002Fplatform\u002Ffile-workflows","2.platform\u002F12.file-workflows",{"title":84,"path":85,"stem":86,"children":87,"page":29},"SDK Guide","\u002Fsdk","4.sdk",[88,92,96,100,104,108,112,116,120,124],{"title":89,"path":90,"stem":91},"Python installation and configuration","\u002Fsdk\u002Finstallation","4.sdk\u002F01.installation",{"title":93,"path":94,"stem":95},"Upload your first files","\u002Fsdk\u002Fupload-files","4.sdk\u002F02.upload-files",{"title":97,"path":98,"stem":99},"Upload a large collection","\u002Fsdk\u002Fbulk-imports","4.sdk\u002F03.bulk-imports",{"title":101,"path":102,"stem":103},"Find, read and edit files","\u002Fsdk\u002Ffiles","4.sdk\u002F05.files",{"title":105,"path":106,"stem":107},"Work with folders","\u002Fsdk\u002Ffolders","4.sdk\u002F06.folders",{"title":109,"path":110,"stem":111},"Manage drives and defaults","\u002Fsdk\u002Fdrives-and-defaults","4.sdk\u002F07.drives-and-defaults",{"title":113,"path":114,"stem":115},"Replace files and attach metadata","\u002Fsdk\u002Freplace-and-label","4.sdk\u002F08.replace-and-label",{"title":117,"path":118,"stem":119},"Upload recovery and partial failures","\u002Fsdk\u002Fupload-recovery","4.sdk\u002F09.upload-recovery",{"title":121,"path":122,"stem":123},"Async workflows","\u002Fsdk\u002Fasync","4.sdk\u002F10.async",{"title":125,"path":126,"stem":127},"Errors, timeouts, and retries","\u002Fsdk\u002Ferrors-and-retries","4.sdk\u002F11.errors-and-retries",{"title":129,"path":130,"stem":131,"children":132,"page":29},"CLI Guide","\u002Fcli","5.cli",[133,137,141,145,149,153],{"title":134,"path":135,"stem":136},"Get Started","\u002Fcli\u002Fquickstart","5.cli\u002F01.quickstart",{"title":138,"path":139,"stem":140},"Profiles and Access","\u002Fcli\u002Fconfiguration","5.cli\u002F02.configuration",{"title":142,"path":143,"stem":144},"Uploads and Recovery","\u002Fcli\u002Fuploads-and-recovery","5.cli\u002F03.uploads-and-recovery",{"title":146,"path":147,"stem":148},"Mount and Sync","\u002Fcli\u002Fmount-and-sync","5.cli\u002F05.mount-and-sync",{"title":150,"path":151,"stem":152},"Sandbox Tokens","\u002Fcli\u002Fsandboxes","5.cli\u002F06.sandboxes",{"title":154,"path":155,"stem":156},"Command Reference","\u002Fcli\u002Fcommands","5.cli\u002F07.commands",{"title":158,"path":159,"stem":160,"children":161,"page":29},"MCP","\u002Fmcp","6.mcp",[162,166,170,174,178],{"title":163,"path":164,"stem":165},"Connect an AI client","\u002Fmcp\u002Fconnect","6.mcp\u002F01.connect",{"title":167,"path":168,"stem":169},"Choose an assistant’s permissions","\u002Fmcp\u002Fpermissions","6.mcp\u002F02.permissions",{"title":171,"path":172,"stem":173},"Upload and manage content","\u002Fmcp\u002Fmanage-content","6.mcp\u002F04.manage-content",{"title":175,"path":176,"stem":177},"Tool reference","\u002Fmcp\u002Ftools","6.mcp\u002F05.tools",{"title":179,"path":180,"stem":181},"Troubleshooting and revoking access","\u002Fmcp\u002Ftroubleshooting","6.mcp\u002F06.troubleshooting",{"title":183,"path":184,"stem":185,"children":186,"page":29},"Reference","\u002Freference","7.reference",[187,191,195,199,203,207,211,215,219],{"title":188,"path":189,"stem":190},"Authentication and API conventions","\u002Freference\u002Fauthentication","7.reference\u002F01.authentication",{"title":192,"path":193,"stem":194},"Organizations, workspaces, and access API","\u002Freference\u002Faccess-api","7.reference\u002F02.access-api",{"title":196,"path":197,"stem":198},"Drives, folders, and files API","\u002Freference\u002Fcontent-api","7.reference\u002F03.content-api",{"title":200,"path":201,"stem":202},"Uploads API","\u002Freference\u002Fuploads-api","7.reference\u002F04.uploads-api",{"title":204,"path":205,"stem":206},"Usage and billing API","\u002Freference\u002Fusage-and-billing-api","7.reference\u002F06.usage-and-billing-api",{"title":208,"path":209,"stem":210},"Errors and recovery","\u002Freference\u002Ferrors","7.reference\u002F07.errors",{"title":212,"path":213,"stem":214},"Limits and supported files","\u002Freference\u002Flimits","7.reference\u002F08.limits",{"title":216,"path":217,"stem":218},"Troubleshooting","\u002Freference\u002Ftroubleshooting","7.reference\u002F09.troubleshooting",{"title":220,"path":221,"stem":222},"Changelog","\u002Freference\u002Fchangelog","7.reference\u002F10.changelog",{"id":224,"title":44,"body":225,"description":465,"extension":466,"links":467,"meta":468,"navigation":469,"path":45,"seo":470,"stem":46,"__hash__":471},"docs\u002F2.platform\u002F03.api-keys.md",{"type":226,"value":227,"toc":459},"minimark",[228,232,282,294,299,384,387,391,398,407,414,425,428,432,443,446,455],[229,230,231],"p",{},"An API key connects an application, script or service to all drives in one workspace. Choose the permission the application needs.",[233,234,235,251],"table",{},[236,237,238],"thead",{},[239,240,241,245,248],"tr",{},[242,243,244],"th",{},"Permission",[242,246,247],{},"API value",[242,249,250],{},"Lets the application",[252,253,254,269],"tbody",{},[239,255,256,260,266],{},[257,258,259],"td",{},"Read",[257,261,262],{},[263,264,265],"code",{},"search",[257,267,268],{},"List, find, read and download files and folders.",[239,270,271,274,279],{},[257,272,273],{},"Read \u002F Write",[257,275,276],{},[263,277,278],{},"read_write",[257,280,281],{},"Do all of the above, and upload, change, move and delete files and folders.",[229,283,284,285,289,290,293],{},"A key never reaches another workspace. To give a cloud sandbox or batch job access to just one drive or one folder for a limited time, use a ",[286,287,288],"a",{"href":151},"sandbox token"," instead of a workspace key. To give an AI agent access, set up an ",[286,291,292],{"href":164},"agent connection",".",[295,296,298],"h2",{"id":297},"create-a-key","Create a key",[300,301,302,341],"tabs",{},[303,304,306],"tabs-item",{"label":305},"Console",[307,308,309,322,332,338],"ol",{},[310,311,312,313,317,318,321],"li",{},"As a workspace admin, open ",[314,315,316],"strong",{},"Settings"," in the sidebar, then the ",[314,319,320],{},"API keys"," tab.",[310,323,324,325,328,329,331],{},"Enter a descriptive ",[314,326,327],{},"Key name"," and choose the ",[314,330,244],{}," your application needs.",[310,333,334,335,293],{},"Set an expiry date and time if the key should stop working then, and select ",[314,336,337],{},"Create key",[310,339,340],{},"Copy the key when it is shown and store it in your secret manager.",[303,342,344,360],{"label":343},"CLI",[345,346,351],"pre",{"className":347,"code":348,"language":349,"meta":350,"style":350},"language-sh shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","flashdrive keys create \"nightly-report\" --permission read_write\n","sh","",[263,352,353],{"__ignoreMap":350},[354,355,358],"span",{"class":356,"line":357},"line",1,[354,359,348],{},[229,361,362,365,366,368,369,371,372,375,376,379,380,383],{},[263,363,364],{},"--permission"," is ",[263,367,265],{}," (read, the default) or ",[263,370,278],{},". Add ",[263,373,374],{},"--expires-at"," with a date and time to set an expiry. ",[263,377,378],{},"flashdrive keys list"," lists the workspace's keys and ",[263,381,382],{},"flashdrive keys revoke KEY_ID"," revokes one.",[229,385,386],{},"The full key is shown only once. If you lose it, create a replacement and update your application.",[295,388,390],{"id":389},"use-the-key","Use the key",[229,392,393,394,397],{},"Set it in the application's environment as ",[263,395,396],{},"FLASHDRIVE_API_KEY",". The Python SDK and the CLI read it from there:",[345,399,401],{"className":347,"code":400,"language":349,"meta":350,"style":350},"export FLASHDRIVE_API_KEY=\"...\"\n",[263,402,403],{"__ignoreMap":350},[354,404,405],{"class":356,"line":357},[354,406,400],{},[229,408,409,410,413],{},"To save a key for the CLI instead, run ",[263,411,412],{},"flashdrive login --api-key"," and paste the key at the hidden prompt.",[229,415,416,417,420,421,424],{},"For the REST API, send the key over HTTPS as ",[263,418,419],{},"Authorization: Bearer YOUR_KEY",". See ",[286,422,423],{"href":189},"authentication"," for the other required headers.",[229,426,427],{},"Keep keys on servers and in secret managers. Never put a key in client-side code, a prompt, a file in a drive, or a URL.",[295,429,431],{"id":430},"rotate-a-key","Rotate a key",[307,433,434,437,440],{},[310,435,436],{},"Create a replacement key with the same permission.",[310,438,439],{},"Update the application and confirm it can read a file.",[310,441,442],{},"Revoke the old key.",[229,444,445],{},"Revoke a key at once if it may have leaked. Keys that expire stop working at their expiry time.",[229,447,448,449,452,453,293],{},"Continue with ",[286,450,451],{"href":90},"SDK installation"," or ",[286,454,423],{"href":189},[456,457,458],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":350,"searchDepth":460,"depth":460,"links":461},2,[462,463,464],{"id":297,"depth":460,"text":298},{"id":389,"depth":460,"text":390},{"id":430,"depth":460,"text":431},"Connect an application or script to one workspace.","md",null,{},{"title":44},{"title":44,"description":465},"8Iep3jqVAlXiO8d1uvhIMiuu0SZcWrbJVrkW24ncTCQ",[473,475],{"title":40,"path":41,"stem":42,"description":474,"children":-1},"Give each teammate the access they need.",{"title":48,"path":49,"stem":50,"description":476,"children":-1},"Create drives, choose each workspace's default drive, and move or delete drives.",1795366546182]