Box
Connect & Ingest data from Box
Box is a cloud content management and file sharing platform for businesses. The Sling Box connector extracts data from the Box Content Cloud API, supporting files, folders, users, events, groups, collaborations, metadata templates, and more.
CLI Pro Required: APIs require a CLI Pro token or Platform Plan.
Setup
The following credentials and inputs are accepted:
Secrets:
client_id(required) -> Your Box application Client IDclient_secret(required) -> Your Box application Client Secretbox_subject_id(required) -> Your Box Enterprise ID
Inputs:
anchor_date(optional) -> The starting date for historical data extraction (default: 364 days ago). Format:YYYY-MM-DD
Getting Your Credentials
Box uses OAuth2 Client Credentials Grant (CCG) for server-to-server authentication. A free Box Developer account includes 10GB storage and full API access.
Sign up for a free developer account at https://account.box.com/signup/n/developer
Go to the Developer Console
A Default App with Client Credentials Grant (CCG) authentication is automatically created
On the Configuration tab, find your Client ID
To access the Client Secret, you must enable 2-Step Verification in your Box account:
Go to Account Settings > 2-Step Verification and enable it
Return to the Developer Console to view the Client Secret
Your Enterprise ID is on the General Settings tab of the Developer Console
Important: You must enable 2-Step Verification (2FA) on your Box account before the Client Secret will be visible in the Developer Console.
Using sling conns
sling connsEnvironment Variable
See here to learn more about the .env.sling file.
Sling Env File YAML
See here to learn more about the sling env.yaml file.
With anchor date for historical data:
Replication
Here's an example replication configuration to sync Box data to a PostgreSQL database:
Sync all endpoints:
Endpoints
Users & Groups
users
Enterprise managed users
No
groups
Enterprise groups
No
group_memberships
Memberships for each group (iterates over groups)
No
Files & Folders
folder_items
Items (files, folders, web links) in root folder and subfolders
No
Events
events
User events with cursor-based sync
Yes
Collaboration & Organization
collaborations
Pending collaborations
No
collections
User collections (e.g., Favorites)
No
metadata_templates
Enterprise metadata templates
No
Webhooks
webhooks
Webhooks configured for the application
No
Box Sign
sign_requests
Box Sign requests
No
sign_templates
Box Sign templates
No
Trash
trashed_items
Items in the trash
No
To discover available endpoints:
Incremental Sync
The Box connector supports incremental sync for the events endpoint using cursor-based pagination with stream_position:
First run: Fetches all events from the beginning
Subsequent runs: Only fetches events after the last known stream position
All other endpoints use full-refresh mode since the Box API does not support filtering by modification timestamps.
Rate Limiting
The Box API enforces rate limits per application. The connector automatically:
Limits to 10 requests/second
Retries with exponential backoff on 429 (rate limit) responses
Notes
Parent-child endpoints: The
group_membershipsendpoint iterates over groups fetched by thegroupsendpoint. Similarly,folder_itemsrecursively discovers subfolders.Authentication: The connector uses OAuth2 Client Credentials Grant (CCG) and automatically handles token refresh.
Enterprise scope: The
usersendpoint returns managed users in the enterprise. Theeventsendpoint returns enterprise-wide events.
If you are facing issues connecting, please reach out to us at [email protected], on discord or open a Github Issue here.
Last updated
Was this helpful?