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","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#ty9l3"}},"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":"6ace4f18da1222a327254823","collectionId":"afc5674c-f132-4ba9-9769-de8c5c2eab55","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ace4f18da1222a327254823"},"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":"6acf592abe1663ec60b0a5cb","clientVersion":"0.0.3835","searchFilterCounts":[{"language":"en","tag":"API reference","count":638},{"language":"en","tag":"Home","count":368},{"language":"ja","tag":"ホーム","count":368},{"language":"ja","tag":"APIリファレンス","count":341},{"language":"en","tag":"AI","count":191},{"language":"ja","tag":"AI","count":161},{"language":"ja","tag":"コラボレーション","count":80},{"language":"en","tag":"Tools","count":77},{"language":"en","tag":"Dev tools","count":77},{"language":"ja","tag":"ツール","count":75},{"language":"ja","tag":"開発ツール","count":75},{"language":"en","tag":"Metadata \u0026 search","count":67},{"language":"ja","tag":"メタデータと検索","count":67},{"language":"en","tag":"Collaboration","count":62},{"language":"en","tag":"Content","count":58},{"language":"ja","tag":"コンテンツ","count":58},{"language":"en","tag":"Metadata","count":49},{"language":"ja","tag":"メタデータ","count":49},{"language":"en","tag":"Supported AI models","count":46},{"language":"ja","tag":"IDとアクセス","count":40}]},"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":"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}],"isAtlas":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/22156a3cb7d763bc/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\">\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","description":"Build with the Box Platform. Explore guides, API reference, SDKs, and tutorials for content management, Box AI, e-signatures, and enterprise integrations.","mode":"frame","timestamp":false,"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","description":"Sign up for a Box free developer account, generate the developer token and make your first API call.","href":"/guides/getting-started/index"},{"centered":true,"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","description":"Learn when to use Box to build applications, AI agents, and workflows on governed enterprise content.","href":"/guides/getting-started/why-box"},{"title":"Plan your integration","sidebarTitle":"Plan your integration","description":"Assess whether your use case fits Box, then choose the application type that matches how your app runs.","href":"/guides/getting-started/plan-your-integration"},{"title":"User types","sidebarTitle":"User types","description":"Learn which Box user type your app authenticates as, and how Managed Users, Service Accounts, and App Users differ.","href":"/guides/getting-started/users"},{"title":"Create your first application","sidebarTitle":"Create your first application","description":"Create, configure, and publish (optional) your first application.","href":"/guides/getting-started/first-application"},{"title":"Locating IDs","sidebarTitle":"Locating IDs","description":"Find user IDs, enterprise IDs, and file or folder IDs in the Box web app, Admin Console, Developer Console, and API.","href":"/guides/getting-started/locating-values"},{"title":"Box developer sandboxes","sidebarTitle":"Sandboxes","description":"Build, test, and collaborate on Box applications in an isolated developer sandbox that mirrors your enterprise plan and add-ons.","href":"/guides/getting-started/sandbox"},{"centered":true,"title":"Box for Developers glossary","description":null,"href":"/guides/getting-started/box-glossary"},{"title":"Box Platform API agent playbook","description":"Authentication, core endpoints, SDKs, rate limits, and usage instructions for coding agents integrating with the Box API.","href":"/guides/getting-started/agent-playbook"}]},{"group":"Applications \u0026 integrations","pages":[{"title":"Applications","sidebarTitle":"Overview","description":null,"href":"/guides/applications/index"},{"title":"Integrations","description":null,"href":"/guides/applications/integrations/index"},{"group":"Platform Apps","pages":[{"title":"Platform App","description":null,"href":"/guides/applications/platform-apps/index"},{"title":"Create a Platform App","description":null,"href":"/guides/applications/platform-apps/create"}]},{"group":"Web App Integrations","pages":[{"title":"Web App Integration","description":null,"href":"/guides/applications/web-app-integrations/index"},{"title":"Integrations Types","description":null,"href":"/guides/applications/web-app-integrations/types"},{"title":"User Experience","description":null,"href":"/guides/applications/web-app-integrations/user-experience"},{"title":"Create Web App Integration","description":null,"href":"/guides/applications/web-app-integrations/configure"}]},{"group":"Slack integration mappings","pages":[{"title":"Slack Integration Mappings","sidebarTitle":"Overview","description":null,"href":"/guides/integration-mappings/slack-mappings/index"},{"title":"Slack Integration Mappings Setup","description":null,"href":"/guides/integration-mappings/slack-mappings/setup"},{"title":"List Slack Integration Mappings","description":null,"href":"/guides/integration-mappings/slack-mappings/list-mappings"},{"title":"Create Slack Integration Mapping","description":null,"href":"/guides/integration-mappings/slack-mappings/create-mapping"},{"title":"Update Slack Integration Mapping","description":null,"href":"/guides/integration-mappings/slack-mappings/update-mapping"},{"title":"Delete Slack Integration Mapping","description":null,"href":"/guides/integration-mappings/slack-mappings/delete-mapping"},{"title":"Slack Integration Mappings Troubleshooting","description":null,"href":"/guides/integration-mappings/slack-mappings/troubleshooting"}]},{"group":"Teams integration mappings","pages":[{"title":"Teams integration mappings","sidebarTitle":"Overview","description":null,"href":"/guides/integration-mappings/teams-mappings/index"},{"title":"List Teams integration mappings","description":null,"href":"/guides/integration-mappings/teams-mappings/list-mappings"},{"title":"Create Teams integration mappings","description":null,"href":"/guides/integration-mappings/teams-mappings/create-mappings"},{"title":"Update Teams integration mappings","description":null,"href":"/guides/integration-mappings/teams-mappings/update-mappings"},{"title":"Delete Teams integration mappings","description":null,"href":"/guides/integration-mappings/teams-mappings/delete-mappings"}]}]},{"group":"Identity \u0026 access","pages":[{"group":"Authentication","pages":[{"title":"Authentication","sidebarTitle":"Overview","description":"Compare Box authentication methods, see which credentials and files each one needs, and learn what the access token you get back represents.","href":"/guides/authentication/index"},{"group":"OAuth 2.0","pages":[{"title":"OAuth 2.0 authentication","sidebarTitle":"Overview","description":"How the OAuth 2.0 flow works on Box, from the authorization URL to the access token your app uses on behalf of a signed-in user.","href":"/guides/authentication/oauth2/index"},{"title":"Setup with OAuth 2.0","description":"Create a User app in the Developer Console and configure its redirect URI, scopes, and CORS domains for OAuth 2.0.","href":"/guides/authentication/oauth2/oauth2-setup"},{"title":"OAuth 2.0 with SDKs","description":"Walk through the OAuth 2.0 flow using a Box SDK, from configuring the client to exchanging the authorization code for a token.","href":"/guides/authentication/oauth2/with-sdk"},{"title":"OAuth 2.0 without SDKs","description":"Build the authorization URL, redirect the user, and exchange the authorization code for an access token with direct API calls.","href":"/guides/authentication/oauth2/without-sdk"},{"title":"as-user header","description":"Act on behalf of another user from an OAuth 2.0 app, and the Developer Console settings and permissions this requires.","href":"/guides/authentication/oauth2/as-user"}]},{"group":"Client Credentials Grant","pages":[{"title":"Client Credentials Grant","sidebarTitle":"Overview","description":"How Client Credentials Grant authenticates a Server app with a client ID and client secret, and which subjects it can request a token for.","href":"/guides/authentication/client-credentials/index"},{"title":"Setup with Client Credentials Grant","description":"Create a Server app with Client Credentials Grant, configure its access level and scopes, and request an access token.","href":"/guides/authentication/client-credentials/client-credentials-setup"}]},{"group":"JWT","pages":[{"title":"JWT authentication","sidebarTitle":"Overview","description":"How server-side JWT authentication works on Box, from signing an assertion with your private key to receiving a Service Account token.","href":"/guides/authentication/jwt/index"},{"title":"Setup with JWT","description":"Create a Server app with JWT, generate or upload a public/private keypair, and configure access level, scopes, and CORS domains.","href":"/guides/authentication/jwt/jwt-setup"},{"title":"JWT with SDKs","description":"Read a config.json file and initialize a Box SDK client that handles JWT assertions and token renewal for you.","href":"/guides/authentication/jwt/with-sdk"},{"title":"JWT without SDKs","description":"Decrypt your private key, build and sign a JWT assertion, and exchange it for an access token without using a Box SDK.","href":"/guides/authentication/jwt/without-sdk"},{"title":"as-user header","description":"Act on behalf of another user from a JWT app, including the required app settings, permissions, and known limitations.","href":"/guides/authentication/jwt/as-user"},{"title":"User access tokens","description":"Request an access token that belongs to a specific user instead of the Service Account, with and without the Box SDKs.","href":"/guides/authentication/jwt/user-access-tokens"}]},{"title":"Switch between CCG and JWT","description":"Check whether your enterprise allows changing a Server app's authentication method, and see what a switch revokes and what it preserves.","href":"/guides/authentication/switch-server-auth-type"},{"group":"Tokens","pages":[{"title":"Tokens","sidebarTitle":"Overview","description":"Compare Box access, refresh, and developer tokens and choose the right token for OAuth, JWT, or Developer Console testing.","href":"/guides/authentication/tokens/index"},{"title":"Access tokens","description":"What Box returns in the token object for OAuth 2.0 and for server authentication, and how the two responses differ.","href":"/guides/authentication/tokens/access-tokens"},{"title":"Use a token","description":"Pass an access token in the Authorization header of a Box API call, and check which user the token represents.","href":"/guides/authentication/tokens/api-calls"},{"title":"Refresh a token","description":"Exchange a refresh token for a new access token, and understand the 60-day, single-use limits on refresh tokens.","href":"/guides/authentication/tokens/refresh"},{"title":"Revoke a token","description":"Invalidate an access token or a refresh token with the revoke endpoint, in cURL and in the Box SDKs.","href":"/guides/authentication/tokens/revoke"},{"title":"Downscope a token","description":"Exchange an access token for a more restricted one before you pass it to a browser, a mobile app, or Box UI Elements.","href":"/guides/authentication/tokens/downscope"},{"title":"Use a token in SDKs","description":"Pass an existing access token or a developer token straight to a Box SDK client instead of configuring a full authentication flow.","href":"/guides/authentication/tokens/sdks"},{"title":"Developer tokens","description":"Generate a short-lived Box developer token in the Developer Console to test API calls during development. Tokens expire after 60 minutes.","href":"/guides/authentication/tokens/developer-tokens"},{"title":"Annotator tokens","description":"Generate an access token that ties Box View annotations to one of your own end users, with or without an SDK.","href":"/guides/authentication/tokens/annotator-tokens"}]},{"title":"Box API and SSO","sidebarTitle":"Enterprise SSO","description":"How single sign-on affects OAuth 2.0 sign-ins, and why it doesn't apply to server-side authentication.","href":"/guides/authentication/sso"},{"title":"Authentication best practices","sidebarTitle":"Best practices","description":"Practical guidance on protecting your client secret, caching and refreshing access tokens, downscoping, and revoking tokens.","href":"/guides/authentication/best-practices"}]},{"group":"Authorization","pages":[{"title":"Authorization","sidebarTitle":"Overview","description":null,"href":"/guides/authorization/index"},{"title":"Platform app approval","description":"Authorize or enable Box Platform apps in the Admin Console, submit apps for admin approval, and re-authorize apps after scope or access changes.","href":"/guides/authorization/platform-app-approval"},{"title":"Limited Access App Approval","description":null,"href":"/guides/authorization/limited-access-approval"},{"title":"Common Errors","description":null,"href":"/guides/authorization/common-errors"}]},{"group":"SSO \u0026 App users","pages":[{"title":"SSO \u0026 App users","description":"How to use your own SSO service as the identity source for an app and link those identities to Box App Users.","href":"/guides/sso-identities-and-app-users/index"},{"group":"Connect Okta identities to Box App Users in a web app","pages":[{"title":"Connect Okta identities to Box App Users in a web app","type":"quick-start","hide_step_number":true,"hide_in_page_nav":true,"description":null,"href":"/guides/sso-identities-and-app-users/connect-okta-to-app-users/index"},{"title":"Scaffold application code (Okta integration)","sidebarTitle":"1. Scaffold application code","type":"quick-start","hide_in_page_nav":true,"description":null,"href":"/guides/sso-identities-and-app-users/connect-okta-to-app-users/scaffold-application-code"},{"title":"Configure Okta","sidebarTitle":"2. Configure Okta","type":"quick-start","hide_in_page_nav":true,"description":null,"href":"/guides/sso-identities-and-app-users/connect-okta-to-app-users/configure-okta"},{"title":"Configure Box (Okta integration)","sidebarTitle":"3. Configure Box","type":"quick-start","hide_in_page_nav":true,"description":null,"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","type":"quick-start","hide_in_page_nav":true,"description":null,"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","type":"quick-start","hide_in_page_nav":true,"description":null,"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","type":"quick-start","hide_in_page_nav":true,"description":null,"href":"/guides/sso-identities-and-app-users/connect-okta-to-app-users/run-the-app"}]},{"title":"Connect SSO identities to app users","description":null,"href":"/guides/sso-identities-and-app-users/connect-identities"},{"title":"Create connection between SSO identity and app user","description":null,"href":"/guides/sso-identities-and-app-users/create-app-user"},{"title":"Find app user for SSO identity","description":null,"href":"/guides/sso-identities-and-app-users/find-app-user"}]}]},{"group":"Using the API","pages":[{"title":"API Calls","sidebarTitle":"Overview","description":"Learn how to make calls to the Box REST API, including authentication headers, common patterns, and platform insights.","href":"/guides/api-calls/index"},{"title":"Types and formats","description":null,"href":"/guides/api-calls/types-and-formats"},{"title":"Status codes","description":null,"href":"/guides/api-calls/status-codes"},{"title":"Sorting responses","description":null,"href":"/guides/api-calls/sorting"},{"title":"Request extra fields","description":"Learn about standard, mini, and full resource variants in the Box API, and how to use the fields query parameter to request additional fields.","href":"/guides/api-calls/request-extra-fields"},{"title":"Ensure consistency with headers","description":null,"href":"/guides/api-calls/ensure-consistency"},{"title":"Allow domain access","description":null,"href":"/guides/api-calls/allowing-domain-access"},{"title":"Suppress notifications","description":null,"href":"/guides/api-calls/suppress-notifications"},{"title":"Language codes","description":null,"href":"/guides/api-calls/language-codes"},{"title":"API versioning strategy","description":null,"href":"/guides/api-calls/api-versioning-strategy"},{"group":"Pagination","pages":[{"title":"Pagination overview","sidebarTitle":"Overview","description":null,"href":"/guides/api-calls/pagination/index"},{"title":"Box API offset-based pagination","sidebarTitle":"Offset-based","description":"Page Box API collections with `offset` and `limit`. This includes limits of offset-based pagination, and when to use marker-based paging instead.","href":"/guides/api-calls/pagination/offset-based"},{"title":"Marker-based Pagination","description":null,"href":"/guides/api-calls/pagination/marker-based"}]},{"group":"Permissions and errors","pages":[{"title":"Box API errors","sidebarTitle":"Errors","description":"Look up Box API HTTP errors, JSON error responses, and common 4xx and 5xx codes when a request fails.","href":"/guides/api-calls/permissions-and-errors/common-errors"},{"title":"Box API rate limits","sidebarTitle":"Rate limits","description":"Understand Box API rate limits, 429 responses, and how to retry requests without exceeding per-user and enterprise quotas.","href":"/guides/api-calls/permissions-and-errors/rate-limits"},{"title":"Box API scopes","sidebarTitle":"Scopes","description":"Configure Box application scopes in the Developer Console so your app can call only the API endpoints it needs.","href":"/guides/api-calls/permissions-and-errors/scopes"},{"title":"Token \u0026 URL Expiration","description":null,"href":"/guides/api-calls/permissions-and-errors/expiration"},{"title":"Versioning errors","description":null,"href":"/guides/api-calls/permissions-and-errors/versioning-errors"}]}]},{"group":"Troubleshooting","pages":[{"title":"Debugging your Box app","description":"A step-by-step playbook for diagnosing failed API calls, handling retries and timeouts, and using the App Diagnostics tool to troubleshoot your Box application.","href":"/guides/troubleshooting/debugging-your-box-app"},{"title":"App Diagnostics Report","description":null,"href":"/guides/troubleshooting/app-diagnostics-report"}]},{"group":"Content","pages":[{"group":"Files","pages":[{"title":"Get File Information","description":null,"href":"/guides/files/get"},{"title":"File limitations","sidebarTitle":"Limitations","description":null,"href":"/guides/files/limitations"}]},{"group":"Folders","pages":[{"title":"Create Folder","description":null,"href":"/guides/folders/single/create"},{"title":"Update Folder","description":null,"href":"/guides/folders/single/update"},{"title":"Rename Folder","description":null,"href":"/guides/folders/single/rename"},{"title":"Move Folder","description":null,"href":"/guides/folders/single/move"},{"title":"Copy Folder","description":null,"href":"/guides/folders/single/copy"},{"title":"Delete Folder","description":null,"href":"/guides/folders/single/delete"},{"title":"Change Folder Owner","description":null,"href":"/guides/folders/single/change-owner"},{"title":"Create Folder Lock","description":null,"href":"/guides/folders/single/create-lock"},{"title":"Get Folder Lock","description":null,"href":"/guides/folders/single/get-locks"},{"title":"Delete Folder Lock","description":null,"href":"/guides/folders/single/delete-lock"},{"title":"Build Folder Tree","description":null,"href":"/guides/folders/bulk/build-folder-tree"}]},{"group":"Uploads","pages":[{"title":"Uploads","sidebarTitle":"Overview","description":"Upload files to Box using direct upload for files up to 50 MB or chunked upload for larger files with retry control.","href":"/guides/uploads/index"},{"title":"Preflight Check","related_pages":[],"description":null,"href":"/guides/uploads/check"},{"group":"Direct Uploads","pages":[{"title":"Direct Uploads","sidebarTitle":"Overview","description":null,"href":"/guides/uploads/direct/index"},{"title":"Upload New File","related_pages":[],"description":null,"href":"/guides/uploads/direct/file"},{"title":"Upload File Version","related_pages":[],"description":null,"href":"/guides/uploads/direct/file-version"}]},{"group":"Chunked Uploads","pages":[{"title":"Chunked Uploads","sidebarTitle":"Overview","description":null,"href":"/guides/uploads/chunked/index"},{"title":"Create Upload Session","related_pages":[],"description":null,"href":"/guides/uploads/chunked/create-session"},{"title":"Chunked Upload with SDKs","related_pages":[],"description":null,"href":"/guides/uploads/chunked/with-sdks"},{"title":"Upload Part","description":"Upload each part of a large file to a chunked upload session, using a SHA-1 or SHA-512 digest to verify the content.","related_pages":[],"href":"/guides/uploads/chunked/upload-part"},{"title":"Commit Upload Session","description":"Commit a chunked upload session to create a file from the uploaded parts, including parts the server already has.","related_pages":[],"href":"/guides/uploads/chunked/commit-session"},{"title":"Upload All Files in Folder","related_pages":[],"description":null,"href":"/guides/uploads/chunked/folder"}]},{"group":"Tutorials","pages":[{"title":"Upload methods with Python","description":"Learn how to upload files to Box with the Python SDK by using direct upload and chunked upload, including the `upload_big_file` convenience method, manual upload sessions, preflight checks, and conflict handling.","href":"/guides/uploads/tutorials/upload-methods-python"},{"title":"Recursively upload a folder with Python","description":"Learn how to upload a local folder tree to Box with a recursive Python script that creates folders, uploads files, and handles naming conflicts.","href":"/guides/uploads/tutorials/recursive-folder-upload-python"}]}]},{"group":"Downloads","pages":[{"title":"Downloads","sidebarTitle":"Overview","description":"Download files from Box to your application server or directly to a browser, and understand access requirements.","href":"/guides/downloads/index"},{"title":"Download File","description":null,"href":"/guides/downloads/file"},{"title":"Download File Version","description":null,"href":"/guides/downloads/file-version"},{"title":"Get Download URL","description":null,"href":"/guides/downloads/get-url"},{"title":"Download Shared Link","description":null,"href":"/guides/downloads/shared-link"},{"title":"Download All Files in Folder using SDKs","description":null,"href":"/guides/downloads/folder"},{"title":"Download in Browser","description":null,"href":"/guides/downloads/in-browser"},{"title":"Download ZIP Archive","description":null,"href":"/guides/downloads/zip-archive"}]},{"group":"Web Links","pages":[{"title":"Web Links","sidebarTitle":"Overview","description":null,"href":"/guides/web-links/index"},{"title":"Create Web Link","description":null,"href":"/guides/web-links/create"},{"title":"Delete Web Link","description":null,"href":"/guides/web-links/delete"}]},{"group":"Trash","pages":[{"title":"Trash","sidebarTitle":"Overview","description":null,"href":"/guides/trash/index"},{"title":"Restore File","description":null,"href":"/guides/trash/restore-file"},{"title":"Permanently Delete File","description":null,"href":"/guides/trash/permanently-delete-file"},{"title":"Restore Folder","description":null,"href":"/guides/trash/restore-folder"},{"title":"Permanently Delete Folder","description":null,"href":"/guides/trash/permanently-delete-folder"},{"title":"Restore Web Link","description":null,"href":"/guides/trash/restore-web-link"},{"title":"Permanently Delete Web Link","description":null,"href":"/guides/trash/permanently-delete-web-link"}]},{"group":"Representations","pages":[{"title":"Representations","sidebarTitle":"Overview","description":null,"href":"/guides/representations/index"},{"title":"List All Representations for File","description":null,"href":"/guides/representations/list-all-representations"},{"title":"Request Desired Representation","description":null,"href":"/guides/representations/request-a-representation"},{"title":"Download File Representation","description":null,"href":"/guides/representations/download-a-representation"},{"title":"Get Thumbnail Representation","description":null,"href":"/guides/representations/thumbnail-representation"},{"title":"Get Basic Thumbnail","description":null,"href":"/guides/representations/thumbnail"},{"title":"Get Markdown Representation","description":"Generate and download Markdown representations using the Box API.","href":"/guides/representations/markdown"},{"title":"Get Text Representation","description":null,"href":"/guides/representations/text"},{"title":"Get PDF Representation","description":null,"href":"/guides/representations/pdf"},{"title":"Supported File Types","description":null,"href":"/guides/representations/supported-file-types"}]},{"group":"Box Archive","pages":[{"title":"Box Archive","sidebarTitle":"Overview","description":null,"href":"/guides/archives/index"},{"title":"Add content to Box Archive","description":null,"href":"/guides/archives/add-content"},{"title":"Restore content from Box Archive","description":null,"href":"/guides/archives/restore-content"},{"title":"Supported APIs for Box Archive","description":null,"href":"/guides/archives/supported-apis"}]}]},{"group":"Collaboration","pages":[{"group":"Collaborations","pages":[{"title":"Collaborations","description":"Grant users and groups role-based access to files and folders, manage pending invitations, and apply collaboration domain restrictions.","sidebarTitle":"Overview","href":"/guides/collaborations/index"},{"group":"Connect Slack to Group Collaborations","pages":[{"title":"Connect Slack to Box Group Collaborations","type":"quick-start","hide_step_number":true,"hide_in_page_nav":true,"description":null,"href":"/guides/collaborations/connect-slack-to-group-collabs/index"},{"title":"Configure Slack","sidebarTitle":"1. Configure Slack","type":"quick-start","hide_in_page_nav":true,"description":null,"href":"/guides/collaborations/connect-slack-to-group-collabs/configure-slack"},{"title":"Configure Box (Slack integration)","sidebarTitle":"2. Configure Box","type":"quick-start","hide_in_page_nav":true,"description":null,"href":"/guides/collaborations/connect-slack-to-group-collabs/configure-box"},{"title":"Scaffold application code (Slack integration)","sidebarTitle":"3. Scaffold application code","type":"quick-start","hide_in_page_nav":true,"description":null,"href":"/guides/collaborations/connect-slack-to-group-collabs/scaffold-application-code"},{"title":"Handle Slack Events","sidebarTitle":"4. Handle Slack Events","type":"quick-start","hide_in_page_nav":true,"description":null,"href":"/guides/collaborations/connect-slack-to-group-collabs/handle-slack-events"},{"title":"Connect Bot to Box","sidebarTitle":"5. Connect Bot to Box","type":"quick-start","hide_in_page_nav":true,"description":null,"href":"/guides/collaborations/connect-slack-to-group-collabs/connect-box-functions"},{"title":"Test the bot","sidebarTitle":"6. Test the bot","type":"quick-start","hide_in_page_nav":true,"description":null,"href":"/guides/collaborations/connect-slack-to-group-collabs/test-bot"}]},{"title":"Share Content with User","description":null,"href":"/guides/collaborations/share-content"},{"title":"Sharing with Groups","description":null,"href":"/guides/collaborations/groups"},{"title":"Get Pending Collaborations","description":null,"href":"/guides/collaborations/pending"},{"group":"Allowed Domains","pages":[{"title":"Allowed collaboration domains overview","sidebarTitle":"Overview","related_pages":[],"description":null,"href":"/guides/collaborations/allowed-domains/index"},{"title":"Allow a domain for collaboration","related_pages":[],"description":null,"href":"/guides/collaborations/allowed-domains/create"},{"title":"List allowed domains for collaboration","related_pages":[],"description":null,"href":"/guides/collaborations/allowed-domains/list"},{"title":"Remove a previously allowed domain for collaboration","related_pages":[],"description":null,"href":"/guides/collaborations/allowed-domains/delete"}]}]},{"group":"Shared Links","pages":[{"title":"Shared Links","description":"Generate URL-based access to files, folders, and web links stored in Box with configurable access levels.","related_pages":null,"sidebarTitle":"Overview","href":"/guides/shared-links/index"},{"title":"Create or Update Shared Link","related_pages":[],"description":null,"href":"/guides/shared-links/create-or-update"},{"title":"Find Item from Shared Link","related_pages":[],"description":null,"href":"/guides/shared-links/find-for-item"},{"title":"Remove Shared Link","related_pages":[],"description":null,"href":"/guides/shared-links/remove"},{"title":"Shared Link Permissions","related_pages":[],"description":null,"href":"/guides/shared-links/permissions"}]},{"group":"Comments","pages":[{"title":"Comments overview","sidebarTitle":"Overview","description":null,"href":"/guides/comments/index"},{"title":"Create Comment","description":null,"href":"/guides/comments/create-comment"},{"title":"Create Reply","description":null,"href":"/guides/comments/create-reply"}]},{"group":"Tasks","pages":[{"title":"Tasks overview","sidebarTitle":"Overview","description":null,"href":"/guides/tasks/index"},{"title":"Create a task","description":null,"href":"/guides/tasks/create"},{"title":"Get information about a task","description":null,"href":"/guides/tasks/get"},{"title":"Lists all tasks for a file","description":null,"href":"/guides/tasks/for-file"},{"title":"Make changes to an existing task","description":null,"href":"/guides/tasks/update"},{"title":"Delete a task","description":null,"href":"/guides/tasks/delete"},{"group":"Assigning tasks","pages":[{"title":"Assigning tasks","sidebarTitle":"Overview","description":null,"href":"/guides/tasks/assignments/index"},{"title":"Assign a task to a user","description":null,"href":"/guides/tasks/assignments/assign"},{"title":"Unassign a task","description":null,"href":"/guides/tasks/assignments/unassign"},{"title":"Change an assignment's message","description":null,"href":"/guides/tasks/assignments/update-message"},{"title":"Get task assignment information","description":null,"href":"/guides/tasks/assignments/get"},{"title":"List a task's assignments","description":null,"href":"/guides/tasks/assignments/list"},{"title":"Change task assignment state","description":null,"href":"/guides/tasks/assignments/change-state"}]}]},{"group":"Collections","pages":[{"title":"Collections overview","sidebarTitle":"Overview","description":null,"href":"/guides/collections/index"},{"title":"List User's Collections","description":null,"href":"/guides/collections/list"},{"title":"List Items in Collections","description":null,"href":"/guides/collections/list-items"},{"title":"Add Item to Collection","description":null,"href":"/guides/collections/add"},{"title":"Remove Item from Collection","description":null,"href":"/guides/collections/remove"}]},{"group":"File Requests","pages":[{"title":"File Requests","sidebarTitle":"Overview","description":null,"href":"/guides/file-requests/index"},{"title":"Create a template File Request","description":null,"href":"/guides/file-requests/template"},{"title":"Copy a File Request","description":null,"href":"/guides/file-requests/copy"},{"title":"Get information for a File Request","description":null,"href":"/guides/file-requests/get"},{"title":"Update a File Request","description":null,"href":"/guides/file-requests/update"},{"title":"Delete a File Request","description":null,"href":"/guides/file-requests/delete"}]},{"group":"Box Notes","pages":[{"title":"Box Notes API","description":"Programmatically create Box Notes from Markdown content using the Box Notes API.","sidebarTitle":"Overview","href":"/guides/box-notes/index"},{"title":"Get started with Box Notes API","description":"Set up authentication and create your first Box Note from Markdown content.","href":"/guides/box-notes/get-started"},{"title":"Convert Markdown to Box Note","description":"Detailed guide for converting Markdown content to a Box Note using the POST /notes/convert endpoint.","href":"/guides/box-notes/convert-markdown"},{"title":"Box Notes API use cases","description":"Common scenarios and patterns for creating Box Notes programmatically from Markdown content.","href":"/guides/box-notes/use-cases"}]},{"group":"Box Hubs","pages":[{"title":"Box Hubs overview","sidebarTitle":"Overview","description":"Organize files and folders into Box Hubs and query curated, permission-aware content with the Hubs API and Box AI Ask.","href":"/guides/hubs-api/index"},{"title":"Turn an enterprise document repository into an access-controlled AI knowledge base","sidebarTitle":"Access-controlled knowledge base","description":"Build an access-controlled AI knowledge base with Box Hubs and Box AI Ask. Answers inherit Box permissions. No vector database needed.","href":"/guides/hubs-api/access-controlled-knowledge-base"},{"title":"Hubs APIs use cases","description":"Use the Box Hubs API to automate content portals, inherit source-file permissions, and query curated knowledge with Box AI.","href":"/guides/hubs-api/use-cases"},{"group":"Hubs","pages":[{"title":"Create a hub","description":null,"href":"/guides/hubs-api/hubs/create-hub"},{"title":"Get a hub","description":null,"href":"/guides/hubs-api/hubs/get-hub"},{"title":"List hubs","description":null,"href":"/guides/hubs-api/hubs/list-hubs"},{"title":"Update a hub","description":null,"href":"/guides/hubs-api/hubs/update-hub"},{"title":"Delete a hub","description":null,"href":"/guides/hubs-api/hubs/delete-hub"},{"title":"Copy a hub","description":null,"href":"/guides/hubs-api/hubs/copy-hub"}]},{"title":"Manage hub items","description":null,"href":"/guides/hubs-api/hubs-items/hub-items"},{"title":"Manage hub collaborations","description":null,"href":"/guides/hubs-api/hubs-collaborations/hub-collaborations"}]}]},{"group":"Metadata \u0026 search","pages":[{"group":"Metadata","pages":[{"sidebarTitle":"Overview","title":"Metadata","description":"Define and store custom key-value data on files and folders using metadata templates, instances, cascade policies, and queries.","href":"/guides/metadata/index"},{"group":"Working with Metadata","pages":[{"title":"Working with Metadata","type":"quick-start","hide_step_number":true,"hide_in_page_nav":true,"sidebarTitle":"Overview","description":null,"href":"/guides/metadata/quick-start/index"},{"title":"List all metadata templates (quick start)","sidebarTitle":"1. List all metadata templates","type":"quick-start","hide_in_page_nav":true,"description":null,"href":"/guides/metadata/quick-start/list-all"},{"title":"Create a custom metadata template","sidebarTitle":"2. Create a custom metadata template","type":"quick-start","hide_in_page_nav":true,"description":null,"href":"/guides/metadata/quick-start/create-template"},{"title":"Apply metadata to a file","sidebarTitle":"3. Apply metadata to a file","type":"quick-start","hide_in_page_nav":true,"description":null,"href":"/guides/metadata/quick-start/create-instance"},{"title":"Update metadata on a file","sidebarTitle":"4. Update metadata on a file","type":"quick-start","hide_in_page_nav":true,"description":null,"href":"/guides/metadata/quick-start/update-instance"},{"title":"Update a metadata template (quick start)","sidebarTitle":"5. Update a metadata template","type":"quick-start","hide_in_page_nav":true,"description":null,"href":"/guides/metadata/quick-start/update-template"},{"title":"Create a metadata query","sidebarTitle":"6. Create a metadata query","type":"quick-start","hide_in_page_nav":true,"description":null,"href":"/guides/metadata/quick-start/create-query"},{"title":"Metadata quick start: next steps","sidebarTitle":"Next steps","type":"quick-start","hide_step_number":true,"description":null,"href":"/guides/metadata/quick-start/next-steps"}]},{"title":"Metadata template scopes","description":null,"href":"/guides/metadata/scopes"},{"title":"Classifications","description":null,"href":"/guides/metadata/classifications"},{"group":"Metadata templates","pages":[{"title":"Metadata templates overview","sidebarTitle":"Overview","description":null,"href":"/guides/metadata/templates/index"},{"title":"List all metadata templates","description":null,"href":"/guides/metadata/templates/list"},{"title":"Get a metadata template","description":null,"href":"/guides/metadata/templates/get"},{"title":"Create a metadata template","description":null,"href":"/guides/metadata/templates/create"},{"title":"Update a metadata template","description":null,"href":"/guides/metadata/templates/update"},{"title":"Delete a metadata template","description":null,"href":"/guides/metadata/templates/delete"}]},{"group":"Metadata taxonomies","pages":[{"title":"Metadata taxonomies overview","sidebarTitle":"Overview","description":null,"href":"/guides/metadata/taxonomies/index"},{"title":"Create metadata taxonomy items","description":null,"href":"/guides/metadata/taxonomies/create"},{"title":"List metadata taxonomies","description":null,"href":"/guides/metadata/taxonomies/list"},{"title":"Get metadata taxonomy items","description":null,"href":"/guides/metadata/taxonomies/get"},{"title":"Update metadata taxonomies","description":null,"href":"/guides/metadata/taxonomies/update"},{"title":"Remove metadata taxonomy items","description":null,"href":"/guides/metadata/taxonomies/remove"}]},{"group":"Metadata fields","pages":[{"title":"Metadata fields","sidebarTitle":"Overview","description":null,"href":"/guides/metadata/fields/index"},{"title":"String metadata field","description":null,"href":"/guides/metadata/fields/string"},{"title":"Float metadata field","description":null,"href":"/guides/metadata/fields/float"},{"title":"Date metadata field","description":null,"href":"/guides/metadata/fields/date"},{"title":"Enum metadata field","description":null,"href":"/guides/metadata/fields/enum"},{"title":"Multi Select metadata field","description":null,"href":"/guides/metadata/fields/multi-select"}]},{"group":"Metadata instances","pages":[{"title":"Metadata instances overview","sidebarTitle":"Overview","description":null,"href":"/guides/metadata/instances/index"},{"title":"List all metadata on an item","description":null,"href":"/guides/metadata/instances/list"},{"title":"Get metadata on item","description":null,"href":"/guides/metadata/instances/get"},{"title":"Apply metadata to an item","description":null,"href":"/guides/metadata/instances/create"},{"title":"Update metadata on an item","description":null,"href":"/guides/metadata/instances/update"},{"title":"Remove metadata from an item","description":null,"href":"/guides/metadata/instances/delete"}]},{"group":"Metadata queries","pages":[{"title":"Metadata queries","sidebarTitle":"Overview","description":null,"href":"/guides/metadata/queries/index"},{"title":"Create a query","description":null,"href":"/guides/metadata/queries/create"},{"title":"Query syntax","description":null,"href":"/guides/metadata/queries/syntax"},{"title":"Query item fields","description":null,"href":"/guides/metadata/queries/item-fields"},{"title":"Common errors","description":null,"href":"/guides/metadata/queries/errors"},{"title":"Metadata query limitations","sidebarTitle":"Limitations","description":null,"href":"/guides/metadata/queries/limitations"},{"title":"Paginate and sort","description":null,"href":"/guides/metadata/queries/pagination"},{"title":"Comparison to regular search","description":null,"href":"/guides/metadata/queries/comparison"}]},{"group":"Metadata cascade policies","pages":[{"title":"Metadata cascade policies overview","sidebarTitle":"Overview","description":null,"href":"/guides/metadata/cascades/index"},{"title":"List metadata cascade policies","description":null,"href":"/guides/metadata/cascades/list"},{"title":"Get a metadata cascade policy","description":null,"href":"/guides/metadata/cascades/get"},{"title":"Create a metadata cascade policy","description":null,"href":"/guides/metadata/cascades/create"},{"title":"Force-apply metadata to all items in a folder","description":null,"href":"/guides/metadata/cascades/force-apply"},{"title":"Delete a metadata cascade policy","description":null,"href":"/guides/metadata/cascades/delete"}]}]},{"group":"Query","pages":[{"title":"Box query","description":null,"href":"/guides/query/box-query"},{"title":"Query insights","description":null,"href":"/guides/query/insights"}]},{"group":"Search","pages":[{"title":"Search","sidebarTitle":"Overview","description":null,"href":"/guides/search/index"},{"group":"Search content using metadata","pages":[{"title":"Search content using metadata","type":"quick-start","hide_step_number":true,"hide_in_page_nav":true,"sidebarTitle":"Overview","description":null,"href":"/guides/search/quick-start/index"},{"title":"Create a Metadata Template","sidebarTitle":"1. Create a Metadata Template","type":"quick-start","hide_in_page_nav":true,"description":null,"href":"/guides/search/quick-start/create-metadata-template"},{"title":"Locate Information about a Metadata Template","sidebarTitle":"2. Locate Information about a Metadata Template","type":"quick-start","hide_in_page_nav":true,"description":null,"href":"/guides/search/quick-start/locate-template-info"},{"title":"Add Metadata Template to a File","sidebarTitle":"3. Add Metadata Template to a File","type":"quick-start","hide_in_page_nav":true,"description":null,"href":"/guides/search/quick-start/apply-template-to-file"},{"title":"Use the Metadata Query API","sidebarTitle":"4. Use the Metadata Query API","type":"quick-start","hide_in_page_nav":true,"description":null,"href":"/guides/search/quick-start/metadata-query-api"},{"title":"Next Steps","sidebarTitle":"5. Next Steps","type":"quick-start","hide_in_page_nav":true,"description":null,"href":"/guides/search/quick-start/next-steps"}]},{"title":"Search indexing","description":null,"href":"/guides/search/indexing"},{"title":"Query operators","description":null,"href":"/guides/search/query-operators"},{"title":"Filter search results","description":null,"href":"/guides/search/filtering"},{"title":"Search result pagination","sidebarTitle":"Pagination","description":null,"href":"/guides/search/pagination"},{"title":"Metadata Query Filters","description":null,"href":"/guides/search/metadata-filters"},{"title":"Enterprise-wide search","description":null,"href":"/guides/search/enterprise"},{"title":"Searching trash","description":null,"href":"/guides/search/trash"},{"title":"Finding recent shared links","description":null,"href":"/guides/search/shared-links"},{"title":"Requesting extra fields","description":null,"href":"/guides/search/fields"}]}]},{"group":"Events \u0026 webhooks","pages":[{"group":"Events","pages":[{"title":"Events overview","sidebarTitle":"Overview","description":"Subscribe to user or enterprise events in Box, compare stream types, and monitor actions in real time or query historical records.","href":"/guides/events/index"},{"group":"User Events","pages":[{"title":"User Events","sidebarTitle":"Overview","description":null,"href":"/guides/events/user-events/index"},{"title":"Get User Events","description":null,"href":"/guides/events/user-events/for-user"},{"title":"Long-Poll Events","description":null,"href":"/guides/events/user-events/polling"}]},{"group":"Enterprise Events","pages":[{"title":"Enterprise Events","sidebarTitle":"Overview","description":null,"href":"/guides/events/enterprise-events/index"},{"title":"Get Enterprise Events","description":null,"href":"/guides/events/enterprise-events/for-enterprise"},{"title":"Migrating From History To Stream","description":null,"href":"/guides/events/enterprise-events/migrate-to-stream"}]},{"group":"Event Stream Parameters","pages":[{"title":"Stream Types","description":null,"href":"/guides/events/parameters/stream-types"},{"title":"Stream Position Pagination","description":null,"href":"/guides/events/parameters/pagination"}]},{"group":"Event Triggers","pages":[{"title":"Event Triggers","sidebarTitle":"Overview","description":null,"href":"/guides/events/event-triggers/index"},{"title":"Event Source","description":null,"href":"/guides/events/event-triggers/event-source"},{"title":"AI Security Detection Events","description":null,"href":"/guides/events/event-triggers/ai-security-detection-events"},{"title":"Shield Alert Events","description":null,"href":"/guides/events/event-triggers/shield-alert-events"},{"title":"Shield Information Barrier Events","description":null,"href":"/guides/events/event-triggers/shield-information-barrier-events"},{"title":"Shield Smart Access Events","description":null,"href":"/guides/events/event-triggers/shield-smart-access-events"},{"title":"Sign Events","description":null,"href":"/guides/events/event-triggers/sign-events"}]}]},{"group":"Webhooks","pages":[{"title":"Webhooks overview","sidebarTitle":"Overview","description":"Monitor Box content for events and get notified at a URL of your choice, and compare V1 and V2 webhooks.","href":"/guides/webhooks/index"},{"title":"Webhook Event Triggers","description":null,"href":"/guides/webhooks/triggers"},{"group":"V1 Webhooks","pages":[{"title":"V1 Webhooks","description":null,"href":"/guides/webhooks/v1/index"},{"title":"Create webhooks (v1)","sidebarTitle":"Create webhooks","description":null,"href":"/guides/webhooks/v1/create-v1"},{"title":"Delete webhooks (v1)","sidebarTitle":"Delete webhooks","description":null,"href":"/guides/webhooks/v1/delete-v1"}]},{"group":"V2 Webhooks","pages":[{"title":"V2 webhooks","description":"Understand the payload headers, JSON body, and delivery retry behavior of Box V2 webhooks.","href":"/guides/webhooks/v2/index"},{"title":"List Webhooks for a User","description":null,"href":"/guides/webhooks/v2/list-v2"},{"title":"Create webhooks (v2)","sidebarTitle":"Create webhooks","description":null,"href":"/guides/webhooks/v2/create-v2"},{"title":"Update Webhooks","description":null,"href":"/guides/webhooks/v2/update-v2"},{"title":"Delete webhooks (v2)","sidebarTitle":"Delete webhooks","description":null,"href":"/guides/webhooks/v2/delete-v2"},{"title":"Verify Box webhook signatures","description":"Verify Box webhook payloads with HMAC signatures so you can reject requests that were not sent by Box.","href":"/guides/webhooks/v2/signatures-v2"},{"title":"Webhook limitations","sidebarTitle":"Limitations","description":null,"href":"/guides/webhooks/v2/limitations-v2"}]}]}]},{"group":"Users","pages":[{"title":"Users overview","related_pages":null,"sidebarTitle":"Overview","description":null,"href":"/guides/users/index"},{"title":"Create Managed User","related_pages":[],"description":null,"href":"/guides/users/create-managed-user"},{"title":"Create App User","related_pages":[],"description":null,"href":"/guides/users/create-app-user"},{"title":"Delete User","related_pages":[],"description":null,"href":"/guides/users/delete-user"},{"title":"Bulk delete external users","related_pages":[],"description":null,"href":"/guides/users/bulk-delete-external-users"},{"group":"Provision Users","pages":[{"title":"Provision Users","sidebarTitle":"Overview","description":null,"href":"/guides/users/provision/index"},{"title":"Create Architecture Skeleton","related_pages":[],"description":null,"href":"/guides/users/provision/architecture"},{"title":"Populate Content","related_pages":[],"description":null,"href":"/guides/users/provision/populate-content"},{"title":"Setup Shared Folders","related_pages":[],"description":null,"href":"/guides/users/provision/shared-folders"}]},{"group":"Deprovision Users","pages":[{"title":"Deprovision Users","related_pages":null,"sidebarTitle":"Overview","description":null,"href":"/guides/users/deprovision/index"},{"title":"Transfer Files \u0026 Folders","related_pages":[],"description":null,"href":"/guides/users/deprovision/transfer-folders"}]}]},{"group":"Intelligent workflow","pages":[{"title":"Intelligent workflow","description":"Build governed, agentic content workflows without running your own automation infrastructure.","sidebarTitle":"Overview","href":"/guides/intelligent-workflow/index"},{"group":"Box Automate","pages":[{"title":"Box Automate","sidebarTitle":"Overview","description":null,"href":"/guides/box-automate/index"},{"title":"Get started with Box Automate","sidebarTitle":"Get started","description":null,"href":"/guides/box-automate/getting-started-box-automate"},{"title":"Triggers, outcomes, and logic in Box Automate","sidebarTitle":"Triggers and logic","description":null,"href":"/guides/box-automate/triggers-and-logic"}]},{"group":"Box Doc Gen","pages":[{"title":"Box Doc Gen","sidebarTitle":"Overview","description":null,"href":"/guides/docgen/index"},{"title":"Get started with Box Doc Gen","description":null,"href":"/guides/docgen/docgen-getting-started"},{"title":"Mark file as Box Doc Gen template","description":null,"href":"/guides/docgen/mark-template"},{"title":"Generate documents","description":null,"href":"/guides/docgen/generate-document"},{"title":"Box Doc Gen templates","description":null,"href":"/guides/docgen/docgen-templates"},{"title":"Box Doc Gen jobs","description":null,"href":"/guides/docgen/docgen-jobs"},{"title":"Box Doc Split","description":"Use the Box API to break a multi-page PDF stored in Box into smaller sub-documents and save the results to a Box folder.","href":"/guides/docgen/doc-split"},{"title":"Manual split","description":"Divide a PDF stored in Box into sub-documents using the exact page ranges you define.","href":"/guides/docgen/manual-split"},{"title":"Smart split","description":"Use a natural language prompt to let Box decide how to group the pages of a PDF into output documents.","href":"/guides/docgen/smart-split"}]},{"group":"Box Relay","pages":[{"title":"Box Relay","sidebarTitle":"Overview","description":null,"href":"/guides/box-relay/index"},{"title":"Get Workflows","description":null,"href":"/guides/box-relay/get-workflows"},{"title":"Start Workflow","description":null,"href":"/guides/box-relay/start-workflow"}]}]},{"group":"E-signatures","pages":[{"title":"Box Sign","sidebarTitle":"Overview","description":"Send documents for electronic signature from your own app using the Box Sign API, and track them through to a signed file in Box.","href":"/guides/box-sign/index"},{"title":"Set up Box Sign","sidebarTitle":"Setup","description":"Check your account type, enable the required scopes, and set up a safe place to test before you call the Box Sign API.","href":"/guides/box-sign/setup"},{"centered":true,"title":"Quick start","sidebarTitle":"Quick start","description":"Send your first Box Sign request with a file, destination folder, and signer email.","href":"/guides/box-sign/quick-start"},{"group":"Document types","pages":[{"centered":true,"sidebarTitle":"Overview","title":"Document types","description":"Choose how to send a Box Sign request for unstructured documents, templates, or structured tagged files.","href":"/guides/box-sign/document-types/index"},{"centered":true,"title":"Signing unstructured docs","sidebarTitle":"Unstructured","description":"Prepare an unstructured document in Box Sign before you send it to a signer.","href":"/guides/box-sign/document-types/unstructured"},{"centered":true,"title":"Signing structured docs","sidebarTitle":"Structured","description":"Send a Box Sign request for a document that already includes signature tags.","href":"/guides/box-sign/document-types/structured"},{"title":"Create a sign request with a template","sidebarTitle":"Templates","description":"Create a Box Sign template in the web app, list it through the API, and send a request with template_id and prefill tags.","href":"/guides/box-sign/document-types/sign-templates"}]},{"group":"Create and configure","pages":[{"title":"Create a Box Sign request","sidebarTitle":"Create a request","description":"Create a Box Sign request with files, signers, templates, and document preparation.","href":"/guides/box-sign/create-sign-request"},{"title":"Multiple signers and signing order","sidebarTitle":"Multiple signers","description":"Assign signer, approver, and final copy reader roles, and control the order in which Box Sign notifies each person.","href":"/guides/box-sign/multiple-signers"},{"title":"Verify signer identity","sidebarTitle":"Signer verification","description":"Require a signer to verify their identity with a smart card, SMS, or Box login, and add a password to a Box Sign request.","href":"/guides/box-sign/signer-verification"},{"title":"In-person signing","sidebarTitle":"In-person signing","description":"Let a signer complete a Box Sign request on the requester's device, and cycle through several in-person signers in one session.","href":"/guides/box-sign/in-person-signing"},{"title":"21 CFR Part 11 requests","sidebarTitle":"21 CFR Part 11","description":"Send GxP signature requests through the Box Sign API with request_flow set to cfr11, and handle the extra validation rules.","href":"/guides/box-sign/cfr-part-11"},{"title":"Deliver the request to signers","sidebarTitle":"Deliver to signers","description":"Customize Box Sign email, send your own notifications, or embed the signing client so signers can complete a request in your app.","href":"/guides/box-sign/how-signers-get-the-request"}]},{"group":"Manage requests","pages":[{"title":"List and get Box Sign requests","sidebarTitle":"List and get requests","description":"List all Box Sign requests for the current user, or get a single request by ID.","href":"/guides/box-sign/list-sign-requests"},{"title":"Resend a Box Sign request","sidebarTitle":"Resend a request","description":"Resend a Box Sign request email to remaining signers, or enable automatic reminders when you create the request.","href":"/guides/box-sign/resend-sign-request"},{"title":"Cancel a Box Sign request","sidebarTitle":"Cancel a request","description":"Cancel an unsigned Box Sign request and optionally provide a cancellation reason.","href":"/guides/box-sign/cancel-sign-request"},{"title":"Box Sign webhooks","sidebarTitle":"Webhooks","description":"Listen for Box Sign request events on a folder, create a webhook, and handle the notification payload.","href":"/guides/box-sign/webhooks"}]},{"group":"Reference","pages":[{"title":"Box Sign endpoints","sidebarTitle":"Endpoints","description":"A map of the Box Sign request and template endpoints, and what each one does.","href":"/guides/box-sign/api-endpoints"},{"title":"Box Sign request status","sidebarTitle":"Request status","description":"What each Box Sign request status means, and which statuses let you resend or cancel a request.","href":"/guides/box-sign/request-status"}]}]},{"group":"Security \u0026 compliance","pages":[{"group":"Security","pages":[{"title":"Security","sidebarTitle":"Overview","description":null,"href":"/guides/security/index"},{"title":"FedRAMP","description":null,"href":"/guides/security/fedramp"},{"title":"Device Pinners","description":null,"href":"/guides/security/device-pinners"},{"title":"Cross-Origin Resource Sharing (CORS)","description":null,"href":"/guides/security/cors"},{"group":"Terms of Service","pages":[{"title":"Terms of Service","sidebarTitle":"Overview","description":null,"href":"/guides/security/terms-of-service/index"},{"title":"Application Flow","description":null,"href":"/guides/security/terms-of-service/flow"},{"title":"Find Terms for Collaboration","description":null,"href":"/guides/security/terms-of-service/for-colaboration"},{"title":"Permissions","description":null,"href":"/guides/security/terms-of-service/permissions"}]}]},{"group":"Legal Holds","pages":[{"title":"Legal Holds","sidebarTitle":"Overview","description":null,"href":"/guides/legal-holds/index"},{"title":"List All Legal Hold Policies","description":null,"href":"/guides/legal-holds/list"},{"title":"Get Legal Hold Policy","description":null,"href":"/guides/legal-holds/get"}]},{"group":"Retention Policies","pages":[{"title":"Retention Policies","sidebarTitle":"Overview","description":null,"href":"/guides/retention-policies/index"},{"title":"List All Retention Policies","description":null,"href":"/guides/retention-policies/list"},{"title":"Get Retention Policy","description":null,"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","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#ty9l3"}},"pages":[{"title":"ja","href":"/ja/guides/getting-started"}]}]},"title":"Box for Developers quick start - Box Dev Docs","buildId":"dpl_AEzG1ss5XJooq2b7ZjQnALs8YZd6","deploymentId":"dpl_AEzG1ss5XJooq2b7ZjQnALs8YZd6","dynamics":["10e4515597","a74be98ba7"],"chunks":["BannerMarkdown-WoIAKPdX.js","dist-ieWvBjkL.js","lib-hPeS2WON.js","lib-vtHBCq3V.js","clsx-BC7mgnCW.js","html-void-elements-mCSPHezU.js","marked.esm-BKo0Hl1x.js","zoom-image-lightbox-DDbhD_7j.js","PlusIcon-Cw-BAajm.js","lightbox-handle-r17bVUz3.js"]}