[{"data":1,"prerenderedAt":993},["ShallowReactive",2],{"navigation_docs":3,"-reference-usage-and-billing-api":223,"-reference-usage-and-billing-api-surround":988},[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":204,"body":225,"description":981,"extension":982,"links":983,"meta":984,"navigation":985,"path":205,"seo":986,"stem":206,"__hash__":987},"docs\u002F7.reference\u002F06.usage-and-billing-api.md",{"type":226,"value":227,"toc":952},"minimark",[228,252,268,279,282,290,293,361,381,476,482,488,534,538,544,547,712,719,743,749,755,775,781,784,839,859,863,866,870,876,917,923,937,941,949],[229,230,231,232,239,240,243,244,247,248,251],"p",{},"Free, Personal and Team plans include pooled storage and activity; data transfer is free. Current prices are on the ",[233,234,238],"a",{"href":235,"rel":236},"https:\u002F\u002Fflashdrive.space\u002Fpricing\u002F",[237],"nofollow","pricing page",". See ",[233,241,242],{"href":61},"usage",", ",[233,245,246],{"href":65},"billing"," and ",[233,249,250],{"href":69},"storage and upgrades"," for how they work in the Console.",[229,253,254,255,259,260,263,264,267],{},"These routes require a signed-in user's access token; API keys cannot use them (",[256,257,258],"code",{},"billing_session_required"," or ",[256,261,262],{},"human_session_required","). Organization owners and admins manage billing and storage. Other workspace members can read their workspace's storage. Amounts in US dollars are strings with six decimal places, such as ",[256,265,266],{},"\"12.500000\"",", and byte counts are decimal strings.",[229,269,270,271,274,275,278],{},"See ",[233,272,273],{"href":189},"authentication"," for request headers, and ",[233,276,277],{"href":209},"errors and recovery"," for failed requests.",[280,281,60],"h2",{"id":242},[283,284,286,287],"h3",{"id":285},"get-v1organizationsorganization_idusage","GET ",[256,288,289],{},"\u002Fv1\u002Forganizations\u002F{organization_id}\u002Fusage",[229,291,292],{},"Read the organization's metered usage for a period. Requires organization owner or admin.",[294,295,296,309],"table",{},[297,298,299],"thead",{},[300,301,302,306],"tr",{},[303,304,305],"th",{},"Query",[303,307,308],{},"Meaning",[310,311,312,327,344],"tbody",{},[300,313,314,320],{},[315,316,317],"td",{},[256,318,319],{},"from",[315,321,322,323,326],{},"First UTC date, ",[256,324,325],{},"YYYY-MM-DD",", inclusive.",[300,328,329,334],{},[315,330,331],{},[256,332,333],{},"to",[315,335,336,337,339,340,343],{},"Last UTC date, ",[256,338,325],{},", exclusive. The period is 1 to 90 days; the default is the last 30 days including today. Other ranges return 400 ",[256,341,342],{},"invalid_reporting_period",".",[300,345,346,354],{},[315,347,348,243,351],{},[256,349,350],{},"workspace_id",[256,352,353],{},"key_id",[315,355,356,357,360],{},"Optional filters: a workspace, and an API key UUID or ",[256,358,359],{},"session"," for signed-in activity.",[229,362,363,367,368,371,372,247,374,376,377,380],{},[364,365,366],"strong",{},"200",": ",[256,369,370],{},"period"," (",[256,373,319],{},[256,375,333],{},") and ",[256,378,379],{},"lines",", one per metered item:",[294,382,383,392],{},[297,384,385],{},[300,386,387,390],{},[303,388,389],{},"Field",[303,391,308],{},[310,393,394,413,423,435,448,466],{},[300,395,396,401],{},[315,397,398],{},[256,399,400],{},"line",[315,402,403,404,243,407,259,410,343],{},"What was metered, such as ",[256,405,406],{},"storage",[256,408,409],{},"reads",[256,411,412],{},"writes",[300,414,415,420],{},[315,416,417],{},[256,418,419],{},"quantity",[315,421,422],{},"How much: operations counted, or GB-months for storage.",[300,424,425,430],{},[315,426,427],{},[256,428,429],{},"unit",[315,431,432,433,343],{},"The unit of ",[256,434,419],{},[300,436,437,442],{},[315,438,439],{},[256,440,441],{},"unit_price_usd",[315,443,444,445,343],{},"The price per ",[256,446,447],{},"price_per",[300,449,450,454],{},[315,451,452],{},[256,453,447],{},[315,455,456,457,243,460,259,463,343],{},"What one price covers, such as ",[256,458,459],{},"GB-month",[256,461,462],{},"read",[256,464,465],{},"1,000 reads",[300,467,468,473],{},[315,469,470],{},[256,471,472],{},"cost_usd",[315,474,475],{},"The metered cost for the period, at each day's price.",[229,477,478,481],{},[256,479,480],{},"filter_options"," lists the workspaces and API keys you can filter by. The response can carry other fields; ignore those you do not use.",[283,483,286,485],{"id":484},"get-v1workspacesworkspace_idoverview",[256,486,487],{},"\u002Fv1\u002Fworkspaces\u002F{workspace_id}\u002Foverview",[229,489,490,491,367,493,243,495,243,498,501,502,505,506,509,510,243,513,243,516,371,519,243,522,259,525,528,529,247,531,533],{},"Read a workspace's drives and stored bytes. ",[364,492,366],{},[256,494,350],{},[256,496,497],{},"drives_count",[256,499,500],{},"documents_count"," (files), ",[256,503,504],{},"source_bytes"," (bytes stored) and ",[256,507,508],{},"drives",", each with ",[256,511,512],{},"id",[256,514,515],{},"name",[256,517,518],{},"status",[256,520,521],{},"creating",[256,523,524],{},"ready",[256,526,527],{},"failed","), ",[256,530,500],{},[256,532,504],{},". Organization and workspace totals are batched and may lag recent changes.",[280,535,537],{"id":536},"credits","Credits",[283,539,286,541],{"id":540},"get-v1organizationsorganization_idbillingwallet",[256,542,543],{},"\u002Fv1\u002Forganizations\u002F{organization_id}\u002Fbilling\u002Fwallet",[229,545,546],{},"Read the organization's prepaid balance. Historical credit-source fields may remain for compatibility; they do not describe current plan allowances.",[294,548,549,557],{},[297,550,551],{},[300,552,553,555],{},[303,554,389],{},[303,556,308],{},[310,558,559,571,581,591,601,611,621,631,641,651,661,685,703],{},[300,560,561,566],{},[315,562,563],{},[256,564,565],{},"currency",[315,567,568,343],{},[256,569,570],{},"usd",[300,572,573,578],{},[315,574,575],{},[256,576,577],{},"balance_usd",[315,579,580],{},"Total balance.",[300,582,583,588],{},[315,584,585],{},[256,586,587],{},"reserved_usd",[315,589,590],{},"Credits held for work in progress.",[300,592,593,598],{},[315,594,595],{},[256,596,597],{},"available_usd",[315,599,600],{},"Credits you can spend now.",[300,602,603,608],{},[315,604,605],{},[256,606,607],{},"purchased_credits_usd",[315,609,610],{},"Credits from purchases.",[300,612,613,618],{},[315,614,615],{},[256,616,617],{},"auto_topup_credits_usd",[315,619,620],{},"Credits from auto-topup, available until used.",[300,622,623,628],{},[315,624,625],{},[256,626,627],{},"subscription_credits_usd",[315,629,630],{},"All subscription-sourced credits.",[300,632,633,638],{},[315,634,635],{},[256,636,637],{},"expiring_subscription_credits_usd",[315,639,640],{},"Credits left from earlier plans that expire.",[300,642,643,648],{},[315,644,645],{},[256,646,647],{},"subscription_credits_expire_at",[315,649,650],{},"When those expire, or null.",[300,652,653,658],{},[315,654,655],{},[256,656,657],{},"promotional_credits_usd",[315,659,660],{},"Available promotional credits.",[300,662,663,668],{},[315,664,665],{},[256,666,667],{},"promotional_grants",[315,669,670,671,243,673,243,676,243,679,247,682,343],{},"Each grant's ",[256,672,512],{},[256,674,675],{},"amount_usd",[256,677,678],{},"description",[256,680,681],{},"created_at",[256,683,684],{},"expires_at",[300,686,687,692],{},[315,688,689],{},[256,690,691],{},"storage_allowance",[315,693,694,243,697,247,700,343],{},[256,695,696],{},"effective_storage_bytes",[256,698,699],{},"used_storage_bytes",[256,701,702],{},"reserved_storage_bytes",[300,704,705,709],{},[315,706,707],{},[256,708,518],{},[315,710,711],{},"Billing state.",[283,713,715,716],{"id":714},"post-v1organizationsorganization_idbillingpurchases","POST ",[256,717,718],{},"\u002Fv1\u002Forganizations\u002F{organization_id}\u002Fbilling\u002Fpurchases",[229,720,721,722,725,726,728,729,732,733,367,735,243,737,247,740,343],{},"Buy credits. Requires ",[256,723,724],{},"Idempotency-Key",". Body: ",[256,727,675],{},", a whole number of dollars, at least $10, within the amounts the Console offers; another amount returns 400 ",[256,730,731],{},"invalid_credit_amount",". ",[364,734,366],{},[256,736,512],{},[256,738,739],{},"state",[256,741,742],{},"checkout_url",[229,744,745,746,748],{},"Open ",[256,747,742],{}," to pay, then read the purchase. A browser redirect alone does not confirm payment. Reuse the same key to retry the same purchase.",[283,750,286,752],{"id":751},"get-v1organizationsorganization_idbillingpurchasespurchase_id",[256,753,754],{},"\u002Fv1\u002Forganizations\u002F{organization_id}\u002Fbilling\u002Fpurchases\u002F{purchase_id}",[229,756,757,758,243,760,371,762,243,765,243,768,259,771,376,773,343],{},"Read a purchase: ",[256,759,512],{},[256,761,739],{},[256,763,764],{},"pending",[256,766,767],{},"paid",[256,769,770],{},"expired",[256,772,527],{},[256,774,675],{},[283,776,286,778],{"id":777},"get-v1organizationsorganization_idbillingactivity",[256,779,780],{},"\u002Fv1\u002Forganizations\u002F{organization_id}\u002Fbilling\u002Factivity",[229,782,783],{},"List credit activity, newest first. Requires organization owner or admin.",[294,785,786,794],{},[297,787,788],{},[300,789,790,792],{},[303,791,305],{},[303,793,308],{},[310,795,796,809],{},[300,797,798,806],{},[315,799,800,243,803],{},[256,801,802],{},"limit",[256,804,805],{},"cursor",[315,807,808],{},"1 to 100, default 50. Keep the same filter while you page.",[300,810,811,816],{},[315,812,813],{},[256,814,815],{},"activity_type",[315,817,818,819,243,822,243,825,243,827,243,830,243,833,259,836,343],{},"Optional filter, such as ",[256,820,821],{},"purchase",[256,823,824],{},"subscription",[256,826,406],{},[256,828,829],{},"promotional",[256,831,832],{},"refund",[256,834,835],{},"dispute",[256,837,838],{},"expiration",[229,840,841,842,243,844,243,847,243,849,851,852,247,855,858],{},"Each entry has ",[256,843,512],{},[256,845,846],{},"type",[256,848,678],{},[256,850,675],{}," (positive adds credit, negative uses it), ",[256,853,854],{},"occurred_at",[256,856,857],{},"ongoing"," (true while a daily entry is still adding up).",[280,860,862],{"id":861},"automatic-top-up","Automatic top-up",[229,864,865],{},"Automatic top-up is not available at launch. Add prepaid credit with a one-time purchase when needed.",[280,867,869],{"id":868},"invoices-and-payment-methods","Invoices and payment methods",[283,871,286,873],{"id":872},"get-v1organizationsorganization_idbillinginvoices",[256,874,875],{},"\u002Fv1\u002Forganizations\u002F{organization_id}\u002Fbilling\u002Finvoices",[229,877,878,879,881,882,884,885,243,887,243,890,243,893,243,895,897,898,528,900,903,904,897,906,259,908,528,911,247,914,343],{},"List invoices, newest first. Requires organization owner or admin. Query: ",[256,880,802],{}," (1 to 100, default 50) and ",[256,883,805],{}," (it works only for the user who received it). Each entry has ",[256,886,512],{},[256,888,889],{},"number",[256,891,892],{},"issued_at",[256,894,678],{},[256,896,565],{}," (such as ",[256,899,570],{},[256,901,902],{},"total_cents"," (a decimal string), ",[256,905,518],{},[256,907,767],{},[256,909,910],{},"open",[256,912,913],{},"hosted_url",[256,915,916],{},"pdf_url",[283,918,715,920],{"id":919},"post-v1organizationsorganization_idbillingportal",[256,921,922],{},"\u002Fv1\u002Forganizations\u002F{organization_id}\u002Fbilling\u002Fportal",[229,924,925,926,928,929,732,932,367,934,343],{},"Open the payment portal to manage payment methods. Requires ",[256,927,724],{},"; send ",[256,930,931],{},"{}",[364,933,366],{},[256,935,936],{},"portal_url",[280,938,940],{"id":939},"storage-allowances","Storage allowances",[229,942,943,944,247,946,343],{},"Storage pools across the organization. Free includes 10 GB, Personal 500 GB, and Team 1 TB per paid seat. Add storage in 500 GB blocks in Billing. A drive still has its own 1 TB and 500,000-file ceilings. See ",[233,945,246],{"href":65},[233,947,948],{"href":213},"limits",[229,950,951],{},"Paid plans include guaranteed activity capacity, then unlimited activity subject to platform capacity. We will not bill you extra without contacting you first.",{"title":953,"searchDepth":954,"depth":954,"links":955},"",2,[956,963,973,974,980],{"id":242,"depth":954,"text":60,"children":957},[958,961],{"id":285,"depth":959,"text":960},3,"GET \u002Fv1\u002Forganizations\u002F{organization_id}\u002Fusage",{"id":484,"depth":959,"text":962},"GET \u002Fv1\u002Fworkspaces\u002F{workspace_id}\u002Foverview",{"id":536,"depth":954,"text":537,"children":964},[965,967,969,971],{"id":540,"depth":959,"text":966},"GET \u002Fv1\u002Forganizations\u002F{organization_id}\u002Fbilling\u002Fwallet",{"id":714,"depth":959,"text":968},"POST \u002Fv1\u002Forganizations\u002F{organization_id}\u002Fbilling\u002Fpurchases",{"id":751,"depth":959,"text":970},"GET \u002Fv1\u002Forganizations\u002F{organization_id}\u002Fbilling\u002Fpurchases\u002F{purchase_id}",{"id":777,"depth":959,"text":972},"GET \u002Fv1\u002Forganizations\u002F{organization_id}\u002Fbilling\u002Factivity",{"id":861,"depth":954,"text":862},{"id":868,"depth":954,"text":869,"children":975},[976,978],{"id":872,"depth":959,"text":977},"GET \u002Fv1\u002Forganizations\u002F{organization_id}\u002Fbilling\u002Finvoices",{"id":919,"depth":959,"text":979},"POST \u002Fv1\u002Forganizations\u002F{organization_id}\u002Fbilling\u002Fportal",{"id":939,"depth":954,"text":940},"Read storage and usage, and manage prepaid balances and invoices.","md",null,{},{"title":204},{"title":204,"description":981},"uWdulfsQGwRunH-QMLduIjV796U2Fm1ZMErD4S6AGQ8",[989,991],{"title":200,"path":201,"stem":202,"description":990,"children":-1},"Upload files of any type, replace a specific revision, and follow processing.",{"title":208,"path":209,"stem":210,"description":992,"children":-1},"Find the next step for an API error.",1795366546182]