Skip to content

Box ​

Your Box space: file an email’s attachments into a folder, fetch a file to send it, share a link and react when a file arrives.

A Box connection lets the Box node upload an email’s attachments to a folder, fetch a file into the run, list or create a folder, search for a file and share a link; and the Box — file added trigger start a workflow when a file arrives.

The connection is born from an OAuth consent. Box rotates its refresh token on every use: Loop & Roll writes the new one every time, under a lock.

At a glance ​

  • Identifier: box
  • Family: Service
  • Set up by: A member (personal) or an administrator (shared with the organisation)
  • Authentication: Sign in with the service (OAuth)
  • Credential type: service:box
  • Official API documentation: https://developer.box.com/reference/
  • API base URL: https://api.box.com/2.0
  • Rate limit applied by Loop & Roll: 240 requests per minute and per connection; up to 3 attempts on a 429 or a 5xx
  • Connection test: Yes

Step by step ​

The same steps are shown in the connection form of the app.

  1. Click “Sign in with Box” and log in with the account whose folders the workflows will use.
  2. Click “Grant access to Box”: you come back here, connected.

Connection fields ​

FieldKindRequiredNotes

Add the connection ​

  1. Open Connections, Box card, give a Name and choose the Scope.
  2. Click Sign in with Box, then Grant access to Box.

Reconnect ​

If Box refuses to renew the access (consent withdrawn, user deactivated, application changed), the connection turns Needs reconnecting, the workflows using it fail with integration.connection_unusable, and you get a notification. Click Reconnect: the connection keeps its name and scope.

OAuth application ​

An administrator sees the OAuth application panel in the connection window: declare the redirect URL <PUBLIC_BASE_URL>/api/v1/integrations/oauth/callback in the Box (Developer Console, “Custom App” with “User Authentication (OAuth 2.0)”, “Read and write all files and folders” scope) application, then paste its client ID and client secret and Save the application. The organisation’s application replaces the instance’s one for new connections.

Calls used ​

ActionBox call
Upload the attachmentsPOST upload.box.com/api/2.0/files/content (multipart)
Fetch a fileGET /2.0/files/{id}/content
List a folderGET /2.0/folders/{id}/items
Create a folderPOST /2.0/folders
SearchGET /2.0/search?type=file
Shared linkPUT /2.0/files/{id}?fields=shared_link
TriggerGET /2.0/folders/{id}/items?sort=date&direction=DESC

Nodes that use this connection ​

Loop & Roll — the workflow builder for email.