captionhub

Connectors

Configure the Box connector

Set up a Box Platform app and connect CaptionHub to a Box folder to import videos and publish captions and voiceovers.

📢

Requirements: The Box connector is in private beta and requires an Enterprise plan plus a Box Business plan or above (for Box API access). Features may change before general release. Contact your account manager to request access.

CaptionHub connects to Box through a Box Platform app that uses server authentication. CaptionHub signs in as the app’s own service account, so imports, automation and publishing all work without anyone signing in to Box. Setup takes about 10 minutes, and a Box admin needs to approve the app.

You’ll finish with these values to paste into CaptionHub:

CaptionHub field
Where it comes from
Client ID
Developer Console → your app → App Details → Credentials
Client Secret
Developer Console → your app → App Details → Credentials
Enterprise ID
Developer Console → your app → App Details → Credentials
Folder ID
The number at the end of your Box folder’s address

In Box

Step 1: Create the app

  1. Open the Box Developer Console and click New App.
  1. Give the app a name, for example CaptionHub.
  1. Under App Type, keep Server selected, then click Create.
  1. Under Server Authentication Method, select Client Credentials Grant.
Notion image

Step 2: Configure the app

On the app’s Configuration tab:

  1. Under Server Authentication Method, select Client Credentials.
  1. Under App Access Level, select App Access Only.
    1. Client Credentials and App Access Only selected on the Configuration tab
      Client Credentials and App Access Only selected on the Configuration tab
  1. Under Application Scopes, open Content Actions and tick both Read all files and folders stored in Box and Write all files and folders stored in Box. CaptionHub needs write access to publish captions and voiceovers back to Box. It doesn’t need any of the other scopes.
    1. The two Content Actions scopes CaptionHub needs
      The two Content Actions scopes CaptionHub needs
  1. Click Save.

Step 3: Copy the credentials

Open the App Details panel from the button next to Save.

  1. Under Credentials, copy the Client ID.
  1. Click Fetch Secret and copy the Client Secret. Box only shows the secret when two-step verification is turned on for your Box account.
  1. Copy the Enterprise ID.
  1. Under Service Account, copy the service account’s login. It looks like AutomationUser_1234567_AbCdEfGhIj@boxdevedition.com, and you’ll need it in Step 5.
    1. The App Details panel, with the service account and the credentials
      The App Details panel, with the service account and the credentials
⚠️

Treat the Client Secret like a password. Anyone who has it, together with the Client ID, can reach the folders you share with the service account.

Step 4: Authorise the app

A Box admin has to authorise the app before it can connect.

  1. Open the Admin Console and go to Platform.
  1. Click Add, then Add existing app.
    1. Adding an existing app in the Box Admin Console
      Adding an existing app in the Box Admin Console
  1. Paste the app’s Client ID, click Next, and follow the prompts to authorise it.
    1. Entering the app’s Client ID
      Entering the app’s Client ID

The app should then appear in the list as Authorized. If you change the app’s configuration later, a Box admin must authorise it again.

Step 5: Share your video folder with the service account

The service account starts with no access to your files. CaptionHub can only see the folders you share with it.

  1. In Box, open the folder that holds your videos and click Share.
  1. Under Invite People, paste the service account’s login from Step 3.
  1. Keep the role as Invite as Editor, then click Send. CaptionHub needs editor access to publish captions and voiceovers into the folder.
    1. Inviting the service account to a folder as an editor
      Inviting the service account to a folder as an editor
  1. Note the folder ID. It is the number at the end of the folder’s address. For https://app.box.com/folder/123456789, the folder ID is 123456789.

In CaptionHub

The Box connector on the Connectors page
The Box connector on the Connectors page
  1. In the sidebar, under Automation & integrations, open the Connectors page.
  1. Find the Box connector and click Edit.
  1. Enable the connector and enter:
      • Client ID
      • Client Secret
      • Enterprise ID
      • Folder ID
      • Captions are published in VTT format by default. You can choose a different subtitle format here.
  1. Leave User ID blank. It is only for connecting as a particular Box user instead of the service account.
  1. Click Save. CaptionHub checks the credentials and the folder, and the connector shows as Active.
    1. The Box connector settings
      The Box connector settings
💡

If saving fails, check that a Box admin has authorised the app, that the folder is shared with the service account, and that the folder ID is right.

Import videos from Box

  1. On the Projects page, click Create new project and select Box.
    1. Creating a project from Box
      Creating a project from Box
  1. CaptionHub lists the videos and audio files in your Box folder. Choose an automation template if you want one, then click Import to CaptionHub.
    1. Videos from the Box folder, ready to import
      Videos from the Box folder, ready to import

CaptionHub lists the files directly inside the folder, not the files in its subfolders.

Publish captions and voiceovers to Box

When you publish from a project’s Publish tab, CaptionHub saves the files in Box next to the video:

  • Captions are named after the video and the language, for example brompton_DE.vtt.
  • Voiceovers go into a Voiceovers folder next to the video.
  • Publishing again adds a new version of the same file.
Published captions and the Voiceovers folder next to the video in Box
Published captions and the Voiceovers folder next to the video in Box
💡

The Box video player doesn’t show separate caption files. The published files are there for you to download or use elsewhere.

Import new videos automatically

An automation template can import new videos from Box as they arrive. Set its Project source to Box and Automatically import to Import all new media. CaptionHub then checks the folder every few minutes and imports any new videos. To watch a different folder from the connector’s, enter its ID under Folder ID.

An automation template that imports from Box
An automation template that imports from Box

Each check uses Box API calls, which count towards your Box plan’s monthly API allowance.

Did this answer your question?
😞
😐
🤩