Skip to content

Code samples and quickstart guides for Box Developer Documentation. Ready-to-run examples demonstrating Box platform features including AI, authentication, file operations, and more.

Notifications You must be signed in to change notification settings

box-community/box-quickstarts

Repository files navigation

Box Quickstarts

This repository contains code samples and quickstart guides for the Box Developer Documentation. Each quickstart is a standalone, ready-to-run example that demonstrates how to implement specific Box features and capabilities.

About This Repository

The quickstarts in this repository correspond to step-by-step guides in the Box developer documentation. They are designed to help developers:

  • Get started quickly with working code examples
  • Learn by doing through practical, real-world implementations
  • Understand best practices for Box API integration
  • Copy and adapt code for their own projects

Each quickstart is self-contained with its own dependencies, configuration, and sample data, making it easy to clone individual examples without needing the entire repository.

Current Quickstarts

Box AI

The following quickstarts demonstrate Box AI capabilities for intelligent document processing:

Quickstart Description Documentation
box-ai-extract-quickstart Extract structured metadata using Box metadata templates Guide
box-ai-enhanced-extract-quickstart Extract structured metadata with custom field definitions and the Enhanced Extract Agent Guide
box-ai-freeform-extract-quickstart Extract metadata using flexible, free-form prompts Guide
box-ai-summarize-quickstart Generate summaries of document content using Box AI Guide

How to Use These Quickstarts

Prerequisites

Before using any quickstart, you'll need:

  • Python 3.11 or higher installed on your system
  • A Box account (free developer account available at box.com/developers)
  • A Box application configured with appropriate authentication and scopes

General Setup Steps

Each quickstart follows a similar setup pattern:

  1. Clone the quickstart you want to use:

    git clone https://github.com/box-community/box-quickstarts.git
    cd box-quickstarts/<quickstart-name>
  2. Create and activate a virtual environment:

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
  3. Install dependencies:

    pip install -r requirements.txt
  4. Configure environment variables:

    • Copy .env.template to .env
    • Add your Box credentials and configuration values
  5. Run the quickstart:

    python <script-name>.py

Detailed Instructions

Each quickstart directory contains its own README.md with:

  • Specific prerequisites and Box app configuration requirements
  • Detailed setup instructions
  • Explanation of what the code does
  • Expected output
  • Links to relevant documentation

Repository Structure

box-quickstarts/
├── README.md                              # This file
├── box-ai-extract-quickstart/             # Template-based metadata extraction
├── box-ai-enhanced-extract-quickstart/    # Advanced extraction with custom fields
├── box-ai-freeform-extract-quickstart/    # Free-form prompt extraction
└── box-ai-summarize-quickstart/           # Document summarization

Each quickstart is an independent project with:

  • Its own git repository and history
  • Complete documentation (README.md)
  • Environment configuration template (.env.template)
  • Sample data files for testing
  • Python scripts with the implementation

Coming Soon

This repository will expand to include quickstarts for:

  • Authentication methods (OAuth 2.0, JWT, CCG)
  • File operations (upload, download, preview)
  • Collaboration features (comments, tasks, approvals)
  • Metadata and classification
  • Webhooks and events
  • Search and collections
  • And many more Box platform features

Support and Resources

Contributing

These quickstarts are maintained by Box and the developer community. If you find issues or have suggestions for improvements, please open an issue or submit a pull request.

License

See individual quickstart directories for license information.


Note: These quickstarts use developer tokens and are intended for development and testing purposes. For production applications, use OAuth 2.0, JWT, or Client Credentials Grant authentication.

About

Code samples and quickstart guides for Box Developer Documentation. Ready-to-run examples demonstrating Box platform features including AI, authentication, file operations, and more.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages