Skip to main content

At a glance

Credentials

Set these per environment. See Connect an integration. With a managed OAuth app, Connect works without these variables; set them to use your own OAuth app instead.
VariableRequiredDescription
BOX_CLIENT_IDYesBox OAuth Client ID (from your Custom App in the Developer Console) Docs.
BOX_CLIENT_SECRETYesBox OAuth Client Secret Docs.

Setup

  1. Create a Box app: Sign in at https://app.box.com/developers/console (a free Individual Box account works) and create a Custom App with ‘User Authentication (OAuth 2.0)’.
  2. Configure the redirect URI and scopes: In the app’s Configuration tab, add your redirect URI ending in /api/auth/box/callback and enable the ‘Read and write all files and folders’ application scope.
  3. Copy credentials: Copy the Client ID and Client Secret from the Configuration tab into BOX_CLIENT_ID and BOX_CLIENT_SECRET.
  4. Verify access: Connect your Box account and run the List Folder Items tool against folder 0.
  • Authorization codes are only valid for 30 seconds; the client is authenticated with client_id/client_secret in the token request body
  • Refresh tokens are issued; access tokens are short-lived and refreshed automatically
  • Uploads go to upload.box.com as multipart/form-data: the ‘attributes’ part must come before the ‘file’ part, and files over 50 MB require Box’s chunked upload API (not covered by these tools)
Provider API reference: https://developer.box.com/reference/

Tools

ToolAccessDescription
List Folder ItemsReadList files and subfolders inside a Box folder (folder 0 is the root)
Get FileReadGet metadata about a Box file
Get FolderReadGet metadata about a Box folder
SearchReadSearch for files and folders across the Box account
Create FolderWriteCreate a new folder inside a Box parent folder
Upload FileWriteUpload a new file (up to 50 MB) into a Box folder; larger files require Box’s chunked upload API
Upload File VersionWriteUpload a new version of an existing Box file (up to 50 MB)
List File CommentsReadList comments on a Box file
Add CommentWriteAdd a comment to a Box file
Download FileReadDownload a file’s content; Box responds with a 302 redirect to a short-lived dl.boxcloud.com URL that is followed to fetch the binary content (a 202 with Retry-After means the file is not yet ready)

Example prompts

  • List the files and folders in my Box root folder.
  • Search my Box account for a file by name and show its details.