Required Scopes
To configure a Sync for Box, you need to request the following scopes from your Box OAuth application:root_readonly
Synced Objects
Box supports the following Synced Objects:Files
Send a request to Enable Sync to start a file sync. Syncs for Box can be created with one of the following configurations:- Global Sync: All files in the user’s Box account will be synced.
- Folder Sync: Only files in the specified folder will be synced (recursively including all subfolders by default).
- Sync of specific files: Only a group of specific files will be synced.
- Global Sync
- Folder Sync
- Sync of specific files
Example
string[]
An optional array of MIME types to filter synced files. Only files matching the specified MIME types will be synced.
string
An optional RE2 regular expression that filters synced files by filename. Only files whose name matches the pattern are synced. Folders are always traversed regardless of the pattern.Matching is unanchored and case-sensitive. Use the inline
(?i) flag for case-insensitive matches, and anchors (^, $) for exact-name matches. Lookarounds and backreferences are not supported. Patterns are limited to 1000 characters.Example: (?i)\.pdf$ syncs only PDF files.Choosing Files and Folders
You can allow your user to select files from their Box account in your app with the Box File Picker provided by the Paragon SDK.Showing the File Picker
Use the Paragon SDK in your frontend application to show the File Picker in your app. The SDK provides anExternalFilePicker class to load Box’s JavaScript into your page and authenticate with your user’s connected Box account.