How to Connect to your Box Account
Overview
In order to access your Box account programmatically, you'll need to go through a series of steps to create an app, authorize that account for your organization, and generate a public/private key.
Once these steps are complete, you'll only ever need to provide the JSON file generated in the process.
Steps
1. Enable 2FA on your Box Account
Log into your Box account here.
Click your user icon or initials in the upper-right corner and select Account Settings.

3. Scroll down to the Authentication section and click Require 2-step verification for unrecognized logins.

4. You'll see a pop-up to enter in a phone number for 2FA. Fill out the information and click Continue. You'll be sent a verification code to the phone number you provided.

5. Enter in the confirmation code you received and click Continue.

You've successfully set up 2-Factor Authentication on your Box account.
2. Create a Box App
Go to the Box Developer Console.
Click the button to Create New App.
On the next screen, select to make a Custom App and click Next.

4. On the next screen, you'll be asked what type of authentication method you want to use. Select OAuth 2.0 with JWT (Server Authentication) and click Next.

5. Give your app a good, memorable name and click Create App.

6. On the next screen, you can ignore the text and click View My App. This will redirect you to your app's configuration page.
7. Scroll down to the section for OAuth 2.0 Credentials. Click copy on the Client ID field.

Note: You'll need this Client ID for later! Keep it somewhere safe.
8. Scroll down to the Application Access section and select Enterprise.

9. Scroll down to the Advanced Features section and turn on the two switches for Perform Actions as Users and Generate User Access Tokens.

10. Scroll to the Add and Manage Public Keys section. Click Generate a Public/Private Keypair. This will open a prompt to save a JSON file.

Note: You will need the contents of this JSON file for later. Save it somewhere safe!
11. Click OK on the next prompt and then click the Save Changes button in the top-right corner of the screen.
3. Authorize your Box App
Go to the Admin Console of your Box Organization.
Click Apps on the left-hand side navigation.

3. Click the Tab for Custom Apps and click Authorize New App.

4. Paste the Client ID for your application that you copied in Step 2 and click Next.

5. On the next screen, click Authorize.

6. Verify that under User Access, your application says All Users.

If it doesn't, go back to the Box Developer Console, select your application, select Configuration on the side navigation, then scroll down to Advanced Features. You'll need to make sure both of these options are turned on (blue).
Go back to the authorization page, hover over your application name, click the 3 dots next to your application name and click Reauthorize App.
You've successfully set up your Box to work correctly with scripts running on Shipyard and your local computer!
4. Providing your Credentials on Shipyard
If you've gone through all of the above steps, the JSON file with your credentials is the only thing you'll need to authenticate your Box account with Shipyard.
For any Blueprint that connects with Box, you can provide your credentials in one of two ways:
Upload the file as part of the Blueprint and reference the JSON file name in the
Service Account
field.Paste the contents of the JSON file into the
Service Account
field.
Last updated
Was this helpful?