What can you do with it?
The Box API allows you to manage files and folders in your enterprise cloud storage. You can upload and download files, create and organize folders, search for content across your entire organization, move files and folders, retrieve metadata, and handle all aspects of your file storage with comprehensive enterprise-grade cloud storage management.How to use it?
Basic Command Structure
Parameters
Required:action
- The action to perform (upload, download, list, create, move, search, delete)entity
- The entity type (file, folder)id
- File or folder ID for specific operations
parent_id
- Parent folder ID for uploads and folder creationname
- File or folder namequery
- Search query stringtype
- Search filter (file, folder, web_link)limit
- Maximum number of search resultsoffset
- Search result offset for pagination
Tools
Save File
Upload a new file to a specified folder in Box. Parameters:name
(required) - File name for the uploadparent_id
(required) - Parent folder ID where file will be uploadedfile_content
(required) - File content to upload
Get File Content
Download a file from Box using its ID with proper binary handling. Parameters:file_id
(required) - File ID to download
Get File by ID
Retrieve metadata information about a file using its ID. Parameters:file_id
(required) - File ID to retrieve information for
List Files
List all items (files and folders) in a specified folder. Parameters:folder_id
(required) - Folder ID to list contents oflimit
(optional) - Maximum number of items to returnoffset
(optional) - Number of items to skip for pagination
Create Folder
Create a new folder within a specified parent folder. Parameters:name
(required) - Name for the new folderparent_id
(required) - Parent folder ID (use “0” for root)
Move Folder
Move a folder to a different parent folder. Parameters:folder_id
(required) - Folder ID to moveparent_id
(required) - New parent folder ID
Get Folder by ID
Retrieve information about a folder using its ID. Parameters:folder_id
(required) - Folder ID to retrieve information for
Search
Search for files, folders, and web links across user content or enterprise-wide. Parameters:query
(required) - Search query stringtype
(optional) - Filter by item type (file, folder, web_link)limit
(optional) - Maximum number of results (default: 30, max: 200)offset
(optional) - Number of results to skip for paginationancestor_folder_ids
(optional) - Limit search to specific foldersfile_extensions
(optional) - Filter by file extensionsscope
(optional) - Search scope (user_content, enterprise_content)
Delete Folder
Delete a folder using its ID (folder must be empty or use recursive parameter). Parameters:folder_id
(required) - Folder ID to deleterecursive
(optional) - Delete folder and all contents (default: false)