Skip to main content

πŸš€ Quickstart

Connect to Box with Nango and see data flow in 2 minutes.
1

Create the integration

In Nango (free signup), go to Integrations -> Configure New Integration -> Box. Nango doesn’t provide a test OAuth app for Box yet. You’ll need to set up your own by following these instructions. After that, make sure to add the OAuth client ID, secret, and scopes in the integration settings in Nango.
2

Authorize Box

Go to Connections -> Add Test Connection -> Authorize, then log in to Box. Later, you’ll let your users do the same directly from your app.
3

Call the Box API

Let’s make your first request to the Box API (fetch the profile of the currently signed-in user). Replace the placeholders below with your secret key, integration ID, and connection ID:
  • cURL
  • Node
curl "https://api.nango.dev/proxy/2.0/users/me" \
  -H "Authorization: Bearer <NANGO-SECRET-KEY>" \
  -H "Provider-Config-Key: <INTEGRATION-ID>" \
  -H "Connection-Id: <CONNECTION-ID>"
Or fetch credentials with the Node SDK or API.βœ… You’re connected! Check the Logs tab in Nango to inspect requests.
4

Implement Nango in your app

Follow our quickstart to integrate Nango in your app.To obtain your own production credentials, follow the setup guide linked below.

πŸ“š Box Integration Guides

Nango maintained guides for common use cases. Official docs: Box API docs

🧩 Pre-built syncs & actions for Box

Enable them in your dashboard. Extend and customize to fit your needs.

Files

Function nameDescriptionTypeSource code
filesSync the metadata of a specified files or folders paths from Box. A file or folder id or path can be used.SyncπŸ”— Github

Folders

Function nameDescriptionTypeSource code
folder-contentFetches the top-level content (files and folders) of a folder given its ID. If no folder ID is provided, it fetches content from the root folder.ActionπŸ”— Github
foldersSync the folders at the root level from BoxSyncπŸ”— Github

Users

Function nameDescriptionTypeSource code
create-userCreates a user in Box. Requires an enterprise account.ActionπŸ”— Github
delete-userDeletes a user in Box. Requires an enterprise account.ActionπŸ”— Github
usersFetches a list of users from Box. Requires an enterprise account.SyncπŸ”— Github