Upload a file to Box and list all files in the root folder
The Upload file endpoint allows you to upload a single file to Box through the upload domain https://upload.box.com/api/2.0/files/content.
The maximum file size is 50MB. For larger files, use the .
A pre-built application using Client Credentials Grant (CCG) authentication is created for you to get started. This app is authorized automatically, so you don’t need separate admin approval before making API calls.Create a developer token to authenticate your requests. Go to the Developer Console > your pre-built application and find the App Details section. Locate the Developer Token field, select Generate Developer Token, and copy it. For more detail, see .
Developer tokens expire one hour after you generate them.
We prepared an example invoice document for you to upload. Create a root folder for your project, download the file , and save it in the folder.
Python
Node.js
Swift
Java
.NET
Create and activate a Python virtual environment.
python3 -m venv .venvsource .venv/bin/activate
Install the Box Python SDK by running the following command using .
pip install "boxsdk>=10"
Make sure you use the most up-to-date version number of the Python SDK. Refer to the
.
For a production codebase, always store your credentials in a .env file and add .env to your .gitignore.
Then call the upload API as follows.
with open("demo-invoice-20tax-2.pdf", "rb") as file_content_stream: uploaded_file = client.uploads.upload_file( UploadFileAttributes( name="demo-invoice-20tax-2.pdf", parent=UploadFileAttributesParentField(id="0"), ), file_content_stream, )items = client.folders.get_folder_items("0")print(json.dumps(items.to_dict(), indent=2))
The get_folder_items command lists all files in the root folder. Execute the script to upload the file and list all files.
Install the Box Node.js SDK by running the following command using . The box package installs the Box Node SDK and the Box CLI as direct dependencies. Node.js 22 or later is required.
npm install box
Existing projects can keep using npm install box-node-sdk — that package is still supported.
A pre-built application is created for you to get started. Create a developer token to authenticate your requests. Go to the Developer Console > your pre-built application and find the App Details section. Locate the Developer Token field, select Generate Developer Token, and copy it. For more detail, see .Obtain a client with your developer token:
const { BoxClient, BoxDeveloperTokenAuth } = require('box/sdk');const auth = new BoxDeveloperTokenAuth({ token: 'YOUR_DEVELOPER_TOKEN' });const client = new BoxClient({ auth });
Developer tokens expire one hour after you generate them.
The getFolderItems command lists all files in the root folder. Execute the script to upload the file and list all files.
Install the Box Swift SDK by running the following command using .
swift package update
A pre-built application is created for you to get started. Create a developer token to authenticate your requests. Go to the Developer Console > your pre-built application and find the App Details section. Locate the Developer Token field, select Generate Developer Token, and copy it. For more detail, see .
Developer tokens expire one hour after you generate them.
Create a request body with the required parameters: attributes (name and parent id) and a file stream.
guard let fileStream = InputStream(url: URL(fileURLWithPath: "demo-invoice-20tax-2.pdf")) else { fatalError("Could not read a file")}let requestBody = UploadFileRequestBody( attributes: UploadFileRequestBodyAttributesField( name: "demo-invoice-20tax-2.pdf", parent: UploadFileRequestBodyAttributesParentField(id: "0") ), file: fileStream)let files = try await client.uploads.uploadFile(requestBody: requestBody)if let file = files.entries?[0] { print("File uploaded with id \(file.id), name \(file.name!)")}let items = try await client.folders.getFolderItems(folderId: "0")if let entries = items.entries { for entry in entries { switch entry { case let .fileMini(file): print("file \(file.name!) [\(file.id)]") case let .folderMini(folder): print("folder \(folder.name!) [\(folder.id)]") case let .webLinkMini(webLink): print("webLink \(webLink.name!) [\(webLink.id)]") } }}
The getFolderItems command lists all files in the root folder. Execute the script to upload the file and list all files.
A pre-built application is created for you to get started. Create a developer token to authenticate your requests. Go to the Developer Console > your pre-built application and find the App Details section. Locate the Developer Token field, select Generate Developer Token, and copy it. For more detail, see .
Developer tokens expire one hour after you generate them.
GradleInstall the Box Java SDK by adding the following dependency to the build.gradle file.
implementation 'com.box:box-java-sdk:10.9.0'
Make sure you use the most up-to-date version number of the Java SDK. Refer to the
.
BoxDeveloperTokenAuth auth = new BoxDeveloperTokenAuth("YOUR_DEVELOPER_TOKEN");BoxClient client = new BoxClient(auth);
Pass new UploadFileRequestBody to client.getUploads().uploadFile: attributes (UploadFileRequestBodyAttributesField with name and UploadFileRequestBodyAttributesParentField for folder id) and an InputStream for the file bytes.
FileInputStream fileContentStream = new FileInputStream("demo-invoice-20tax-2.pdf");client.getUploads().uploadFile( new UploadFileRequestBody( new UploadFileRequestBodyAttributesField( "demo-invoice-20tax-2.pdf", new UploadFileRequestBodyAttributesParentField("0") ), fileContentStream ));client.getFolders().getFolderItems("0").getEntries().forEach(item -> { System.out.println(item);});
The getFolderItems command lists all files in the root folder. Execute the script to upload the file and list all files.
.NET FrameworkTo install the .NET SDK in the .NET framework, run the following command using
the package manager.
PM> Install-Package Box.V2.Core
A pre-built application is created for you to get started. Create a developer token to authenticate your requests. Go to the Developer Console > your pre-built application and find the App Details section. Locate the Developer Token field, select Generate Developer Token, and copy it. For more detail, see .
Developer tokens expire one hour after you generate them.
.NET CoreTo install the .NET SDK in the .NET Core framework, run the following command using
the package manager.
PM> Install-Package Box.V2.Core
Obtain a client with your developer token:
using Box.Sdk.Gen;var auth = new BoxDeveloperTokenAuth(token: "YOUR_DEVELOPER_TOKEN");var client = new BoxClient(auth: auth);
Await client.Uploads.UploadFileAsync with new UploadFileRequestBody: UploadFileRequestBodyAttributesField (name and parent id) and a Stream (for example from File.OpenRead).
using var fileContentStream = File.OpenRead("demo-invoice-20tax-2.pdf");var files = await client.Uploads.UploadFileAsync( requestBody: new UploadFileRequestBody( attributes: new UploadFileRequestBodyAttributesField( name: "demo-invoice-20tax-2.pdf", parent: new UploadFileRequestBodyAttributesParentField(id: "0")), file: fileContentStream));var file = files.Entries[0];Console.WriteLine($"File uploaded with id {file.Id}, name {file.Name}");var items = await client.Folders.GetFolderItemsAsync(folderId: "0");if (items.Entries != null){ foreach (var item in items.Entries) { if (item.FileFull != null) { Console.WriteLine(item.FileFull.Name); } else if (item.FolderMini != null) { Console.WriteLine(item.FolderMini.Name); } else if (item.WebLink != null) { Console.WriteLine(item.WebLink.Name); } }}
The getFolderItems command lists all files in the root folder. Execute the script to upload the file and list all files.
Congratulations! You’ve uploaded your first file to Box and listed all files in the root folder.
Box glossary to understand the key concepts of Box for Developers.
Changelog to stay up to date with the latest changes.
Last modified on September 17, 2026
Was this page helpful?
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Box Dev Docs","description":"Box for Developers: guides, API reference, SDKs, and tutorials for building content management, Box AI, and enterprise integrations.","colors":{"primary":"#0061d5","light":"#f6fafd","dark":"#002947"},"logo":{"light":"https://mintcdn.com/box/lJLw9z7FWORNWMcq/logo/boxdev-light.png?fit=max\u0026auto=format\u0026n=lJLw9z7FWORNWMcq\u0026q=85\u0026s=a11710b698ff59d24426f9ecec6c7e9c","dark":"https://mintcdn.com/box/siVVIgx7pBuvW4ua/logo/boxdev-dark.svg?fit=max\u0026auto=format\u0026n=siVVIgx7pBuvW4ua\u0026q=85\u0026s=0e34af393abb1b8c024258d684bb7732"},"favicon":"https://mintcdn.com/box/T2hwpVFBJMA4eeDs/favicon.ico?fit=max\u0026auto=format\u0026n=T2hwpVFBJMA4eeDs\u0026q=85\u0026s=2a2efcc60e46eca7ee3ebbe650c47350","api":{"examples":{"languages":["curl","python","node","swift","java",".Net"],"autogenerate":false}},"seo":{"metatags":{"google-site-verification":"fuelbNhVR1kQluNBJjYt4K1Hj5HvJLhLnIq0o9CAY9E"}},"fonts":{"family":"Inter"},"contextual":{"options":[{"title":"Install Box Agent Skills","description":"Add Box plugins to your AI assistants","icon":"sparkles","href":"/ai/agent-skills"},"cursor","vscode","mcp","chatgpt","claude","perplexity","copy","view"],"display":"header"},"metadata":{"timestamp":true},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","banner":{"content":"Join BoxWorks Dev Summit on Nov 5-6, San Francisco and dive into AI agents and unstructured content. [See agenda](https://boxworks.box.com/series/boxworks-2026-dev-summit/landing_page).","dismissible":true},"footer":{"socials":{"x":"https://x.com/box","github":"https://github.com/box-community","linkedin":"https://linkedin.com/company/box","youtube":"https://www.youtube.com/user/box","facebook":"https://www.facebook.com/box"},"links":[{"header":"Resources","items":[{"label":"Newsletter unsubscribe","href":"https://go.box.com/preferences.html"},{"label":"Terms of Use","href":"https://cloud.app.box.com/s/rmwxu64h1ipr41u49w3bbuvbsa29wku9"},{"label":"Privacy Policy","href":"https://www.box.com/en-gb/legal/privacypolicy?url_redirect=direct"},{"label":"Cookie Notification","href":"https://www.box.com/en-gb/legal/cookie-notification?url_redirect=direct"},{"label":"llms.txt","href":"https://developer.box.com/llms.txt"}]}]},"navbar":{"links":[{"href":"https://account.box.com/developers/console","label":"Log in","type":"button"}],"primary":{"type":"button","label":"Get started for free","href":"https://account.box.com/signup/developer"}},"href":""},{"language":"ja","banner":{"content":"Join live webinar on Sept 29: See how to give agents a computer and enterprise content to work on with Box and Daytona. [Register now](https://events.zoom.us/ev/Amkp36LSSk_TxOQbBytoLoHa_Ztg7quKlJv2u74NRvSZJtlnbG5L~AqO7fnFo-ePaTqEcPrKs4jSfhxq3pMVK52ut69Q2zfn9jOr70vx5DQVJaeNF1dDZE9_0N33jMcY1yE9LoHDL5Oamqg).","dismissible":true},"footer":{"socials":{"x":"https://x.com/box","github":"https://github.com/box-community","linkedin":"https://linkedin.com/company/box","youtube":"https://www.youtube.com/user/box","facebook":"https://www.facebook.com/box"},"links":[{"header":"リソース","items":[{"label":"ニュースレターの登録解除","href":"https://go.box.com/preferences.html"},{"label":"利用規約","href":"https://cloud.app.box.com/s/rmwxu64h1ipr41u49w3bbuvbsa29wku9"},{"label":"個人情報保護方針","href":"https://www.box.com/en-gb/legal/privacypolicy?url_redirect=direct"},{"label":"Cookieに関する通知","href":"https://www.box.com/en-gb/legal/cookie-notification?url_redirect=direct"},{"label":"llms.txt","href":"https://developer.box.com/llms.txt"}]}]},"navbar":{"links":[{"href":"https://account.box.com/developers/console","label":"ログイン","type":"button"}],"primary":{"type":"button","label":"今すぐ無料で開始","href":"https://account.box.com/signup/developer"}},"href":"ja"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"box","hasAudioNarration":false,"actualSubdomain":"box","customDomains":["developer.box.com"],"gitSource":{"type":"github","owner":"box","repo":"box-mintlify","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ad238e995906ab85f651d3c","collectionId":"dc95a3b9-4f5a-4ae7-9dbe-c147695f922a","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ad238e995906ab85f651d3c"},"feedback":{"thumbs":true,"issues":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ad238e995906ab85f651d3c","clientVersion":"0.0.3879","searchFilterCounts":[{"language":"en","tag":"API reference","count":638},{"language":"ja","tag":"ホーム","count":368},{"language":"ja","tag":"APIリファレンス","count":339},{"language":"en","tag":"Home","count":301},{"language":"ja","tag":"AI","count":187},{"language":"en","tag":"AI","count":173},{"language":"ja","tag":"コラボレーション","count":81},{"language":"ja","tag":"ツール","count":76},{"language":"ja","tag":"開発ツール","count":76},{"language":"ja","tag":"メタデータと検索","count":67},{"language":"en","tag":"Tools","count":62},{"language":"en","tag":"Dev tools","count":62},{"language":"ja","tag":"コンテンツ","count":58},{"language":"en","tag":"Metadata \u0026 search","count":56},{"language":"en","tag":"Collaboration","count":50},{"language":"en","tag":"Content","count":49},{"language":"ja","tag":"メタデータ","count":49},{"language":"en","tag":"Supported AI models","count":46},{"language":"ja","tag":"サポートされているAIモデル","count":44},{"language":"en","tag":"Metadata","count":41}]},"assistantConfig":{"enableAskAiButton":false,"enableAskAiSearchBar":true},"hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-branches-v2-autocommit","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-branches-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"teamspace","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"client-snapshot-docs-config","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":"a code{border-bottom-color:none!important}.prose :where(a code):not(:where([class~=\"not-prose\"], [class~=\"not-prose\"] *)){color:inherit;font-weight:inherit;text-decoration:none;text-decoration-color:rgb(var(--primary));text-underline-offset:0;text-decoration-thickness:1px}#consent_blackbar{position:relative;z-index:9999999!important}#sidebar,.left-0.right-0.sticky.sm\\:px-4.pb-4.sm\\:pb-6.bottom-0.pt-1.flex.flex-col.items-center.w-full.overflow-hidden.z-20{z-index:1}#footer>div,#sidebar-content{z-index:0}a.nav-anchor img[src$=\"/images/sidebar/box.svg\"]{background-color:transparent!important}#truste-consent-track{z-index:9999999!important;position:fixed!important}.dark #truste-consent-track{background-color:#151f26!important;border-color:#1a1a1a}.dark #truste-show-consent{background-color:#fff;color:#151f26}.dark #truste-consent-text{color:#fff}#truste-consent-content{max-width:1400px}.homepage_container .card img{max-height:200px}.homepage_container h1 span,.homepage_container h2 span{margin:auto}#navbar .max-w-8xl.mx-auto.relative button .ml-4.flex.text-sm.leading-6.whitespace-nowrap.min-w-0.space-x-3.overflow-hidden,header#header .eyebrow{display:none!important}.sidebar-group-header:has(+.sidebar-group>li:is(\n [id=\"/reference\"],\n [id=\"/ja/reference\"],\n [id=\"/ja/reference/v2025.0\"],\n [id=\"/ja/reference/v2026.0\"]\n))>.sidebar-title{display:none}footer div.flex.gap-4.flex-col.md\\:flex-row.md\\:items-center.md\\:gap-8.md\\:justify-center{flex-wrap:wrap}footer div.flex.gap-4.flex-col.md\\:flex-row.md\\:items-center.md\\:gap-8.md\\:justify-center a{white-space:nowrap;text-overflow:clip;overflow:visible;align-self:start;flex-shrink:0;cursor:pointer!important}#google-preferred-source-column{display:flex;flex-direction:column;align-items:flex-end;flex:0 0 auto;width:max-content;max-width:100%}#google-preferred-source{display:flex;justify-content:flex-end;width:auto;margin:0;padding-top:16px}.google-preferred-source-button{appearance:none;margin:0;padding:0;border:0;background:0 0;line-height:0;cursor:pointer}.google-preferred-source-badge{display:block;width:140px;max-width:100%;height:auto}.dark .google-preferred-source-badge--light,.google-preferred-source-badge--dark{display:none}.dark .google-preferred-source-badge--dark{display:block}.nav-logo{min-width:109px}.badge-guide,.badge-quickstart,.badge-tutorial,.dark .badge-guide,.dark .badge-quickstart,.dark .badge-tutorial{background-color:#1f2937;color:#fff}.badge-get{background-color:rgb(74 222 128/.2);color:#15803d}.dark .badge-get{color:#4ade80}.badge-post{background-color:rgb(96 165 250/.2);color:#1d4ed8}.dark .badge-post{color:#60a5fa}.badge-patch,.badge-put{background-color:rgb(250 204 21/.2);color:#a16207}.dark .badge-patch,.dark .badge-put{color:#facc15}.badge-delete{background-color:rgb(248 113 113/.2);color:#b91c1c}.dark .badge-delete{color:#f87171}.badge-api{background-color:#e3f2fd;color:#0d47a1}.dark .badge-api{background-color:#0d47a1;color:#bbdefb}.badge-documentation,.badge-reference,.dark .badge-documentation,.dark .badge-reference{background-color:#000;color:#fff}.badge-default{background-color:#f5f5f5;color:#424242}.badge-group{display:inline-flex;gap:.5rem;flex-wrap:wrap}.dark .badge-default{background-color:#424242;color:#e0e0e0}.update>div:first-child>div:nth-child(3){padding:0;order:4}.update>div:first-child>div:nth-child(3)>span{display:flex;padding:.25rem .75rem;align-items:center;border-radius:9999px;font-size:.875rem;line-height:1.25rem;color:#374151;background-color:#f3f4f6}.dark .update>div:first-child>div:nth-child(3)>span{color:#cecece;background-color:#161616}.update>div:first-child>div:nth-child(4){order:3}div#banner a{text-decoration:none!important;color:#fff;font-weight:600}nav ul #topbar-cta-button a span,nav ul .navbar-link a{border-radius:50px!important}nav ul #topbar-cta-button a span{background-color:#0061d5}#topbar-cta-button a:hover span{opacity:1!important;background-color:#146bd5}.dark #topbar-cta-button a:hover span{opacity:1!important;background-color:#0058c3}.signup-cta-button,.signup-cta-button:active,.signup-cta-button:focus,.signup-cta-button:hover{background-color:#0061d5;border-radius:50px!important;transition:background-color .2s!important;box-shadow:none!important;transform:none!important;border:0!important;border-bottom:none!important;text-decoration:none!important;outline:0!important}.signup-cta-button:hover{background-color:#146bd5!important;opacity:1!important}.dark .signup-cta-button:hover{background-color:#0058c3!important;opacity:1!important}.homepage-secondary-button,.homepage-secondary-button:active,.homepage-secondary-button:focus,.homepage-secondary-button:hover{border-radius:50px!important;border:1px solid #d1d5db!important;background-color:transparent!important;color:#1f2937!important;transition:background-color .2s!important;box-shadow:none!important;transform:none!important;text-decoration:none!important;outline:0!important}.homepage-secondary-button:hover{background-color:#f9fafb!important}.dark .homepage-secondary-button,.dark .homepage-secondary-button:active,.dark .homepage-secondary-button:focus{border-color:#4b5563!important;color:#e5e7eb!important}.dark .homepage-secondary-button:hover{background-color:#1f2937!important}.signup-cta-login,.signup-cta-login:active,.signup-cta-login:focus,.signup-cta-login:hover{text-decoration:none!important;border-bottom:none!important}#content-area h1,#content-area h2,#content-area h3,#content-area h4,#content-area h5,#content-area h6{font-weight:600!important}#content-area h1{font-size:32px!important}.dark img[src*=\"guides-box-ai-ai-models/claude.svg\"],.dark img[src*=\"guides-box-ai-ai-models/gemini.svg\"],.dark img[src*=\"guides-box-ai-ai-models/grok.svg\"],.dark img[src*=\"guides-box-ai-ai-models/meta.svg\"],.dark img[src*=\"guides-box-ai-ai-models/mistral.svg\"],.dark img[src*=\"guides-box-ai-ai-models/openai.svg\"]{filter:invert(1)}.homepage_h2{font-size:28px!important}.chat-assistant-floating-input{z-index:1!important}"}],"page":{"pagePath":"guides/getting-started","slug":"/guides/getting-started","pageMetadata":{"title":"Box for Developers quick start","sidebarTitle":"Quick Start","description":"Sign up for a Box free developer account, generate the developer token and make your first API call.","href":"/guides/getting-started/index"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Sign up for a Box free developer account, generate the developer token and make your first API call.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const SignupCTA=({children})=>{return _jsxs(`div`,{className:`mint-flex mint-flex-wrap mint-items-center mint-gap-4 mint-p-5 mint-rounded-lg mint-border mint-border-gray-200 dark:mint-border-gray-700 mint-my-6`,style:{background:`linear-gradient(135deg, rgba(0, 97, 213, 0.06), rgba(0, 97, 213, 0.02))`},children:[_jsx(`div`,{className:`mint-flex-1 mint-text-sm mint-leading-relaxed mint-text-gray-700 dark:mint-text-gray-300`,style:{minWidth:`280px`},children}),_jsxs(`div`,{className:`mint-flex mint-flex-col mint-items-center mint-gap-2`,children:[_jsx(`a`,{href:`https://account.box.com/signup/developer`,className:`signup-cta-button mint-inline-flex mint-items-center mint-whitespace-nowrap mint-px-5 mint-py-2 mint-text-sm mint-font-semibold mint-text-white mint-no-underline`,children:translate(`Get started for free`)}),_jsx(`a`,{href:`https://account.box.com/developers/console`,className:`signup-cta-login mint-text-xs mint-text-gray-500 dark:mint-text-gray-400 mint-no-underline mint-whitespace-nowrap`,children:translate(`Already have an account? Log in`)})]})]})};const Link=({href,children,className,...props})=>{const _components={a:`a`,..._provideComponents()};const localizedHref=localizeLink(href);return _jsx(_components.a,{href:localizedHref,className,...props,children})};function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Info,Note,OptimizedImage,Tab,Tabs,Warning,_MdxComponentBoundary}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Warning)_missingMdxReference(`Warning`,true);if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[_jsx(_components.a,{href:`https://www.box.com`,children:`Box`}),` is a cloud-based, intelligent content management and file sharing platform for storing, accessing, and collaborating on content from anywhere.`]}),`\n`,_jsx(Heading,{level:`2`,id:`sign-up-for-a-free-account`,children:`Sign up for a free account`}),`\n`,_jsx(_MdxComponentBoundary,{name:`SignupCTA`,children:_jsx(SignupCTA,{children:_jsx(_components.p,{children:`A free developer account gives you access to the Developer Console, APIs, and AI Units, for everything you need to follow along with developer guides.`})})}),`\n`,_jsx(_components.p,{children:`Confirm your email address to activate your developer account.`}),`\n`,_jsx(Heading,{level:`2`,id:`upload-a-file-to-box-and-list-all-files-in-the-root-folder`,children:`Upload a file to Box and list all files in the root folder`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.a,{href:`/reference/post-files-content`,children:`Upload file`}),` endpoint allows you to upload a single file to Box through the upload domain `,_jsx(_components.code,{children:`https://upload.box.com/api/2.0/files/content`}),`.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`The maximum file size is 50MB. For larger files, use the `,_jsx(_MdxComponentBoundary,{name:`Link`,children:_jsx(Link,{href:`/guides/uploads/chunked`,children:`chunked upload APIs`})}),`.`]})}),`\n`,_jsx(_components.p,{children:`A pre-built application using Client Credentials Grant (CCG) authentication is created for you to get started. This app is authorized automatically, so you don’t need separate admin approval before making API calls.`}),`\n`,_jsxs(_components.p,{children:[`Create a developer token to authenticate your requests. Go to the `,_jsx(_components.a,{href:`https://cloud.app.box.com/developers/console`,children:`Developer Console`}),` > your pre-built application and find the `,_jsx(_components.strong,{children:`App Details`}),` section. Locate the `,_jsx(_components.strong,{children:`Developer Token`}),` field, select `,_jsx(_components.strong,{children:`Generate Developer Token`}),`, and copy it. For more detail, see `,_jsx(_MdxComponentBoundary,{name:`Link`,children:_jsx(Link,{href:`/guides/authentication/tokens/developer-tokens`,children:`Developer tokens`})}),`.`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/box/-dfq8BkD33WRZ8AY/images/guides/getting-started/app-details.png?fit=max\u0026auto=format\u0026n=-dfq8BkD33WRZ8AY\u0026q=85\u0026s=2050a97e6ad0a8cd51974da31d33a8c0`,alt:`App Details`,\"data-og-width\":`344`,width:`344`,\"data-og-height\":`372`,height:`372`,\"data-path\":`images/guides/getting-started/app-details.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/box/-dfq8BkD33WRZ8AY/images/guides/getting-started/app-details.png?w=280\u0026fit=max\u0026auto=format\u0026n=-dfq8BkD33WRZ8AY\u0026q=85\u0026s=06ad750d559029bf203aa4394257aa3d 280w, https://mintcdn.com/box/-dfq8BkD33WRZ8AY/images/guides/getting-started/app-details.png?w=560\u0026fit=max\u0026auto=format\u0026n=-dfq8BkD33WRZ8AY\u0026q=85\u0026s=545235179ce56b808f1d86f7498ce1c8 560w, https://mintcdn.com/box/-dfq8BkD33WRZ8AY/images/guides/getting-started/app-details.png?w=840\u0026fit=max\u0026auto=format\u0026n=-dfq8BkD33WRZ8AY\u0026q=85\u0026s=5994f9772527a8d3569eda582683749d 840w, https://mintcdn.com/box/-dfq8BkD33WRZ8AY/images/guides/getting-started/app-details.png?w=1100\u0026fit=max\u0026auto=format\u0026n=-dfq8BkD33WRZ8AY\u0026q=85\u0026s=7d25cc8938a7ebdae0c247070f585f6b 1100w, https://mintcdn.com/box/-dfq8BkD33WRZ8AY/images/guides/getting-started/app-details.png?w=1650\u0026fit=max\u0026auto=format\u0026n=-dfq8BkD33WRZ8AY\u0026q=85\u0026s=c77233768023e2b8206658a94301e039 1650w, https://mintcdn.com/box/-dfq8BkD33WRZ8AY/images/guides/getting-started/app-details.png?w=2500\u0026fit=max\u0026auto=format\u0026n=-dfq8BkD33WRZ8AY\u0026q=85\u0026s=203ed09b1250289af30747e9efd90b3a 2500w`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Developer tokens expire one hour after you generate them.`})}),`\n`,_jsxs(_components.p,{children:[`We prepared an example invoice document for you to upload. Create a root folder for your project, download the file `,_jsx(_MdxComponentBoundary,{name:`Link`,children:_jsx(Link,{href:`/static/quickstarts/extract/files/demo-invoice-20tax-2.pdf`,children:`here`})}),`, and save it in the folder.`]}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`Python`,id:`python`,children:[_jsx(_components.p,{children:`Create and activate a Python virtual environment.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`python3`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -m`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` venv`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` .venv`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`source`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` .venv/bin/activate`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Install the Box Python SDK by running the following command using `,_jsx(_MdxComponentBoundary,{name:`Link`,children:_jsx(Link,{href:`https://pypi.org/project/pip/`,children:`pip`})}),`.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pip`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"boxsdk>=10\"`})]}),`\n`]})})}),_jsx(Note,{children:_jsxs(_components.p,{children:[`Make sure you use the most up-to-date version number of the Python SDK. Refer to the\n`,_jsx(_MdxComponentBoundary,{name:`Link`,children:_jsx(Link,{href:`https://pypi.org/project/boxsdk/`,children:`Python SDK Open Source page`})}),`.`]})}),_jsxs(_components.p,{children:[`Obtain a `,_jsx(_components.code,{children:`client`}),` with your developer token:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` box_sdk_gen `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` BoxClient, BoxDeveloperTokenAuth, UploadFileAttributes, UploadFileAttributesParentField`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` json`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`auth `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` BoxDeveloperTokenAuth(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`token`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_DEVELOPER_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`client `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` BoxClient(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`auth`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`auth)`})]}),`\n`]})})}),_jsx(Warning,{children:_jsxs(_components.p,{children:[`For a production codebase, always store your credentials in a `,_jsx(_components.code,{children:`.env`}),` file and add `,_jsx(_components.code,{children:`.env`}),` to your `,_jsx(_components.code,{children:`.gitignore`}),`.`]})}),_jsx(_components.p,{children:`Then call the upload API as follows.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`11`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`11`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`with`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` open`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"demo-invoice-20tax-2.pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"rb\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` file_content_stream:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` uploaded_file `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.uploads.upload_file(`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` UploadFileAttributes(`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"demo-invoice-20tax-2.pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` parent`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`UploadFileAttributesParentField(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` file_content_stream,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` )`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`items `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.folders.get_folder_items(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(json.dumps(items.to_dict(), `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`indent`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`))`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`get_folder_items`}),` command lists all files in the root folder. Execute the script to upload the file and list all files.`]})]}),_jsxs(Tab,{title:`Node.js`,id:`node-js`,children:[_jsxs(_components.p,{children:[`Install the Box Node.js SDK by running the following command using `,_jsx(_MdxComponentBoundary,{name:`Link`,children:_jsx(Link,{href:`https://www.npmjs.com/package/box`,children:`npm`})}),`. The `,_jsx(_components.a,{href:`/guides/tooling/box-npm-package`,children:`box`}),` package installs the Box Node SDK and the `,_jsx(_components.a,{href:`/guides/cli`,children:`Box CLI`}),` as direct dependencies. Node.js 22 or later is required.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`npm`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` box`})]}),`\n`]})})}),_jsx(Info,{children:_jsxs(_components.p,{children:[`Existing projects can keep using `,_jsx(_components.code,{children:`npm install box-node-sdk`}),` — that package is still supported.`]})}),_jsx(_components.p,{children:`Import the SDK:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` BoxSDK`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'box/sdk'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// ESM`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` BoxSDK`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` require`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'box/sdk'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`); `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// CommonJS`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`A pre-built application is created for you to get started. Create a developer token to authenticate your requests. Go to the `,_jsx(_components.a,{href:`https://cloud.app.box.com/developers/console`,children:`Developer Console`}),` > your pre-built application and find the `,_jsx(_components.strong,{children:`App Details`}),` section. Locate the `,_jsx(_components.strong,{children:`Developer Token`}),` field, select `,_jsx(_components.strong,{children:`Generate Developer Token`}),`, and copy it. For more detail, see `,_jsx(_MdxComponentBoundary,{name:`Link`,children:_jsx(Link,{href:`/guides/authentication/tokens/developer-tokens`,children:`Developer tokens`})}),`.`]}),_jsxs(_components.p,{children:[`Obtain a `,_jsx(_components.code,{children:`client`}),` with your developer token:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`BoxClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`BoxDeveloperTokenAuth`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` require`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'box/sdk'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` auth`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` BoxDeveloperTokenAuth`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`token:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'YOUR_DEVELOPER_TOKEN'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` BoxClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`auth`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`]})})}),_jsx(Warning,{children:_jsx(_components.p,{children:`Developer tokens expire one hour after you generate them.`})}),_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` fs`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` require`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'fs'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` attrs`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`name:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'demo-invoice-20tax-2.pdf'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`parent:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '0'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } };`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` body`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` attributes:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` attrs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` file:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` fs`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`createReadStream`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'demo-invoice-20tax-2.pdf'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`};`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` files`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`uploads`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`uploadFile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` file`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` files`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`entries`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`];`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`File uploaded with id \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`file`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`, name `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`file`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`name`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` items`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`folders`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getFolderItems`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'0'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`items`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`));`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`getFolderItems`}),` command lists all files in the root folder. Execute the script to upload the file and list all files.`]})]}),_jsxs(Tab,{title:`Swift`,id:`swift`,children:[_jsxs(_components.p,{children:[`Install the Box Swift SDK by running the following command using `,_jsx(_MdxComponentBoundary,{name:`Link`,children:_jsx(Link,{href:`https://github.com/box/box-swift-sdk-gen`,children:`Swift Package Manager`})}),`.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`swift`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` package`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` update`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`A pre-built application is created for you to get started. Create a developer token to authenticate your requests. Go to the `,_jsx(_components.a,{href:`https://cloud.app.box.com/developers/console`,children:`Developer Console`}),` > your pre-built application and find the `,_jsx(_components.strong,{children:`App Details`}),` section. Locate the `,_jsx(_components.strong,{children:`Developer Token`}),` field, select `,_jsx(_components.strong,{children:`Generate Developer Token`}),`, and copy it. For more detail, see `,_jsx(_MdxComponentBoundary,{name:`Link`,children:_jsx(Link,{href:`/guides/authentication/tokens/developer-tokens`,children:`Developer tokens`})}),`.`]}),_jsx(Warning,{children:_jsx(_components.p,{children:`Developer tokens expire one hour after you generate them.`})}),_jsxs(_components.p,{children:[`Obtain a `,_jsx(_components.code,{children:`client`}),` with your developer token:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` BoxSdkGen`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` auth `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` BoxDeveloperTokenAuth`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`token`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_DEVELOPER_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` BoxClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`auth`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: auth)`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Create a request body with the required parameters: attributes (`,_jsx(_components.code,{children:`name`}),` and `,_jsx(_components.code,{children:`parent id`}),`) and a file stream.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`31`,language:`swift`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`swift`,children:_jsxs(_components.code,{language:`swift`,numberOfLines:`31`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`guard`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` fileStream `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` InputStream`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`url`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`URL`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`fileURLWithPath`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"demo-invoice-20tax-2.pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`else`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` fatalError`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Could not read a file\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requestBody `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` UploadFileRequestBody`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` attributes`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`UploadFileRequestBodyAttributesField`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"demo-invoice-20tax-2.pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` parent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`UploadFileRequestBodyAttributesParentField`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` file`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: fileStream`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` files `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` try`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`uploads`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`uploadFile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`requestBody`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: requestBody)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` file `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` files.entries`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"File uploaded with id `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`\\\\(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`file.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`)`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`, name `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`\\\\(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`file.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`)`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` items `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` try`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`folders`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`getFolderItems`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`folderId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` entries `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` items.entries {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` entry `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` entries {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` switch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` entry {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` case`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`fileMini`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(file)`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"file `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`\\\\(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`file.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`)`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` [`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`\\\\(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`file.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`)`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`]\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` case`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`folderMini`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(folder)`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"folder `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`\\\\(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`folder.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`)`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` [`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`\\\\(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`folder.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`)`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`]\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` case`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`webLinkMini`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(webLink)`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"webLink `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`\\\\(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`webLink.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`)`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` [`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`\\\\(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`webLink.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`)`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`]\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`getFolderItems`}),` command lists all files in the root folder. Execute the script to upload the file and list all files.`]})]}),_jsxs(Tab,{title:`Java`,id:`java`,children:[_jsxs(_components.p,{children:[`A pre-built application is created for you to get started. Create a developer token to authenticate your requests. Go to the `,_jsx(_components.a,{href:`https://cloud.app.box.com/developers/console`,children:`Developer Console`}),` > your pre-built application and find the `,_jsx(_components.strong,{children:`App Details`}),` section. Locate the `,_jsx(_components.strong,{children:`Developer Token`}),` field, select `,_jsx(_components.strong,{children:`Generate Developer Token`}),`, and copy it. For more detail, see `,_jsx(_MdxComponentBoundary,{name:`Link`,children:_jsx(Link,{href:`/guides/authentication/tokens/developer-tokens`,children:`Developer tokens`})}),`.`]}),_jsx(Warning,{children:_jsx(_components.p,{children:`Developer tokens expire one hour after you generate them.`})}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Gradle`})}),_jsxs(_components.p,{children:[`Install the Box Java SDK by adding the following dependency to the `,_jsx(_components.code,{children:`build.gradle`}),` file.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`implementation`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'com.box:box-java-sdk:10.9.0'`})]}),`\n`]})})}),_jsx(Info,{children:_jsxs(_components.p,{children:[`Make sure you use the most up-to-date version number of the Java SDK. Refer to the\n`,_jsx(_MdxComponentBoundary,{name:`Link`,children:_jsx(Link,{href:`https://opensource.box.com/box-java-sdk/`,children:`Java SDK Open Source page`})}),`.`]})}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`Maven`})}),_jsx(_components.p,{children:`Then add the following Maven dependency.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`xml`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`xml`,children:_jsxs(_components.code,{language:`xml`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`dependency`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`groupId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`com.box`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`groupId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`artifactId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`box-java-sdk`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`artifactId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`version`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`10.9.0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`version`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`dependency`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Obtain a `,_jsx(_components.code,{children:`client`}),` with your developer token:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`BoxDeveloperTokenAuth`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` auth`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` BoxDeveloperTokenAuth`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_DEVELOPER_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`BoxClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` BoxClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(auth);`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Pass `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`new UploadFileRequestBody`})}),` to `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`client.getUploads().uploadFile`})}),`: attributes (`,_jsx(_components.strong,{children:_jsx(_components.code,{children:`UploadFileRequestBodyAttributesField`})}),` with name and `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`UploadFileRequestBodyAttributesParentField`})}),` for folder id) and an `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`InputStream`})}),` for the file bytes.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`14`,language:`java`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`java`,children:_jsxs(_components.code,{language:`java`,numberOfLines:`14`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#4EC9B0`},children:`FileInputStream`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` fileContentStream`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` FileInputStream`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"demo-invoice-20tax-2.pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getUploads`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`uploadFile`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` UploadFileRequestBody`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` UploadFileRequestBodyAttributesField`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"demo-invoice-20tax-2.pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` UploadFileRequestBodyAttributesParentField`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` fileContentStream`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` )`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getFolders`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getFolderItems`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getEntries`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`forEach`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(item `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`->`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` System`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`out`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`println`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(item);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`getFolderItems`}),` command lists all files in the root folder. Execute the script to upload the file and list all files.`]})]}),_jsxs(Tab,{title:`.NET`,id:`net`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`.NET Framework`})}),_jsxs(_components.p,{children:[`To install the .NET SDK in the .NET framework, run the following command using\nthe `,_jsx(_MdxComponentBoundary,{name:`Link`,children:_jsx(Link,{href:`https://www.nuget.org/packages/Box.V2.Core`,children:`Nuget`})}),` package manager.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`PM`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`> `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Install-Package`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Box.V2.Core`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`A pre-built application is created for you to get started. Create a developer token to authenticate your requests. Go to the `,_jsx(_components.a,{href:`https://cloud.app.box.com/developers/console`,children:`Developer Console`}),` > your pre-built application and find the `,_jsx(_components.strong,{children:`App Details`}),` section. Locate the `,_jsx(_components.strong,{children:`Developer Token`}),` field, select `,_jsx(_components.strong,{children:`Generate Developer Token`}),`, and copy it. For more detail, see `,_jsx(_MdxComponentBoundary,{name:`Link`,children:_jsx(Link,{href:`/guides/authentication/tokens/developer-tokens`,children:`Developer tokens`})}),`.`]}),_jsx(Warning,{children:_jsx(_components.p,{children:`Developer tokens expire one hour after you generate them.`})}),_jsx(_components.p,{children:_jsx(_components.strong,{children:`.NET Core`})}),_jsxs(_components.p,{children:[`To install the .NET SDK in the .NET Core framework, run the following command using\nthe `,_jsx(_MdxComponentBoundary,{name:`Link`,children:_jsx(Link,{href:`https://www.nuget.org/packages/Box.V2.Core`,children:`Nuget`})}),` package manager.`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`PM`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`> `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`Install-Package`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Box.V2.Core`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Obtain a `,_jsx(_components.code,{children:`client`}),` with your developer token:`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`csharp`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`csharp`,children:_jsxs(_components.code,{language:`csharp`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`using`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Box`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Sdk`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`Gen`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`var`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` auth`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` BoxDeveloperTokenAuth`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`token`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_DEVELOPER_TOKEN\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`var`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` BoxClient`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`auth`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`auth`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`Await `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`client.Uploads.UploadFileAsync`})}),` with `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`new UploadFileRequestBody`})}),`: `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`UploadFileRequestBodyAttributesField`})}),` (`,_jsx(_components.code,{children:`name`}),` and `,_jsx(_components.code,{children:`parent id`}),`) and a `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`Stream`})}),` (for example from `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`File.OpenRead`})}),`).`]}),_jsx(CodeBlock,{filename:``,numberOfLines:`29`,language:`csharp`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`csharp`,children:_jsxs(_components.code,{language:`csharp`,numberOfLines:`29`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`using`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` var`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` fileContentStream`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` File`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`OpenRead`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"demo-invoice-20tax-2.pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`var`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` files`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Uploads`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`UploadFileAsync`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` requestBody`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`new`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` UploadFileRequestBody`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` attributes`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`new`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` UploadFileRequestBodyAttributesField`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"demo-invoice-20tax-2.pdf\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` parent`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`new`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` UploadFileRequestBodyAttributesParentField`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` file`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`fileContentStream`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`));`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`var`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` file`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` files`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Entries`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`];`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`WriteLine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`$\"File uploaded with id `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`file`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Id`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`, name `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`file`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Name`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`var`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` items`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Folders`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`GetFolderItemsAsync`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`folderId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`items`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Entries`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` !=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` foreach`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`var`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` item`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` in`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` items`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Entries`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`item`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`FileFull`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` !=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`WriteLine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`item`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`FileFull`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` else`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`item`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`FolderMini`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` !=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`WriteLine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`item`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`FolderMini`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` else`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`item`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`WebLink`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` !=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`WriteLine`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`item`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`WebLink`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`getFolderItems`}),` command lists all files in the root folder. Execute the script to upload the file and list all files.`]})]})]}),`\n`,_jsx(_components.p,{children:`Congratulations! You’ve uploaded your first file to Box and listed all files in the root folder.`}),`\n`,_jsx(Heading,{level:`2`,id:`use-cases`,children:`Use cases`}),`\n`,_jsx(_components.p,{children:`Unsure if your use case is a good fit for Box? You’re in the right place if:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Content is in the center of your use case`}),`\n`,_jsx(_components.li,{children:`Your process involves moving content from one place to another`}),`\n`,_jsxs(_components.li,{children:[`Your workflow can abide by `,_jsx(_components.a,{href:`https://docs.box.com/en/box-apps/box-apps-for-box-admins/box-apps-permissions#permissions`,children:`waterfall permissions`})]}),`\n`,_jsx(_components.li,{children:`Your process involves administrative tasks that can be automated`}),`\n`]}),`\n`,_jsx(_components.p,{children:`Some common customer solutions include:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Marketing asset management`}),`\n`,_jsx(_components.li,{children:`Secure document vaults`}),`\n`,_jsx(_components.li,{children:`Wealth management portals`}),`\n`,_jsx(_components.li,{children:`Automatic folder creation based on user provisioning`}),`\n`,_jsx(_components.li,{children:`Adding relevant metadata using machine learning`}),`\n`,_jsx(_components.li,{children:`Claim reviews with built-in approval/rejection flows`}),`\n`,_jsx(_components.li,{children:`Event monitoring for security and auditing`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`what’s-next`,children:`What’s next`}),`\n`,_jsx(_components.p,{children:`Explore the following resources:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/guides/getting-started/free-developer-plan`,children:`What a free developer plan offers`})}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/guides/getting-started/users`,children:`User types`}),` to understand managed users, app users, and service accounts.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/guides/getting-started/sandbox`,children:`Developer sandboxes`}),` to build and test without affecting production data.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/guides/authentication`,children:`Authentication methods`}),` to understand the different authentication methods available.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/guides/authentication/jwt/jwt-setup`,children:`Set up JWT authentication`}),` for server-to-server Platform Apps.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/guides/cli`,children:`Box CLI`}),` to help you build your application.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/guides/getting-started/box-glossary`,children:`Box glossary`}),` to understand the key concepts of Box for Developers.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/changelog/`,children:`Changelog`}),` to stay up to date with the latest changes.`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{SignupCTA,Link,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Box for Developers quick start","sidebarTitle":"Quick Start","description":"Sign up for a Box free developer account, generate the developer token and make your first API call.","href":"/guides/getting-started/index"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[145,1433,")=>null;const Link=()=>null;function _cr"]]},"mdxExtracts":{"tableOfContents":[{"title":"Sign up for a free account","slug":"sign-up-for-a-free-account","depth":2,"children":[]},{"title":"Upload a file to Box and list all files in the root folder","slug":"upload-a-file-to-box-and-list-all-files-in-the-root-folder","depth":2,"children":[]},{"title":"Use cases","slug":"use-cases","depth":2,"children":[]},{"title":"What’s next","slug":"what’s-next","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/box/523776d2eff70e58/scripts/cookie-banner.js","/_mintlify/custom/box/e597cec886c1778e/scripts/locale-links.js","/_mintlify/custom/box/37b2f846ed414abc/snippets/choose-choice-simple.js","/_mintlify/custom/box/78fc14bb599966cb/scripts/locale-footer-combined.js","/_mintlify/custom/box/9a429216167d598a/scripts/analitics.js","/_mintlify/custom/box/2f463a090bfcd0e8/snippets/boxIntl.js","/_mintlify/custom/box/d88c3906cf95ec86/snippets/translations.js","/_mintlify/custom/box/d67e74fc334b686a/scripts/preferred-source.js"],"dynamicCss":".mint-my-6 {\n margin-top: 1.5rem;\n margin-bottom: 1.5rem\n}\n.mint-flex {\n display: flex\n}\n.mint-inline-flex {\n display: inline-flex\n}\n.mint-flex-1 {\n flex: 1 1 0%\n}\n.mint-flex-col {\n flex-direction: column\n}\n.mint-flex-wrap {\n flex-wrap: wrap\n}\n.mint-items-center {\n align-items: center\n}\n.mint-gap-2 {\n gap: 0.5rem\n}\n.mint-gap-4 {\n gap: 1rem\n}\n.mint-whitespace-nowrap {\n white-space: nowrap\n}\n.mint-rounded-lg {\n border-radius: 0.5rem\n}\n.mint-border {\n border-width: 1px\n}\n.mint-border-gray-200 {\n --tw-border-opacity: 1;\n border-color: rgb(229 231 235 / var(--tw-border-opacity, 1))\n}\n.mint-p-5 {\n padding: 1.25rem\n}\n.mint-px-5 {\n padding-left: 1.25rem;\n padding-right: 1.25rem\n}\n.mint-py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem\n}\n.mint-text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem\n}\n.mint-text-xs {\n font-size: 0.75rem;\n line-height: 1rem\n}\n.mint-font-semibold {\n font-weight: 600\n}\n.mint-leading-relaxed {\n line-height: 1.625\n}\n.mint-text-gray-500 {\n --tw-text-opacity: 1;\n color: rgb(107 114 128 / var(--tw-text-opacity, 1))\n}\n.mint-text-gray-700 {\n --tw-text-opacity: 1;\n color: rgb(55 65 81 / var(--tw-text-opacity, 1))\n}\n.mint-text-white {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity, 1))\n}\n.mint-no-underline {\n text-decoration-line: none\n}\n.dark\\:mint-border-gray-700:is(.dark *) {\n --tw-border-opacity: 1;\n border-color: rgb(55 65 81 / var(--tw-border-opacity, 1))\n}\n.dark\\:mint-text-gray-300:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgb(209 213 219 / var(--tw-text-opacity, 1))\n}\n.dark\\:mint-text-gray-400:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgb(156 163 175 / var(--tw-text-opacity, 1))\n}","subdomain":"box","siteName":"Box Dev Docs","title":"Box for Developers quick start - Box Dev Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/guides/getting-started/index","matchLevel":2},"ja":{"href":"/ja/guides/getting-started/index","matchLevel":1}}},"lastModified":"2026-09-21T09:16:04.739Z","gitLastModified":"2026-09-17T14:37:54.000Z","originalFileLocation":"guides/getting-started/index.mdx","locale":"en"},"headHtml":"\u003cmeta data-mint-head name=\"description\" content=\"Sign up for a Box free developer account, generate the developer token and make your first API call.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Box Dev Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/box/ZCmC4_xrCUAVE-ZZ/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/box/ZCmC4_xrCUAVE-ZZ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/box/ZCmC4_xrCUAVE-ZZ/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/box/ZCmC4_xrCUAVE-ZZ/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/box/ZCmC4_xrCUAVE-ZZ/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/box/ZCmC4_xrCUAVE-ZZ/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/box/ZCmC4_xrCUAVE-ZZ/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/box/ZCmC4_xrCUAVE-ZZ/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/box/ZCmC4_xrCUAVE-ZZ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Box for Developers quick start - Box Dev Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Sign up for a Box free developer account, generate the developer token and make your first API call.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Box Dev Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developer.box.com/guides/getting-started\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Box for Developers quick start - Box Dev Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Sign up for a Box free developer account, generate the developer token and make your first API call.\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/box/ZCmC4_xrCUAVE-ZZ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Box Dev Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0061d5\">\u003cmeta data-mint-head name=\"google-site-verification\" content=\"fuelbNhVR1kQluNBJjYt4K1Hj5HvJLhLnIq0o9CAY9E\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developer.box.com/guides/getting-started\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guides/getting-started.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://developer.box.com/guides/getting-started\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://developer.box.com/ja/guides/getting-started\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://developer.box.com/guides/getting-started\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developer.box.com/#organization\",\"name\":\"Box Dev Docs\",\"url\":\"https://developer.box.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/box/lJLw9z7FWORNWMcq/logo/boxdev-light.png?fit=max\u0026auto=format\u0026n=lJLw9z7FWORNWMcq\u0026q=85\u0026s=a11710b698ff59d24426f9ecec6c7e9c\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developer.box.com#website\",\"name\":\"Box Dev Docs\",\"url\":\"https://developer.box.com\",\"publisher\":{\"@id\":\"https://developer.box.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developer.box.com/guides/getting-started#webpage\",\"url\":\"https://developer.box.com/guides/getting-started\",\"name\":\"Box for Developers quick start\",\"description\":\"Sign up for a Box free developer account, generate the developer token and make your first API call.\",\"dateModified\":\"2026-09-17T14:37:54.000Z\",\"isPartOf\":{\"@id\":\"https://developer.box.com#website\"},\"breadcrumb\":{\"@id\":\"https://developer.box.com/guides/getting-started#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developer.box.com/guides/getting-started#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Getting started\",\"item\":\"https://developer.box.com/guides/getting-started/index\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Box for Developers quick start\",\"item\":\"https://developer.box.com/guides/getting-started\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://developer.box.com/guides/getting-started#article\",\"headline\":\"Box for Developers quick start\",\"name\":\"Box for Developers quick start\",\"description\":\"Sign up for a Box free developer account, generate the developer token and make your first API call.\",\"url\":\"https://developer.box.com/guides/getting-started\",\"mainEntityOfPage\":{\"@id\":\"https://developer.box.com/guides/getting-started#webpage\"},\"dateModified\":\"2026-09-17T14:37:54.000Z\",\"publisher\":{\"@id\":\"https://developer.box.com/#organization\"},\"isPartOf\":{\"@id\":\"https://developer.box.com#website\"}}]}\u003c/script>","siteName":"Box Dev Docs","nav":{"global":null,"languages":[{"language":"en","banner":{"content":"Join BoxWorks Dev Summit on Nov 5-6, San Francisco and dive into AI agents and unstructured content. [See agenda](https://boxworks.box.com/series/boxworks-2026-dev-summit/landing_page).","dismissible":true},"footer":{"socials":{"x":"https://x.com/box","github":"https://github.com/box-community","linkedin":"https://linkedin.com/company/box","youtube":"https://www.youtube.com/user/box","facebook":"https://www.facebook.com/box"},"links":[{"header":"Resources","items":[{"label":"Newsletter unsubscribe","href":"https://go.box.com/preferences.html"},{"label":"Terms of Use","href":"https://cloud.app.box.com/s/rmwxu64h1ipr41u49w3bbuvbsa29wku9"},{"label":"Privacy Policy","href":"https://www.box.com/en-gb/legal/privacypolicy?url_redirect=direct"},{"label":"Cookie Notification","href":"https://www.box.com/en-gb/legal/cookie-notification?url_redirect=direct"},{"label":"llms.txt","href":"https://developer.box.com/llms.txt"}]}]},"navbar":{"links":[{"href":"https://account.box.com/developers/console","label":"Log in","type":"button"}],"primary":{"type":"button","label":"Get started for free","href":"https://account.box.com/signup/developer"}},"tabs":[{"tab":"Home","pages":[{"title":"Home","sidebarTitle":"Box Dev Docs","mode":"frame","href":""},{"title":"Sample Code Catalog","mode":"wide","description":"Explore sample code and demo applications for Box APIs, SDKs, and UI Elements","href":"/sample-code"},{"group":"Getting started","pages":[{"title":"Box for Developers quick start","sidebarTitle":"Quick Start","href":"/guides/getting-started/index"},{"sidebarTitle":"Free developer plan","title":"Free developer plan","description":"Build and test full-featured Box applications at no cost with a free developer plan.","href":"/guides/getting-started/free-developer-plan"},{"title":"Why Box for developers","sidebarTitle":"Why Box","href":"/guides/getting-started/why-box"},{"title":"Plan your integration","sidebarTitle":"Plan your integration","href":"/guides/getting-started/plan-your-integration"},{"title":"User types","sidebarTitle":"User types","href":"/guides/getting-started/users"},{"title":"Create your first application","sidebarTitle":"Create your first application","href":"/guides/getting-started/first-application"},{"title":"Locating IDs","sidebarTitle":"Locating IDs","href":"/guides/getting-started/locating-values"},{"title":"Box developer sandboxes","sidebarTitle":"Sandboxes","href":"/guides/getting-started/sandbox"},{"title":"Box for Developers glossary","href":"/guides/getting-started/box-glossary"},{"title":"Box Platform API agent playbook","href":"/guides/getting-started/agent-playbook"}]},{"group":"Applications \u0026 integrations","pages":[{"title":"Applications","href":"/guides/applications/index"},{"title":"Integrations","href":"/guides/applications/integrations/index"},{"group":"Platform Apps","root":{"title":"Platform Apps","href":"/guides/applications/platform-apps/index"},"pages":[{"title":"Create a Platform App","href":"/guides/applications/platform-apps/create"}]},{"group":"Web App Integrations","root":{"title":"Web App Integrations","href":"/guides/applications/web-app-integrations/index"},"pages":[{"title":"Integrations Types","href":"/guides/applications/web-app-integrations/types"},{"title":"User Experience","href":"/guides/applications/web-app-integrations/user-experience"},{"title":"Create Web App Integration","href":"/guides/applications/web-app-integrations/configure"}]},{"group":"Slack integration mappings","root":{"title":"Slack Integration Mappings","sidebarTitle":"Overview","href":"/guides/integration-mappings/slack-mappings/index"},"pages":[{"title":"Slack Integration Mappings Setup","href":"/guides/integration-mappings/slack-mappings/setup"},{"title":"List Slack Integration Mappings","href":"/guides/integration-mappings/slack-mappings/list-mappings"},{"title":"Create Slack Integration Mapping","href":"/guides/integration-mappings/slack-mappings/create-mapping"},{"title":"Update Slack Integration Mapping","href":"/guides/integration-mappings/slack-mappings/update-mapping"},{"title":"Delete Slack Integration Mapping","href":"/guides/integration-mappings/slack-mappings/delete-mapping"},{"title":"Slack Integration Mappings Troubleshooting","href":"/guides/integration-mappings/slack-mappings/troubleshooting"}]},{"group":"Teams integration mappings","root":{"title":"Teams integration mappings","sidebarTitle":"Overview","href":"/guides/integration-mappings/teams-mappings/index"},"pages":[{"title":"List Teams integration mappings","href":"/guides/integration-mappings/teams-mappings/list-mappings"},{"title":"Create Teams integration mappings","href":"/guides/integration-mappings/teams-mappings/create-mappings"},{"title":"Update Teams integration mappings","href":"/guides/integration-mappings/teams-mappings/update-mappings"},{"title":"Delete Teams integration mappings","href":"/guides/integration-mappings/teams-mappings/delete-mappings"}]}]},{"group":"Identity \u0026 access","pages":[{"group":"Authentication","root":{"title":"Authentication","sidebarTitle":"Overview","href":"/guides/authentication/index"},"pages":[{"group":"OAuth 2.0","root":{"title":"OAuth 2.0 authentication","sidebarTitle":"Overview","href":"/guides/authentication/oauth2/index"},"pages":[{"title":"Setup with OAuth 2.0","href":"/guides/authentication/oauth2/oauth2-setup"},{"title":"OAuth 2.0 with SDKs","href":"/guides/authentication/oauth2/with-sdk"},{"title":"OAuth 2.0 without SDKs","href":"/guides/authentication/oauth2/without-sdk"},{"title":"as-user header","href":"/guides/authentication/oauth2/as-user"}]},{"group":"Client Credentials Grant","root":{"title":"Client Credentials Grant","sidebarTitle":"Overview","href":"/guides/authentication/client-credentials/index"},"pages":[{"title":"Setup with Client Credentials Grant","href":"/guides/authentication/client-credentials/client-credentials-setup"}]},{"group":"JWT","root":{"title":"JWT authentication","sidebarTitle":"Overview","href":"/guides/authentication/jwt/index"},"pages":[{"title":"Setup with JWT","href":"/guides/authentication/jwt/jwt-setup"},{"title":"JWT with SDKs","href":"/guides/authentication/jwt/with-sdk"},{"title":"JWT without SDKs","href":"/guides/authentication/jwt/without-sdk"},{"title":"as-user header","href":"/guides/authentication/jwt/as-user"},{"title":"User access tokens","href":"/guides/authentication/jwt/user-access-tokens"}]},{"title":"Switch between CCG and JWT","href":"/guides/authentication/switch-server-auth-type"},{"group":"Tokens","root":{"title":"Tokens","sidebarTitle":"Overview","href":"/guides/authentication/tokens/index"},"pages":[{"title":"Access tokens","href":"/guides/authentication/tokens/access-tokens"},{"title":"Use a token","href":"/guides/authentication/tokens/api-calls"},{"title":"Refresh a token","href":"/guides/authentication/tokens/refresh"},{"title":"Revoke a token","href":"/guides/authentication/tokens/revoke"},{"title":"Downscope a token","href":"/guides/authentication/tokens/downscope"},{"title":"Use a token in SDKs","href":"/guides/authentication/tokens/sdks"},{"title":"Developer tokens","href":"/guides/authentication/tokens/developer-tokens"},{"title":"Annotator tokens","href":"/guides/authentication/tokens/annotator-tokens"}]},{"title":"Box API and SSO","sidebarTitle":"Enterprise SSO","href":"/guides/authentication/sso"},{"title":"Authentication best practices","sidebarTitle":"Best practices","href":"/guides/authentication/best-practices"}]},{"group":"Authorization","root":{"title":"Authorization","sidebarTitle":"Overview","href":"/guides/authorization/index"},"pages":[{"title":"Platform app approval","href":"/guides/authorization/platform-app-approval"},{"title":"Limited Access App Approval","href":"/guides/authorization/limited-access-approval"},{"title":"Common Errors","href":"/guides/authorization/common-errors"}]},{"group":"SSO \u0026 App users","root":{"title":"SSO \u0026 App users","href":"/guides/sso-identities-and-app-users/index"},"pages":[{"group":"Connect Okta identities to Box App Users in a web app","root":{"title":"Connect Okta identities to Box App Users in a web app","href":"/guides/sso-identities-and-app-users/connect-okta-to-app-users/index"},"pages":[{"title":"Scaffold application code (Okta integration)","sidebarTitle":"1. Scaffold application code","href":"/guides/sso-identities-and-app-users/connect-okta-to-app-users/scaffold-application-code"},{"title":"Configure Okta","sidebarTitle":"2. Configure Okta","href":"/guides/sso-identities-and-app-users/connect-okta-to-app-users/configure-okta"},{"title":"Configure Box (Okta integration)","sidebarTitle":"3. Configure Box","href":"/guides/sso-identities-and-app-users/connect-okta-to-app-users/configure-box"},{"title":"Logging into the app with Okta","sidebarTitle":"4. Logging into the app with Okta","href":"/guides/sso-identities-and-app-users/connect-okta-to-app-users/logging-into-app"},{"title":"Find or create Box app users","sidebarTitle":"5. Find or create Box app users","href":"/guides/sso-identities-and-app-users/connect-okta-to-app-users/find-or-create-box-users"},{"title":"Run the application","sidebarTitle":"6. Run the application","href":"/guides/sso-identities-and-app-users/connect-okta-to-app-users/run-the-app"}]},{"title":"Connect SSO identities to app users","href":"/guides/sso-identities-and-app-users/connect-identities"},{"title":"Create connection between SSO identity and app user","href":"/guides/sso-identities-and-app-users/create-app-user"},{"title":"Find app user for SSO identity","href":"/guides/sso-identities-and-app-users/find-app-user"}]}]},{"group":"Using the API","pages":[{"title":"API Calls","href":"/guides/api-calls/index"},{"title":"Types and formats","href":"/guides/api-calls/types-and-formats"},{"title":"Status codes","href":"/guides/api-calls/status-codes"},{"title":"Sorting responses","href":"/guides/api-calls/sorting"},{"title":"Request extra fields","href":"/guides/api-calls/request-extra-fields"},{"title":"Ensure consistency with headers","href":"/guides/api-calls/ensure-consistency"},{"title":"Allow domain access","href":"/guides/api-calls/allowing-domain-access"},{"title":"Suppress notifications","href":"/guides/api-calls/suppress-notifications"},{"title":"Language codes","href":"/guides/api-calls/language-codes"},{"title":"API versioning strategy","href":"/guides/api-calls/api-versioning-strategy"},{"group":"Pagination","root":{"title":"Pagination","href":"/guides/api-calls/pagination/index"},"pages":[{"title":"Box API offset-based pagination","sidebarTitle":"Offset-based","href":"/guides/api-calls/pagination/offset-based"},{"title":"Marker-based Pagination","href":"/guides/api-calls/pagination/marker-based"}]},{"group":"Permissions and errors","root":{"title":"Box API errors","sidebarTitle":"Errors","href":"/guides/api-calls/permissions-and-errors/common-errors"},"pages":[{"title":"Box API rate limits","sidebarTitle":"Rate limits","href":"/guides/api-calls/permissions-and-errors/rate-limits"},{"title":"Box API scopes","sidebarTitle":"Scopes","href":"/guides/api-calls/permissions-and-errors/scopes"},{"title":"Token \u0026 URL Expiration","href":"/guides/api-calls/permissions-and-errors/expiration"},{"title":"Versioning errors","href":"/guides/api-calls/permissions-and-errors/versioning-errors"}]}]},{"group":"Troubleshooting","pages":[{"title":"Debugging your Box app","href":"/guides/troubleshooting/debugging-your-box-app"},{"title":"App Diagnostics Report","href":"/guides/troubleshooting/app-diagnostics-report"}]},{"group":"Content","pages":[{"group":"Files","pages":[{"title":"Get File Information","href":"/guides/files/get"},{"title":"File limitations","sidebarTitle":"Limitations","href":"/guides/files/limitations"}]},{"group":"Folders","pages":[{"title":"Create Folder","href":"/guides/folders/single/create"},{"title":"Update Folder","href":"/guides/folders/single/update"},{"title":"Rename Folder","href":"/guides/folders/single/rename"},{"title":"Move Folder","href":"/guides/folders/single/move"},{"title":"Copy Folder","href":"/guides/folders/single/copy"},{"title":"Delete Folder","href":"/guides/folders/single/delete"},{"title":"Change Folder Owner","href":"/guides/folders/single/change-owner"},{"title":"Create Folder Lock","href":"/guides/folders/single/create-lock"},{"title":"Get Folder Lock","href":"/guides/folders/single/get-locks"},{"title":"Delete Folder Lock","href":"/guides/folders/single/delete-lock"},{"title":"Build Folder Tree","href":"/guides/folders/bulk/build-folder-tree"}]},{"group":"Uploads","root":{"title":"Uploads","sidebarTitle":"Overview","href":"/guides/uploads/index"},"pages":[{"title":"Preflight Check","href":"/guides/uploads/check"},{"group":"Direct Uploads","root":{"title":"Direct Uploads","sidebarTitle":"Overview","href":"/guides/uploads/direct/index"},"pages":[{"title":"Upload New File","href":"/guides/uploads/direct/file"},{"title":"Upload File Version","href":"/guides/uploads/direct/file-version"}]},{"group":"Chunked Uploads","root":{"title":"Chunked Uploads","sidebarTitle":"Overview","href":"/guides/uploads/chunked/index"},"pages":[{"title":"Create Upload Session","href":"/guides/uploads/chunked/create-session"},{"title":"Chunked Upload with SDKs","href":"/guides/uploads/chunked/with-sdks"},{"title":"Upload Part","href":"/guides/uploads/chunked/upload-part"},{"title":"Commit Upload Session","href":"/guides/uploads/chunked/commit-session"},{"title":"Upload All Files in Folder","href":"/guides/uploads/chunked/folder"}]},{"group":"Tutorials","root":{"title":"Upload methods with Python","href":"/guides/uploads/tutorials/upload-methods-python"},"pages":[{"title":"Recursively upload a folder with Python","href":"/guides/uploads/tutorials/recursive-folder-upload-python"}]}]},{"group":"Downloads","root":{"title":"Downloads","sidebarTitle":"Overview","href":"/guides/downloads/index"},"pages":[{"title":"Download File","href":"/guides/downloads/file"},{"title":"Download File Version","href":"/guides/downloads/file-version"},{"title":"Get Download URL","href":"/guides/downloads/get-url"},{"title":"Download Shared Link","href":"/guides/downloads/shared-link"},{"title":"Download All Files in Folder using SDKs","href":"/guides/downloads/folder"},{"title":"Download in Browser","href":"/guides/downloads/in-browser"},{"title":"Download ZIP Archive","href":"/guides/downloads/zip-archive"}]},{"group":"Web Links","root":{"title":"Web Links","sidebarTitle":"Overview","href":"/guides/web-links/index"},"pages":[{"title":"Create Web Link","href":"/guides/web-links/create"},{"title":"Delete Web Link","href":"/guides/web-links/delete"}]},{"group":"Trash","root":{"title":"Trash","sidebarTitle":"Overview","href":"/guides/trash/index"},"pages":[{"title":"Restore File","href":"/guides/trash/restore-file"},{"title":"Permanently Delete File","href":"/guides/trash/permanently-delete-file"},{"title":"Restore Folder","href":"/guides/trash/restore-folder"},{"title":"Permanently Delete Folder","href":"/guides/trash/permanently-delete-folder"},{"title":"Restore Web Link","href":"/guides/trash/restore-web-link"},{"title":"Permanently Delete Web Link","href":"/guides/trash/permanently-delete-web-link"}]},{"group":"Representations","root":{"title":"Representations","sidebarTitle":"Overview","href":"/guides/representations/index"},"pages":[{"title":"List All Representations for File","href":"/guides/representations/list-all-representations"},{"title":"Request Desired Representation","href":"/guides/representations/request-a-representation"},{"title":"Download File Representation","href":"/guides/representations/download-a-representation"},{"title":"Get Thumbnail Representation","href":"/guides/representations/thumbnail-representation"},{"title":"Get Basic Thumbnail","href":"/guides/representations/thumbnail"},{"title":"Get Markdown Representation","href":"/guides/representations/markdown"},{"title":"Get Text Representation","href":"/guides/representations/text"},{"title":"Get PDF Representation","href":"/guides/representations/pdf"},{"title":"Supported File Types","href":"/guides/representations/supported-file-types"}]},{"group":"Box Archive","root":{"title":"Box Archive","sidebarTitle":"Overview","href":"/guides/archives/index"},"pages":[{"title":"Add content to Box Archive","href":"/guides/archives/add-content"},{"title":"Restore content from Box Archive","href":"/guides/archives/restore-content"},{"title":"Supported APIs for Box Archive","href":"/guides/archives/supported-apis"}]}]},{"group":"Collaboration","pages":[{"group":"Collaborations","root":{"title":"Collaborations","sidebarTitle":"Overview","href":"/guides/collaborations/index"},"pages":[{"group":"Connect Slack to Group Collaborations","root":{"title":"Connect Slack to Box Group Collaborations","href":"/guides/collaborations/connect-slack-to-group-collabs/index"},"pages":[{"title":"Configure Slack","sidebarTitle":"1. Configure Slack","href":"/guides/collaborations/connect-slack-to-group-collabs/configure-slack"},{"title":"Configure Box (Slack integration)","sidebarTitle":"2. Configure Box","href":"/guides/collaborations/connect-slack-to-group-collabs/configure-box"},{"title":"Scaffold application code (Slack integration)","sidebarTitle":"3. Scaffold application code","href":"/guides/collaborations/connect-slack-to-group-collabs/scaffold-application-code"},{"title":"Handle Slack Events","sidebarTitle":"4. Handle Slack Events","href":"/guides/collaborations/connect-slack-to-group-collabs/handle-slack-events"},{"title":"Connect Bot to Box","sidebarTitle":"5. Connect Bot to Box","href":"/guides/collaborations/connect-slack-to-group-collabs/connect-box-functions"},{"title":"Test the bot","sidebarTitle":"6. Test the bot","href":"/guides/collaborations/connect-slack-to-group-collabs/test-bot"}]},{"title":"Share Content with User","href":"/guides/collaborations/share-content"},{"title":"Sharing with Groups","href":"/guides/collaborations/groups"},{"title":"Get Pending Collaborations","href":"/guides/collaborations/pending"},{"group":"Allowed Domains","root":{"title":"Allowed collaboration domains overview","sidebarTitle":"Overview","href":"/guides/collaborations/allowed-domains/index"},"pages":[{"title":"Allow a domain for collaboration","href":"/guides/collaborations/allowed-domains/create"},{"title":"List allowed domains for collaboration","href":"/guides/collaborations/allowed-domains/list"},{"title":"Remove a previously allowed domain for collaboration","href":"/guides/collaborations/allowed-domains/delete"}]}]},{"group":"Shared Links","root":{"title":"Shared Links","sidebarTitle":"Overview","href":"/guides/shared-links/index"},"pages":[{"title":"Create or Update Shared Link","href":"/guides/shared-links/create-or-update"},{"title":"Find Item from Shared Link","href":"/guides/shared-links/find-for-item"},{"title":"Remove Shared Link","href":"/guides/shared-links/remove"},{"title":"Shared Link Permissions","href":"/guides/shared-links/permissions"}]},{"group":"Comments","root":{"title":"Comments","href":"/guides/comments/index"},"pages":[{"title":"Create Comment","href":"/guides/comments/create-comment"},{"title":"Create Reply","href":"/guides/comments/create-reply"}]},{"group":"Tasks","root":{"title":"Tasks","href":"/guides/tasks/index"},"pages":[{"title":"Create a task","href":"/guides/tasks/create"},{"title":"Get information about a task","href":"/guides/tasks/get"},{"title":"Lists all tasks for a file","href":"/guides/tasks/for-file"},{"title":"Make changes to an existing task","href":"/guides/tasks/update"},{"title":"Delete a task","href":"/guides/tasks/delete"},{"group":"Assigning tasks","root":{"title":"Assigning tasks","sidebarTitle":"Overview","href":"/guides/tasks/assignments/index"},"pages":[{"title":"Assign a task to a user","href":"/guides/tasks/assignments/assign"},{"title":"Unassign a task","href":"/guides/tasks/assignments/unassign"},{"title":"Change an assignment's message","href":"/guides/tasks/assignments/update-message"},{"title":"Get task assignment information","href":"/guides/tasks/assignments/get"},{"title":"List a task's assignments","href":"/guides/tasks/assignments/list"},{"title":"Change task assignment state","href":"/guides/tasks/assignments/change-state"}]}]},{"group":"Collections","root":{"title":"Collections","href":"/guides/collections/index"},"pages":[{"title":"List User's Collections","href":"/guides/collections/list"},{"title":"List Items in Collections","href":"/guides/collections/list-items"},{"title":"Add Item to Collection","href":"/guides/collections/add"},{"title":"Remove Item from Collection","href":"/guides/collections/remove"}]},{"group":"File Requests","root":{"title":"File Requests","sidebarTitle":"Overview","href":"/guides/file-requests/index"},"pages":[{"title":"Create a template File Request","href":"/guides/file-requests/template"},{"title":"Copy a File Request","href":"/guides/file-requests/copy"},{"title":"Get information for a File Request","href":"/guides/file-requests/get"},{"title":"Update a File Request","href":"/guides/file-requests/update"},{"title":"Delete a File Request","href":"/guides/file-requests/delete"}]},{"group":"Box Notes","root":{"title":"Box Notes API","sidebarTitle":"Overview","href":"/guides/box-notes/index"},"pages":[{"title":"Get started with Box Notes API","href":"/guides/box-notes/get-started"},{"title":"Convert Markdown to Box Note","href":"/guides/box-notes/convert-markdown"},{"title":"Box Notes API use cases","href":"/guides/box-notes/use-cases"}]},{"group":"Box Hubs","root":{"title":"Box Hubs","href":"/guides/hubs-api/index"},"pages":[{"title":"Turn an enterprise document repository into an access-controlled AI knowledge base","sidebarTitle":"Access-controlled knowledge base","href":"/guides/hubs-api/access-controlled-knowledge-base"},{"title":"Hubs APIs use cases","href":"/guides/hubs-api/use-cases"},{"group":"Hubs","root":{"title":"Create a hub","href":"/guides/hubs-api/hubs/create-hub"},"pages":[{"title":"Get a hub","href":"/guides/hubs-api/hubs/get-hub"},{"title":"List hubs","href":"/guides/hubs-api/hubs/list-hubs"},{"title":"Update a hub","href":"/guides/hubs-api/hubs/update-hub"},{"title":"Delete a hub","href":"/guides/hubs-api/hubs/delete-hub"},{"title":"Copy a hub","href":"/guides/hubs-api/hubs/copy-hub"}]},{"title":"Manage hub items","href":"/guides/hubs-api/hubs-items/hub-items"},{"title":"Manage hub collaborations","href":"/guides/hubs-api/hubs-collaborations/hub-collaborations"}]}]},{"group":"Metadata \u0026 search","pages":[{"group":"Metadata","root":{"sidebarTitle":"Overview","title":"Metadata","href":"/guides/metadata/index"},"pages":[{"group":"Working with Metadata","root":{"title":"Working with Metadata","sidebarTitle":"Overview","href":"/guides/metadata/quick-start/index"},"pages":[{"title":"List all metadata templates (quick start)","sidebarTitle":"1. List all metadata templates","href":"/guides/metadata/quick-start/list-all"},{"title":"Create a custom metadata template","sidebarTitle":"2. Create a custom metadata template","href":"/guides/metadata/quick-start/create-template"},{"title":"Apply metadata to a file","sidebarTitle":"3. Apply metadata to a file","href":"/guides/metadata/quick-start/create-instance"},{"title":"Update metadata on a file","sidebarTitle":"4. Update metadata on a file","href":"/guides/metadata/quick-start/update-instance"},{"title":"Update a metadata template (quick start)","sidebarTitle":"5. Update a metadata template","href":"/guides/metadata/quick-start/update-template"},{"title":"Create a metadata query","sidebarTitle":"6. Create a metadata query","href":"/guides/metadata/quick-start/create-query"},{"title":"Metadata quick start: next steps","sidebarTitle":"Next steps","href":"/guides/metadata/quick-start/next-steps"}]},{"title":"Metadata template scopes","href":"/guides/metadata/scopes"},{"title":"Classifications","href":"/guides/metadata/classifications"},{"group":"Metadata templates","root":{"title":"Metadata templates overview","sidebarTitle":"Overview","href":"/guides/metadata/templates/index"},"pages":[{"title":"List all metadata templates","href":"/guides/metadata/templates/list"},{"title":"Get a metadata template","href":"/guides/metadata/templates/get"},{"title":"Create a metadata template","href":"/guides/metadata/templates/create"},{"title":"Update a metadata template","href":"/guides/metadata/templates/update"},{"title":"Delete a metadata template","href":"/guides/metadata/templates/delete"}]},{"group":"Metadata taxonomies","root":{"title":"Metadata taxonomies overview","sidebarTitle":"Overview","href":"/guides/metadata/taxonomies/index"},"pages":[{"title":"Create metadata taxonomy items","href":"/guides/metadata/taxonomies/create"},{"title":"List metadata taxonomies","href":"/guides/metadata/taxonomies/list"},{"title":"Get metadata taxonomy items","href":"/guides/metadata/taxonomies/get"},{"title":"Update metadata taxonomies","href":"/guides/metadata/taxonomies/update"},{"title":"Remove metadata taxonomy items","href":"/guides/metadata/taxonomies/remove"}]},{"group":"Metadata fields","root":{"title":"Metadata fields","sidebarTitle":"Overview","href":"/guides/metadata/fields/index"},"pages":[{"title":"String metadata field","href":"/guides/metadata/fields/string"},{"title":"Float metadata field","href":"/guides/metadata/fields/float"},{"title":"Date metadata field","href":"/guides/metadata/fields/date"},{"title":"Enum metadata field","href":"/guides/metadata/fields/enum"},{"title":"Multi Select metadata field","href":"/guides/metadata/fields/multi-select"}]},{"group":"Metadata instances","root":{"title":"Metadata instances overview","sidebarTitle":"Overview","href":"/guides/metadata/instances/index"},"pages":[{"title":"List all metadata on an item","href":"/guides/metadata/instances/list"},{"title":"Get metadata on item","href":"/guides/metadata/instances/get"},{"title":"Apply metadata to an item","href":"/guides/metadata/instances/create"},{"title":"Update metadata on an item","href":"/guides/metadata/instances/update"},{"title":"Remove metadata from an item","href":"/guides/metadata/instances/delete"}]},{"group":"Metadata queries","root":{"title":"Metadata queries","sidebarTitle":"Overview","href":"/guides/metadata/queries/index"},"pages":[{"title":"Create a query","href":"/guides/metadata/queries/create"},{"title":"Query syntax","href":"/guides/metadata/queries/syntax"},{"title":"Query item fields","href":"/guides/metadata/queries/item-fields"},{"title":"Common errors","href":"/guides/metadata/queries/errors"},{"title":"Metadata query limitations","sidebarTitle":"Limitations","href":"/guides/metadata/queries/limitations"},{"title":"Paginate and sort","href":"/guides/metadata/queries/pagination"},{"title":"Comparison to regular search","href":"/guides/metadata/queries/comparison"}]},{"group":"Metadata cascade policies","root":{"title":"Metadata cascade policies overview","sidebarTitle":"Overview","href":"/guides/metadata/cascades/index"},"pages":[{"title":"List metadata cascade policies","href":"/guides/metadata/cascades/list"},{"title":"Get a metadata cascade policy","href":"/guides/metadata/cascades/get"},{"title":"Create a metadata cascade policy","href":"/guides/metadata/cascades/create"},{"title":"Force-apply metadata to all items in a folder","href":"/guides/metadata/cascades/force-apply"},{"title":"Delete a metadata cascade policy","href":"/guides/metadata/cascades/delete"}]}]},{"group":"Query","root":{"title":"Box query","href":"/guides/query/box-query"},"pages":[{"title":"Query insights","href":"/guides/query/insights"}]},{"group":"Search","root":{"title":"Search","sidebarTitle":"Overview","href":"/guides/search/index"},"pages":[{"group":"Search content using metadata","root":{"title":"Search content using metadata","sidebarTitle":"Overview","href":"/guides/search/quick-start/index"},"pages":[{"title":"Create a Metadata Template","sidebarTitle":"1. Create a Metadata Template","href":"/guides/search/quick-start/create-metadata-template"},{"title":"Locate Information about a Metadata Template","sidebarTitle":"2. Locate Information about a Metadata Template","href":"/guides/search/quick-start/locate-template-info"},{"title":"Add Metadata Template to a File","sidebarTitle":"3. Add Metadata Template to a File","href":"/guides/search/quick-start/apply-template-to-file"},{"title":"Use the Metadata Query API","sidebarTitle":"4. Use the Metadata Query API","href":"/guides/search/quick-start/metadata-query-api"},{"title":"Next Steps","sidebarTitle":"5. Next Steps","href":"/guides/search/quick-start/next-steps"}]},{"title":"Search indexing","href":"/guides/search/indexing"},{"title":"Query operators","href":"/guides/search/query-operators"},{"title":"Filter search results","href":"/guides/search/filtering"},{"title":"Search result pagination","sidebarTitle":"Pagination","href":"/guides/search/pagination"},{"title":"Metadata Query Filters","href":"/guides/search/metadata-filters"},{"title":"Enterprise-wide search","href":"/guides/search/enterprise"},{"title":"Searching trash","href":"/guides/search/trash"},{"title":"Finding recent shared links","href":"/guides/search/shared-links"},{"title":"Requesting extra fields","href":"/guides/search/fields"}]}]},{"group":"Events \u0026 webhooks","pages":[{"group":"Events","root":{"title":"Events","href":"/guides/events/index"},"pages":[{"group":"User Events","root":{"title":"User Events","sidebarTitle":"Overview","href":"/guides/events/user-events/index"},"pages":[{"title":"Get User Events","href":"/guides/events/user-events/for-user"},{"title":"Long-Poll Events","href":"/guides/events/user-events/polling"}]},{"group":"Enterprise Events","root":{"title":"Enterprise Events","sidebarTitle":"Overview","href":"/guides/events/enterprise-events/index"},"pages":[{"title":"Get Enterprise Events","href":"/guides/events/enterprise-events/for-enterprise"},{"title":"Migrating From History To Stream","href":"/guides/events/enterprise-events/migrate-to-stream"}]},{"group":"Event Stream Parameters","root":{"title":"Stream Types","href":"/guides/events/parameters/stream-types"},"pages":[{"title":"Stream Position Pagination","href":"/guides/events/parameters/pagination"}]},{"group":"Event Triggers","root":{"title":"Event Triggers","sidebarTitle":"Overview","href":"/guides/events/event-triggers/index"},"pages":[{"title":"Event Source","href":"/guides/events/event-triggers/event-source"},{"title":"AI Security Detection Events","href":"/guides/events/event-triggers/ai-security-detection-events"},{"title":"Shield Alert Events","href":"/guides/events/event-triggers/shield-alert-events"},{"title":"Shield Information Barrier Events","href":"/guides/events/event-triggers/shield-information-barrier-events"},{"title":"Shield Smart Access Events","href":"/guides/events/event-triggers/shield-smart-access-events"},{"title":"Sign Events","href":"/guides/events/event-triggers/sign-events"}]}]},{"group":"Webhooks","root":{"title":"Webhooks","href":"/guides/webhooks/index"},"pages":[{"title":"Webhook Event Triggers","href":"/guides/webhooks/triggers"},{"group":"V1 Webhooks","root":{"title":"V1 Webhooks","href":"/guides/webhooks/v1/index"},"pages":[{"title":"Create webhooks (v1)","sidebarTitle":"Create webhooks","href":"/guides/webhooks/v1/create-v1"},{"title":"Delete webhooks (v1)","sidebarTitle":"Delete webhooks","href":"/guides/webhooks/v1/delete-v1"}]},{"group":"V2 Webhooks","root":{"title":"V2 webhooks","href":"/guides/webhooks/v2/index"},"pages":[{"title":"List Webhooks for a User","href":"/guides/webhooks/v2/list-v2"},{"title":"Create webhooks (v2)","sidebarTitle":"Create webhooks","href":"/guides/webhooks/v2/create-v2"},{"title":"Update Webhooks","href":"/guides/webhooks/v2/update-v2"},{"title":"Delete webhooks (v2)","sidebarTitle":"Delete webhooks","href":"/guides/webhooks/v2/delete-v2"},{"title":"Verify Box webhook signatures","href":"/guides/webhooks/v2/signatures-v2"},{"title":"Webhook limitations","sidebarTitle":"Limitations","href":"/guides/webhooks/v2/limitations-v2"}]}]}]},{"group":"Users","pages":[{"title":"Users in Box API","href":"/guides/users/index"},{"title":"Create Managed User","href":"/guides/users/create-managed-user"},{"title":"Create App User","href":"/guides/users/create-app-user"},{"title":"Delete User","href":"/guides/users/delete-user"},{"title":"Bulk delete external users","href":"/guides/users/bulk-delete-external-users"},{"group":"Provision Users","root":{"title":"Provision Users","sidebarTitle":"Overview","href":"/guides/users/provision/index"},"pages":[{"title":"Create Architecture Skeleton","href":"/guides/users/provision/architecture"},{"title":"Populate Content","href":"/guides/users/provision/populate-content"},{"title":"Setup Shared Folders","href":"/guides/users/provision/shared-folders"}]},{"group":"Deprovision Users","root":{"title":"Deprovision Users","sidebarTitle":"Overview","href":"/guides/users/deprovision/index"},"pages":[{"title":"Transfer Files \u0026 Folders","href":"/guides/users/deprovision/transfer-folders"}]}]},{"group":"Intelligent workflow","pages":[{"title":"Intelligent workflow with Box","href":"/guides/intelligent-workflow/index"},{"group":"Box Automate","root":{"title":"Box Automate","sidebarTitle":"Overview","href":"/guides/box-automate/index"},"pages":[{"title":"Get started with Box Automate","sidebarTitle":"Get started","href":"/guides/box-automate/getting-started-box-automate"},{"title":"Triggers, outcomes, and logic in Box Automate","sidebarTitle":"Triggers and logic","href":"/guides/box-automate/triggers-and-logic"}]},{"group":"Box Doc Gen","root":{"title":"Box Doc Gen","sidebarTitle":"Overview","href":"/guides/docgen/index"},"pages":[{"title":"Get started with Box Doc Gen","href":"/guides/docgen/docgen-getting-started"},{"title":"Mark file as Box Doc Gen template","href":"/guides/docgen/mark-template"},{"title":"Generate documents","href":"/guides/docgen/generate-document"},{"title":"Box Doc Gen templates","href":"/guides/docgen/docgen-templates"},{"title":"Box Doc Gen jobs","href":"/guides/docgen/docgen-jobs"},{"title":"Box Doc Split","href":"/guides/docgen/doc-split"},{"title":"Manual split","href":"/guides/docgen/manual-split"},{"title":"Smart split","href":"/guides/docgen/smart-split"}]},{"group":"Box Relay","root":{"title":"Box Relay","sidebarTitle":"Overview","href":"/guides/box-relay/index"},"pages":[{"title":"Get Workflows","href":"/guides/box-relay/get-workflows"},{"title":"Start Workflow","href":"/guides/box-relay/start-workflow"}]}]},{"group":"E-signatures","pages":[{"title":"Box Sign","href":"/guides/box-sign/index"},{"title":"Set up Box Sign","sidebarTitle":"Setup","href":"/guides/box-sign/setup"},{"title":"Quick start","sidebarTitle":"Quick start","href":"/guides/box-sign/quick-start"},{"group":"Document types","root":{"sidebarTitle":"Overview","title":"Document types","href":"/guides/box-sign/document-types/index"},"pages":[{"title":"Signing unstructured docs","sidebarTitle":"Unstructured","href":"/guides/box-sign/document-types/unstructured"},{"title":"Signing structured docs","sidebarTitle":"Structured","href":"/guides/box-sign/document-types/structured"},{"title":"Create a sign request with a template","sidebarTitle":"Templates","href":"/guides/box-sign/document-types/sign-templates"}]},{"group":"Create and configure","root":{"title":"Create a Box Sign request","sidebarTitle":"Create a request","href":"/guides/box-sign/create-sign-request"},"pages":[{"title":"Multiple signers and signing order","sidebarTitle":"Multiple signers","href":"/guides/box-sign/multiple-signers"},{"title":"Verify signer identity","sidebarTitle":"Signer verification","href":"/guides/box-sign/signer-verification"},{"title":"In-person signing","sidebarTitle":"In-person signing","href":"/guides/box-sign/in-person-signing"},{"title":"21 CFR Part 11 requests","sidebarTitle":"21 CFR Part 11","href":"/guides/box-sign/cfr-part-11"},{"title":"Deliver the request to signers","sidebarTitle":"Deliver to signers","href":"/guides/box-sign/how-signers-get-the-request"}]},{"group":"Manage requests","root":{"title":"List and get Box Sign requests","sidebarTitle":"List and get requests","href":"/guides/box-sign/list-sign-requests"},"pages":[{"title":"Resend a Box Sign request","sidebarTitle":"Resend a request","href":"/guides/box-sign/resend-sign-request"},{"title":"Cancel a Box Sign request","sidebarTitle":"Cancel a request","href":"/guides/box-sign/cancel-sign-request"},{"title":"Box Sign webhooks","sidebarTitle":"Webhooks","href":"/guides/box-sign/webhooks"}]},{"group":"Reference","root":{"title":"Box Sign endpoints","sidebarTitle":"Endpoints","href":"/guides/box-sign/api-endpoints"},"pages":[{"title":"Box Sign request status","sidebarTitle":"Request status","href":"/guides/box-sign/request-status"}]}]},{"group":"Security \u0026 compliance","pages":[{"group":"Security","root":{"title":"Security","sidebarTitle":"Overview","href":"/guides/security/index"},"pages":[{"title":"FedRAMP","href":"/guides/security/fedramp"},{"title":"Device Pinners","href":"/guides/security/device-pinners"},{"title":"Cross-Origin Resource Sharing (CORS)","href":"/guides/security/cors"},{"group":"Terms of Service","root":{"title":"Terms of Service","sidebarTitle":"Overview","href":"/guides/security/terms-of-service/index"},"pages":[{"title":"Application Flow","href":"/guides/security/terms-of-service/flow"},{"title":"Find Terms for Collaboration","href":"/guides/security/terms-of-service/for-colaboration"},{"title":"Permissions","href":"/guides/security/terms-of-service/permissions"}]}]},{"group":"Legal Holds","root":{"title":"Legal Holds","sidebarTitle":"Overview","href":"/guides/legal-holds/index"},"pages":[{"title":"List All Legal Hold Policies","href":"/guides/legal-holds/list"},{"title":"Get Legal Hold Policy","href":"/guides/legal-holds/get"}]},{"group":"Retention Policies","root":{"title":"Retention Policies","sidebarTitle":"Overview","href":"/guides/retention-policies/index"},"pages":[{"title":"List All Retention Policies","href":"/guides/retention-policies/list"},{"title":"Get Retention Policy","href":"/guides/retention-policies/get"}]}]}]},{"tab":"AI","pages":[{"title":"AI","href":"/ai"}]},{"tab":"API reference","pages":[{"title":"API reference","href":"/reference"}]},{"tab":"Tools","pages":[{"title":"Tools","href":"/sdks-and-tools"}]},{"tab":"Tutorials","pages":[{"title":"Tutorials","href":"/tutorials"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog/2026"}]}],"global":{"anchors":[{"anchor":"Box","icon":"https://mintlify.s3.us-west-1.amazonaws.com/box/images/sidebar/box.svg","href":"https://www.box.com/home"},{"anchor":"Community","icon":"book-open-cover","href":"https://community.box.com/box-platform-5"},{"anchor":"Developer Blog","icon":"newspaper","href":"https://blog.box.com/developer"},{"anchor":"Box SDKs","icon":"code","href":"https://github.com/box/sdks"},{"anchor":"Box Docs","icon":"file-lines","href":"https://docs.box.com"}]}},{"language":"ja","banner":{"content":"Join live webinar on Sept 29: See how to give agents a computer and enterprise content to work on with Box and Daytona. [Register now](https://events.zoom.us/ev/Amkp36LSSk_TxOQbBytoLoHa_Ztg7quKlJv2u74NRvSZJtlnbG5L~AqO7fnFo-ePaTqEcPrKs4jSfhxq3pMVK52ut69Q2zfn9jOr70vx5DQVJaeNF1dDZE9_0N33jMcY1yE9LoHDL5Oamqg).","dismissible":true},"footer":{"socials":{"x":"https://x.com/box","github":"https://github.com/box-community","linkedin":"https://linkedin.com/company/box","youtube":"https://www.youtube.com/user/box","facebook":"https://www.facebook.com/box"},"links":[{"header":"リソース","items":[{"label":"ニュースレターの登録解除","href":"https://go.box.com/preferences.html"},{"label":"利用規約","href":"https://cloud.app.box.com/s/rmwxu64h1ipr41u49w3bbuvbsa29wku9"},{"label":"個人情報保護方針","href":"https://www.box.com/en-gb/legal/privacypolicy?url_redirect=direct"},{"label":"Cookieに関する通知","href":"https://www.box.com/en-gb/legal/cookie-notification?url_redirect=direct"},{"label":"llms.txt","href":"https://developer.box.com/llms.txt"}]}]},"navbar":{"links":[{"href":"https://account.box.com/developers/console","label":"ログイン","type":"button"}],"primary":{"type":"button","label":"今すぐ無料で開始","href":"https://account.box.com/signup/developer"}},"pages":[{"title":"ja","href":"/ja/guides/getting-started"}]}]},"title":"Box for Developers quick start - Box Dev Docs","buildId":"dpl_5UGCeHaPhSKbAExsKaHeR8dW3HyG","deploymentId":"dpl_5UGCeHaPhSKbAExsKaHeR8dW3HyG","dynamics":["10e4515597","a74be98ba7"],"chunks":["BannerMarkdown-CKzcWTtv.js","dist-Bg8TUsFc.js","lib-B6V4jynN.js","lib-vtHBCq3V.js","clsx-BAOLXcPh.js","html-void-elements-mCSPHezU.js","katex-Cnv50rb0.js","marked.esm-BKo0Hl1x.js","zoom-image-lightbox-DgtuyVql.js","PlusIcon-BCNs_Q8j.js","lightbox-handle-r17bVUz3.js"]}