Box REST API based integration: Documentation Link

⚠️ Proxy Configuration: If your server accesses the internet through a proxy, make sure to whitelist the following domains for DropBox Authentication and storage access: api.box.com
⚠️ Restriction:
- REST API does not support resume on upload
- No mdtm (File modification time) changes.
- The REST API does not support streaming during upload. For large file uploads (files larger than 25 MB), CrushFTP temporarily stores the file in the following location: CrushFTP Install Folder/box/<<box username>>
Create a new Custom App at Box Developer Console (Box Console Link


CrushFTP uses the JWT Authentication (More info: Box JWT Link


In the Custom App’s configuration, select App + Enterprise Access as the authentication method to enable full access for server-side integrations within your Box enterprise environment.

Under Application Scopes, enable the following permissions by checking the boxes:
✅ Write all files and folders stored in Box
✅ Manage users
These scopes are required to allow CrushFTP to upload data and interact with Box user accounts on your behalf.

Check the "Make API calls using the as-user header" checkbox at Advanced Features

Generate the RSA keypair for JWT at Configuration -> Add and Manage Public Keys

Save your Custom App changes.
At Authorization tab : Review and submit for app approval. Requires Box admin approval.
Important!!! : Any change on Custom App configurations requires reauthorization. The box admin needs to re-authorize your Custom Application.
Dwonload JSON file from Configuration -> App Settings
The JSON file should contains:
{ "boxAppSettings": { "clientID": "ogXXXXXXXXXXXXXXXX", "clientSecret": "laAXXXXXXXXXXXX", "appAuth": { "publicKeyID": "cgXXXXXXXXX", "privateKey": "-----BEGIN ENCRYPTED PRIVATE KEY-----\nXXXXXXXXXXXXXXXXXXXXXnblc=\n-----END ENCRYPTED PRIVATE KEY-----\n", "passphrase": "aXXXXXXXXXXXXXXXXXXXXe" } }, "enterpriseID": "2XXXXXXXXX5" }
Configuration: On CrushFTP at remote connection settings:
1. If flag "Store JWT JSON file" is checked.
User name : - box login user name
JWT config: - Copy the entire JWT config JSON file content to the input field.

2. "Store JWT JSON file" is unchecked:
User name : - box login user name
Password: - "clientSecret" from the JSON config file
Client Id: - "clientID" from the JSON config file
Enterprise Id: - "enterpriseID" from the JSON config file
Public Key Id: - "publicKeyID" from the JSON config file
Private Key: - "privateKey" from the JSON config file
Private Key password phrase: - "passphrase" from the JSON config file

Add new attachment
Only authorized users are allowed to upload new attachments.
List of attachments
Kind | Attachment Name | Size | Version | Date Modified | Author | Change note |
---|---|---|---|---|---|---|
png |
box_app_access_level.png | 66.8 kB | 1 | 05-Dec-2023 05:32 | krivacsz | |
png |
box_app_scopes.png | 65.2 kB | 1 | 05-Dec-2023 05:32 | krivacsz | |
png |
box_as_user_header.png | 38.3 kB | 1 | 05-Dec-2023 05:32 | krivacsz | |
png |
box_create_custom_app.png | 174.2 kB | 1 | 05-Dec-2023 05:32 | krivacsz | |
png |
box_jwt_auth.png | 89.2 kB | 1 | 05-Dec-2023 05:32 | krivacsz | |
png |
box_rsa_keypair.png | 56.3 kB | 1 | 05-Dec-2023 05:32 | krivacsz | |
png |
box_vfs_congfig_file.png | 259.3 kB | 1 | 05-Dec-2023 05:32 | krivacsz | |
png |
box_vfs_settings.png | 295.9 kB | 4 | 05-Dec-2023 05:32 | krivacsz |
«
This particular version was published on 20-May-2025 02:14 by krivacsz.
G’day (anonymous guest)
Log in
JSPWiki