Skip to main content

Box Connector

Box Box is a file sharing platform that allows teams to collaborate and share files with one another. The Box component allows creating, listing, fetching, moving, and deleting files and folders in a customer's Box account.

API Documentation​

This component was built using the Box REST API

Connections​

Developer Token​

Authenticate requests using a developer token.

A Developer Token is a short-lived (60-minute) token that can be used for testing purposes. Developer tokens allow access to the Box API for a personal Box account only.

Production Authentication

When an integration is ready for production, an OAuth 2.0 connection is required to authenticate customer Box accounts. Testing can also be performed with OAuth 2.0.

Prerequisites​

Setup Steps​

To generate a developer token:

  1. Navigate to the Box Developer Console
  2. Select Create New App
  3. Choose Custom App and click Next
  4. Select User Authentication (OAuth 2.0) and click Next
  5. Enter an app name and click Create App
  6. In the app's Configuration tab, scroll to the Developer Token section
  7. Click Generate Developer Token
  8. Copy the generated token (valid for 60 minutes)

For more information, refer to the Box Developer Token documentation.

Configure the Connection​

  • Enter the developer token value into the Developer Token field of the connection configuration
Token Expiration

Developer tokens expire after 60 minutes. Generate a new token if authentication fails due to expiration.

InputCommentsDefault
Developer TokenA short-lived developer token for testing purposes. Obtain from Box Developer Console.

OAuth 2.0​

Authenticate using OAuth 2.0.

To connect to Box using OAuth 2.0, create a Box OAuth 2.0 app to authorize the integration to access customer Box accounts.

Refer to the Box OAuth 2.0 setup guide for detailed information.

Prerequisites​

Setup Steps​

  1. Navigate to the Box Developer Console
  2. Click Create New App
  3. Select Custom App and click Next
  4. Select User Authentication (OAuth 2.0) and click Next
  5. Enter an app name and click Create App
  6. In the app's Configuration tab, configure the OAuth settings:
    • Copy the Client ID and Client Secret values
    • Under OAuth 2.0 Redirect URI, add https://oauth2.integrations.acme.com/callback
    • Under Application Scopes, select the appropriate permissions:
      • For full access, select Write all files and folders stored in Box
      • For read-only access, select Read all files and folders stored in Box
      • Refer to Box scopes documentation for more granular permissions
    • Leave CORS Domains blank
  7. Click Save Changes

Configure the Connection​

  • Enter the Client ID and Client Secret from the Box app configuration
  • For Scopes, either:
    • Leave blank to use the Application Scopes configured in the Box app
    • Enter specific scopes as a space-separated list (e.g., root_readwrite manage_webhook)
    • Refer to Box scopes documentation for available scopes
Box Enterprise Features

Some Box features require an Enterprise account. Ensure the Box account has appropriate subscription level for the required functionality.

App Authorization​

Box gives enterprise IT administrators explicit control over which third-party apps can access their organization's data. This is not a vendor review process. It is an enterprise access control step that a Box administrator at the customer's organization must complete before their users can connect.

Box enterprise accounts require an administrator to explicitly authorize a custom app before any users in the organization can authenticate. This is a hard requirement: without admin authorization, only the developer's own Box account can connect. All other users receive an error when attempting to authenticate.

Personal (non-enterprise) Box accounts do not require this step.

Granting App Authorization​

A Box enterprise administrator must authorize the app using the app's Client ID:

  1. In the Box Admin Console, navigate to Apps → Custom Apps Manager
  2. Click Add App
  3. Enter the Client ID from the Box app's Configuration tab
  4. Click Next, review the requested scopes, and select Authorize

Once authorized, users within the enterprise organization can authenticate with the integration.

Re-authorization Required After App Recreation

If the Box app is deleted and recreated, a new Client ID is generated and admin authorization must be repeated.

This connection uses OAuth 2.0, a common authentication mechanism for integrations. Read about how OAuth 2.0 works here.

InputCommentsDefault
Client IDThe OAuth 2.0 client ID from the Box app configuration. Obtain from Box Developer Console.
Client SecretThe OAuth 2.0 client secret from the Box app configuration. Obtain from Box Developer Console.
ScopesA space-delimited set of one or more scopes. Leave blank to use the app's configured default scopes. See Box OAuth Scopes for available options.root_readwrite manage_webhook

Triggers​

Managed Webhook​

Receive and validate webhook requests from Box. Automatically creates and manages a webhook subscription when the instance is deployed, and removes the subscription when the instance is deleted.

InputCommentsDefault
ConnectionThe Box connection to use.
Target IDThe unique identifier of the file or folder that will trigger the webhook.
Target TypeThe type of item that will trigger the webhook (file or folder).
Trigger TypeSelect which event types will trigger this webhook. See Box Events for available options.
Primary Signature KeyA signature key used to validate webhook requests. See Box Webhook Signatures for details.
Secondary Signature KeyA signature key used to validate webhook requests. See Box Webhook Signatures for details.

Manual Webhook​

Receive and validate webhook requests from Box for manually configured webhook subscriptions.

InputCommentsDefault
Primary Signature KeyA signature key used to validate webhook requests. See Box Webhook Signatures for details.
Secondary Signature KeyA signature key used to validate webhook requests. See Box Webhook Signatures for details.

New and Updated Files​

Checks for new and updated files in a specified folder on a configured schedule.

InputCommentsDefault
ConnectionThe Box connection to use.
Folder IDThe unique identifier of the folder.

New File Comments​

Checks for new comments on a specified file on a configured schedule.

InputCommentsDefault
ConnectionThe Box connection to use.
File IDThe unique identifier of the file.

New Folders​

Checks for new folders in a specified folder on a configured schedule.

InputCommentsDefault
ConnectionThe Box connection to use.
Folder IDThe unique identifier of the folder.

Actions​

Add Shared Link to File​

Adds a shared link to a file.

InputCommentsDefault
File IDThe unique identifier of the file.
Shared LinkThe URL of the shared link.
Shared Link AccessThe level of access for the shared link. Values: open, company, collaborators. See Box Shared Links for details.
Additional FieldsAdditional optional fields: includes Shared Link Password, Shared Link Permissions, and Shared Link Vanity Name.
Shared Link PasswordThe password for the shared link, if one is set.
Shared Link PermissionsThe permissions for the shared link (file). Specify which actions are allowed. See Box Shared Link Permissions for details.
{
"can_download": true,
"can_edit": true,
"can_preview": true
}
Shared Link Vanity NameThe custom vanity name for the shared link URL. Creates a URL like https://app.box.com/v/your-vanity-name.
ConnectionThe Box connection to use.

Add Shared Link to Folder​

Adds a shared link to a folder.

InputCommentsDefault
Folder IDThe unique identifier of the folder.
Shared LinkThe URL of the shared link.
Shared Link AccessThe level of access for the shared link. Values: open, company, collaborators. See Box Shared Links for details.
Additional FieldsAdditional optional fields: includes Shared Link Password, Shared Link Permissions Folder, and Shared Link Vanity Name.
Shared Link PasswordThe password for the shared link, if one is set.
Shared Link Permissions FolderThe permissions for the shared link (folder). Specify which actions are allowed. See Box Shared Link Permissions for details.
{
"can_download": true,
"can_preview": true
}
Shared Link Vanity NameThe custom vanity name for the shared link URL. Creates a URL like https://app.box.com/v/your-vanity-name.
ConnectionThe Box connection to use.

Copy Object​

Copy a Folder or File from one path to another.

InputCommentsDefault
From PathThe full path to the source file or folder. Must include a leading forward slash (/).
To PathThe full path to the destination location including the new filename. Must include a leading forward slash (/).
ConnectionThe Box connection to use.

Create Folder​

Create a Folder at the specified path.

InputCommentsDefault
PathThe full path to the file or folder. Must include a leading forward slash (/).
ConnectionThe Box connection to use.

Create Webhook​

Create a webhook to send data from Box to an instance URL.

InputCommentsDefault
Webhook URLThe URL where webhook events will be sent. Reference a flow's URL from the trigger payload.
Target IDThe unique identifier of the file or folder that will trigger the webhook.
Target TypeThe type of item that will trigger the webhook (file or folder).
Trigger TypeSelect which event types will trigger this webhook. See Box Events for available options.
Primary Signature KeyA signature key used to validate webhook requests. See Box Webhook Signatures for details.
Secondary Signature KeyA signature key used to validate webhook requests. See Box Webhook Signatures for details.
ConnectionThe Box connection to use.

Delete Instance Webhooks​

Delete all Box webhooks that point to a flow in this instance.

InputCommentsDefault
ConnectionThe Box connection to use.

Delete Object​

Delete a Folder or File at the specified path.

InputCommentsDefault
PathThe full path to the file or folder. Must include a leading forward slash (/).
ConnectionThe Box connection to use.

Delete Webhook​

Delete a webhook by ID.

InputCommentsDefault
ConnectionThe Box connection to use.
Webhook IDThe unique identifier of the webhook.

Download File​

Download the file at the specified path.

InputCommentsDefault
PathThe full path to the file or folder. Must include a leading forward slash (/).
ConnectionThe Box connection to use.

Returns the file represented by a shared link.

InputCommentsDefault
Shared LinkThe URL of the shared link.
Shared Link PasswordThe password for the shared link, if one is set.
FieldsA comma-separated list of attributes to include in the response. See Box File Fields for available options.
ConnectionThe Box connection to use.

Returns the folder represented by a shared link.

InputCommentsDefault
Shared LinkThe URL of the shared link.
Shared Link PasswordThe password for the shared link, if one is set.
FieldsA comma-separated list of attributes to include in the response. See Box File Fields for available options.
ConnectionThe Box connection to use.

Get Current User​

Get the information and metadata of the user that is currently logged in.

InputCommentsDefault
ConnectionThe Box connection to use.

Get File Download URL​

Get a URL to download the file at the specified path.

InputCommentsDefault
PathThe full path to the file or folder. Must include a leading forward slash (/).
ConnectionThe Box connection to use.

Get Path Details​

Get detailed information about folders/files in the specified path.

InputCommentsDefault
PathThe full path to the file or folder. Must include a leading forward slash (/).
ConnectionThe Box connection to use.

Get Shared Link for File​

Gets the shared link for a file.

InputCommentsDefault
File IDThe unique identifier of the file.
ConnectionThe Box connection to use.

Get Shared Link for Folder​

Gets the shared link for a folder.

InputCommentsDefault
Folder IDThe unique identifier of the folder.
ConnectionThe Box connection to use.

List Folder​

List Folder contents at the specified path.

InputCommentsDefault
PathThe full path to the file or folder. Must include a leading forward slash (/).
Fetch AllWhen true, automatically fetches all pages of results using pagination.false
Fields/MetadataComma-separated attributes to include in the response. Supports metadata queries (e.g., metadata.enterprise_12345.contractTemplate). See Box File Fields for available options.
PaginationMarker, limit, and offset controls for paging through results.
LimitThe maximum number of items to return (1-1000).
MarkerThe pagination marker returned by a previous request to retrieve the next page of results.
OffsetThe position to start returning results from (zero-based index).
ConnectionThe Box connection to use.

List Webhooks​

List all webhooks configured in Box, including those for other integrations.

InputCommentsDefault
ConnectionThe Box connection to use.
Fetch AllWhen true, automatically fetches all pages of results using pagination.false
PaginationMarker and limit controls for paging through results.
LimitThe maximum number of items to return (1-1000).
MarkerThe pagination marker returned by a previous request to retrieve the next page of results.
Show Only Instance WebhooksWhen true, returns only webhooks that point to this instance.true

Move Object​

Move a Folder or File from one path to another.

InputCommentsDefault
From PathThe full path to the source file or folder. Must include a leading forward slash (/).
To PathThe full path to the destination location including the new filename. Must include a leading forward slash (/).
ConnectionThe Box connection to use.

Raw Request​

Send raw HTTP request to Box.

InputCommentsDefault
ConnectionThe Box connection to use.
URLInput the path only, such as /2.0/folders. The base URL https://api.box.com is already included. For example, to call https://api.box.com/2.0/folders, enter /2.0/folders in this field.
MethodThe HTTP method to use.
DataThe HTTP body payload to send to the URL.
Form DataThe Form Data to be sent as a multipart form upload.
File DataFile Data to be sent as a multipart form upload.
File Data File NamesFile names to apply to the file data inputs. Keys must match the file data keys above.
Query ParameterA list of query parameters to send with the request. This is the portion at the end of the URL similar to ?key1=value1&key2=value2.
HeaderA list of headers to send with the request.
Response TypeThe type of data you expect in the response. You can request json, text, or binary data.json
TimeoutThe maximum time that a client will await a response to its request
Debug RequestEnabling this flag will log out the current request.false
Retry Delay (ms)The delay in milliseconds between retries. This is used when 'Use Exponential Backoff' is disabled.0
Retry On All ErrorsIf true, retries on all erroneous responses regardless of type. This is helpful when retrying after HTTP 429 or other 3xx or 4xx errors. Otherwise, only retries on HTTP 5xx and network errors.false
Max Retry CountThe maximum number of retries to attempt. Specify 0 for no retries.0
Use Exponential BackoffSpecifies whether to use a pre-defined exponential backoff strategy for retries. When enabled, 'Retry Delay (ms)' is ignored.false

Remove Shared Link from File​

Removes a shared link from a file.

InputCommentsDefault
File IDThe unique identifier of the file.
ConnectionThe Box connection to use.

Remove Shared Link from Folder​

Removes a shared link from a folder.

InputCommentsDefault
Folder IDThe unique identifier of the folder.
ConnectionThe Box connection to use.

Update Shared Link on File​

Updates a shared link on a file.

InputCommentsDefault
File IDThe unique identifier of the file.
Shared LinkThe URL of the shared link.
Shared Link AccessThe level of access for the shared link. Values: open, company, collaborators. See Box Shared Links for details.
Additional FieldsAdditional optional fields: includes Shared Link Password, Shared Link Permissions, and Shared Link Vanity Name.
Shared Link PasswordThe password for the shared link, if one is set.
Shared Link PermissionsThe permissions for the shared link (file). Specify which actions are allowed. See Box Shared Link Permissions for details.
{
"can_download": true,
"can_edit": true,
"can_preview": true
}
Shared Link Vanity NameThe custom vanity name for the shared link URL. Creates a URL like https://app.box.com/v/your-vanity-name.
ConnectionThe Box connection to use.

Update Shared Link on Folder​

Updates a shared link on a folder.

InputCommentsDefault
Folder IDThe unique identifier of the folder.
Shared LinkThe URL of the shared link.
Shared Link AccessThe level of access for the shared link. Values: open, company, collaborators. See Box Shared Links for details.
Additional FieldsAdditional optional fields: includes Shared Link Password, Shared Link Permissions Folder, and Shared Link Vanity Name.
Shared Link PasswordThe password for the shared link, if one is set.
Shared Link Permissions FolderThe permissions for the shared link (folder). Specify which actions are allowed. See Box Shared Link Permissions for details.
{
"can_download": true,
"can_preview": true
}
Shared Link Vanity NameThe custom vanity name for the shared link URL. Creates a URL like https://app.box.com/v/your-vanity-name.
ConnectionThe Box connection to use.

Upload File​

Upload a file to the specified path.

InputCommentsDefault
PathThe full path to the file or folder. Must include a leading forward slash (/).
File ContentsThe file content to upload. Accepts text, binary data (images, PDFs), or output from a previous step.
ConnectionThe Box connection to use.