Box is a cloud-based enterprise content management platform trusted by thousands of businesses around the world to securely store and manage their business content. Using our APIs, developers can manage and interact with files stored in Box and use Box as a content management layer in their applications.
Use the Box Platform APIs to bring secure content management and collaboration features to your application, using the same technology powering Box.
Use the Box Platform APIs to connect an application with Box to upload, access and manage content in Box — just for your business.
Use the Box Platform APIs to connect an application with Box and publish to the Box App Gallery for millions of users to discover and use.
Enhance content in Box using machine learning. Use the Box Skills Kit to integrate machine learning services to add rich metadata to files in Box.
Box helps developers overcome challenges with content management by taking complex processes and abstracting them with just a few lines of code — all backed by the industry's leading security and compliance profile.
// Set upload values
const filePath = 'PATH TO LOCAL FILE TO BE UPLOADED';
const fileName = 'FILE NAME TO UPLOAD AS';
const folderId = 'FOLDER ID TO UPLOAD TO';
// Create file upload stream
const stream = fs.createReadStream(filePath);
// Upload file
client.files.uploadFile(
folderId,
fileName,
stream,
callback);
function callback(err, res) {
// HANDLE ERROR CASE AND RESPONSE
}
// Set upload values
String filePath = "PATH TO LOCAL FILE TO BE UPLOADED";
String fileName = "FILE NAME TO UPLOAD AS";
String folderId = "FOLDER ID TO UPLOAD TO";
// Select Box folder
BoxFolder folder = new BoxFolder(api, folderId);
// Upload file
FileInputStream stream = new FileInputStream(filePath);
BoxFile.Info newFileInfo = folder.uploadFile(stream, fileName);
stream.close();
// Set upload values
var filePath = 'PATH TO LOCAL FILE TO BE UPLOADED';
var fileName = 'FILE NAME TO UPLOAD AS';
var folderId = 'FOLDER ID TO UPLOAD TO';
// Upload file
BoxFile newFile;
using(FileStream stream = new FileStream(filePath, FileMode.Open))
{
BoxFileRequest req = new BoxFileRequest()
{
Name = fileName,
Parent = new BoxRequestEntity(){ Id = folderId }
};
newFile = await client.FilesManager.UploadAsync(req, stream);
Console.Out.Write(newFile.Id);
}
# Set upload values
file_path = 'PATH TO LOCAL FILE TO BE UPLOADED'
file_name = 'FILE NAME TO UPLOAD AS'
folder_id = 'FOLDER ID TO UPLOAD TO'
box_file = client.folder(folder_id).upload(file_path, file_name)
# Set upload values
filepath = 'PATH TO LOCAL FILE TO BE UPLOADED'
filename = 'FILE NAME TO UPLOAD AS'
# Select Box folder
folder = client.folder_from_path('/')
# Upload file
file = client.upload_file(filepath, folder, name: filename)
var ACCESS_TOKEN = 'EqFyi1Yq1tD9mxY8F38sxDfp73pFd7FP';
var FILE_ID = '93392244621';
var FILE_ID_VIDEO = '101504801571';
var FILE_ID_3D = '101532838591';
var FILE_ID_TEXT = '101524518971';
var preview = new Box.Preview();
preview.show(FILE_ID, ACCESS_TOKEN, {
container: '.preview-container',
showDownload: true,
collection: [FILE_ID, FILE_ID_VIDEO, FILE_ID_3D, FILE_ID_TEXT]
});
BOXFile *file = ... // A BOXFile that you retrieved through the Content SDK or Browse SDK. See the Sample Application for an example.
BOXFilePreviewController *filePreviewController = [[BOXFilePreviewController alloc] initWithContentClient:[BOXContentClient defaultClient] file:file];
[self.navigationController pushViewController:filePreviewController animated:YES completion:nil];
BoxPreviewActivity.IntentBuilder builder = BoxPreviewActivity.createIntentBuilder(this, boxSession, boxFile);
Thousands of developers from businesses of all sizes use the Box Platform to build integrations and custom applications.
Upload, access and manage content in Box's secure cloud platform, trusted by thousands of enterprise businesses around the world. All files are encrypted in transit and at rest.
Display interactive viewers for documents, presentations, spreadsheets, images, videos, 3D models, DICOM and dozens of other types of files using a powerful Javascript library.
Find files in Box with keyword-based queries across file and folder names file descriptions, and in-file text for documents.
Add additional context to files in Box with custom, structured key-value pairs for file and folder objects in Box.
Configure Box to help meet regulatory compliance obligations. Box supports HIPAA, FedRAMP Level 4, FINRA, PCI, AICPA SOC1 & SOC2, EU-US Privacy Shield, ISO 27018, ITAR, and more.
Access a complete log of events for more than 70 different types of file, user and enterprise activity.