Set up the Box spoke
-
- UpdatedMar 26, 2025
- 5 minutes to read
- Xanadu
- Now Platform Capabilities
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 Integration Hub subscription
- Activate the Box spoke plugin
- 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 account
- Box administrator credentials
- Role required: admin
About this task
Procedure
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
Result
The spoke connection is configured and ready to be used.
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
- In your ServiceNow instance, navigate to .
- Select the Connections tab.
- Search for the Box connection alias.
- Select View Details.
- Select Get OAuth Token for the connection.
Result
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
-
Do the steps at the Box end.
- Sign Up for Box Developer Account.
- On the Developer Console, select Custom App.
- Confirm that the authentication method is OAuth 2.0 with JWT (Server Authentication).
- Enter a unique name for the app and create the app.
- View the app.
- On OAuth 2.0 Credentials, copy the Client ID and Client Secret.
- Create a new keystore and export a public key from that into BOX.
- Note the enterpriseID under the App Settings.
- Navigate to .
- Select your account name on the top of the Admin Console.
- In your account, create a folder and upload a text file.
-
Do the steps at the ServiceNow instance end.
- Navigate to .
- Attach the keystore certificate.
- Configure a JWT signing key by navigating to .
- Create OAuth application registry entry by navigating to .
- Under the OAuth entity profile (oauth_entity_profile) associate the created 'jwt provider'.
- Create a REST message.
- In the REST Message, select Get OAuth token to get the access token.
- Go to the 'Default GET' method and click on 'Test'.
- An the BOX end, share the folder and file.