---
title: Set up the Box spoke
description: Integrate your ServiceNow instance and the Box APIs to automate the Box spoke actions. For example, you can set up a flow that removes a file in your Box account. When you set up the Box spoke, this flow is automated.Create a custom OAuth application from your Box account to enable OAuth 2.0 authentication with the Box spoke.Add and configure a Box connection to authenticate ServiceNow requests in a Box spoke.Regenerate the Box OAuth token when it expires. The Box spoke OAuth token expires every thirty days.Set up an OAuth provider with the JWT Bearer grant type to integrate your ServiceNow instance with Box.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/australia/integrate-applications/integration-hub/setup-box-spoke.html
release: australia
product: Integration Hub
classification: integration-hub
topic_type: task
last_updated: "2026-03-12"
reading_time_minutes: 4
breadcrumb: [Box Spoke, Integration Hub spokes, Build integrations, Integration Hub, Workflow Data Fabric]
---
# Set up the Box spoke
Integrate your ServiceNow instance and the Box APIs to automate the Box spoke actions. For example, you can set up a flow that removes a file in your Box account. When you set up the Box spoke, this flow is automated.
## Before you begin
- Request an Integration Hub subscription.
- Activate the Box spoke.
- Access to Box developer's console.
- Role required: admin.
## Create an OAuth application
Create a custom OAuth application from your Box account to enable OAuth 2.0 authentication with the Box spoke.
### Before you begin
Box requirements:
- Box account
- Box administrator credentials
- Role required: admin
### About this task
Complete these steps from your Box account. See the [Box Developer Portal](https://developer.box.com/) documentation for instructions on creating and configuring custom applications.
### Procedure
1. Log in to the [Box developer's console](https://app.box.com/developers/console).
2. Select **Create New App**.
\[Omitted image "box-spoke-create-new-app-icon.png"\] Alt text: Emphasizes the Create New App button
3. Select **Custom App**.
\[Omitted image "box-spoke-custom-app-button.png"\] Alt text: Emphasizes the Custom App option
4. Complete the form.
|
Field
|
Value
|
|---|
|
**App Name**
|
`Box App`
|
|
**Description \(optional\)**
|
Leave this field empty
|
|
**Purpose**
|
Select**Custom Portal**
|
5. Select **Next**.
The Create a Custom App modal appears.
6. Select **User Authentication \(OAuth 2.0\)**.
7. To confirm, select **Create App**.
You are in your application's configuration settings.
8. In the OAuth 2.0 Credentials section, copy the Client ID and Client Secret.
You need this information to register the application as a third-party OAuth provider on your ServiceNow instance.
9. In the Application Scopes section, enable the scope permissions you want to support.
|
Application Scopes
|
Use for
|
|---|
|
Read and write all files and folders stored in Box
|
Document management, document sharing, and folder management actions
|
|
Manage users
|
User management actions
|
|
Manage groups
|
Group management actions
|
|
Manage enterprise properties
|
Document sharing, group management, and user management actions
|
|
Manage webhooks
|
Configuring V2 webhooks
|
|
Manage AI
|
Interact with Box AI actions
|
10. Select **Save Changes**.
## Configure a connection record for the Box spoke
Add and configure a Box connection to authenticate ServiceNow requests in a Box spoke.
### Before you begin
Role required: admin
### Procedure
1. In your ServiceNow instance, navigate to **All** > **Process Automation** > **Workflow Studio**.
2. Click the **Integrations** tab.
3. Under **Connections**, toggle and enable the **Outbound** connections.
4. Locate the alias for **Box** and click **View Details**.
- To configure the default connection and credential alias record that is shipped along with the Box spoke, click **View Details**.
\[Omitted image "box-conn-view-det.png"\] Alt text: View details of the Box connection.
- To manage more than one Box spoke connection records, you should create a new child alias record by clicking **Add Connection**. For more information about using multiple connections, see [Supporting multiple connections](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/integration-hub/support-multiple-connections.md).
If you are configuring the spoke for the first time, click **Configure**. Otherwise, click **Edit**.
\[Omitted image "box-conf-connection.png"\] Alt text: Configure the Box connection.
5. On the form, fill these values.
|
Field
|
Value
|
|---|
|
Connection Name
|
`Box`.
|
|
Connection URL
|
The instance URL in this format:`.net`.
|
|
Credential Name
|
`Box Upload Credentials`.
|
|
OAuth Name
|
`Box OAuth`.
|
|
OAuth Client ID
|
The application client ID. For more information, see [Create an OAuth application](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/integration-hub/setup-box-spoke.md).
|
|
OAuth Client Secret
|
The application client secret. For more information, see [Create an OAuth application](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/integration-hub/setup-box-spoke.md).
|
|
OAuth Redirect URL
|
The URL in this format: `https://.service-now.com/oauth_redirect.do`. Replace `` with your ServiceNow instance name.
|
\[Omitted image "box-connection.png"\] Alt text: Configure the Box connection.
6. Click **Configure Connection**.
### Result
The spoke connection is configured and ready to be used.
**Note:** OAuth tokens expire after 30 days. An administrator can regenerate the spoke OAuth token every 30 days.
## Regenerate Box OAuth token
Regenerate the Box OAuth token when it expires. The Box spoke OAuth token expires every thirty days.
### Before you begin
Role required: admin
### Procedure
1. In your ServiceNow instance, navigate to **All** > **Process Automation** > **Flow Designer**.
2. Select the **Connections** tab.
3. Search for the **Box** connection alias.
4. Select **View Details**.
5. Select **Get OAuth Token** for the connection.
### Result
The Box spoke receives a new OAuth access token. It expires in 30 days.
## Integrate ServiceNow instance with JWT Bearer grant type
Set up an OAuth provider with the JWT Bearer grant type to integrate your ServiceNow instance with Box.
### Before you begin
Role required: admin
### Procedure
1. Do the steps at the Box end.
1. Sign Up for [Box Developer Account](https://developer.box.com).
2. On the [Developer Console](https://app.box.com/developers/console), select **Custom App**.
3. Confirm that the authentication method is OAuth 2.0 with JWT \(Server Authentication\).
4. Enter a unique name for the app and create the app.
5. View the app.
6. On OAuth 2.0 Credentials, copy the Client ID and Client Secret.
7. Create a new keystore and export a public key from that into BOX.
8. Note the enterpriseID under the App Settings.
9. Navigate to **My apps** > **<App Name>** > **General** > **Submit for Authorization**.
10. Select your account name on the top of the Admin Console.
11. In your account, create a folder and upload a text file.
2. Do the steps at the ServiceNow instance end.
1. Navigate to **System Definition** > **Certificates** > **New** > **Type** > **Storepass**.
2. Attach the keystore certificate.
3. Configure a JWT signing key by navigating to **System OAuth** > **JWT Keys** > **New**.
4. Create OAuth application registry entry by navigating to **System OAuth** > **Application Registry** > **New** > **Connect to a third party OAuth Provider** > **Default Grant type \( JWT Bearer\)**.
5. Under the OAuth entity profile \(oauth\_entity\_profile\) associate the created 'jwt provider'.
6. Create a REST message.
7. In the REST Message, select **Get OAuth token** to get the access token.
8. Go to the 'Default GET' method and click on 'Test'.
9. An the BOX end, share the folder and file.