> For the complete documentation index, see [llms.txt](https://docs.stackai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stackai.com/integrations/catalog/box/connect-box.md).

# Connect Box

## Establishing a Connection to Box

### Box OAuth2

Selecting the Box OAuth2 allows you to connect directly to your Box user account using StackAI's OAuth app. Sign in to Box and your Box connection will be automatically established.

### Box JSON Web Token

JWT (JSON Web Token) is a secure way for our platform to talk directly to your Box account without requiring a specific person to stay logged in. This type of connection connects directly to a Box service account unique to your organization. To set up this type of connection, visit the [Box Developer Console](https://app.box.com/developers/console).

Select **New App** in the top right corner, then name your app and select JWT.

![Connect Box setup](https://1957915746-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSQ1Sgy933krTyK0S4JpP%2Fuploads%2FNKppzd3eoUkwCXjaVNNV%2FScreenshot%202026-01-14%20at%205.12.27%E2%80%AFPM.png?alt=media)

Under Configuration, make sure you have the following:

* Read all files
* Write all files

If you plan to impersonate a user, additionally add the following scopes:

* App + Enterprise Access
* Make API calls using the as-user header

Then **Generate a Public/Private Keypair**.

Once your new app is configured, save your changes.

Go to the Authorization tab and click **Review and Submit.** Once your app is reviewed, it should be ready to use in StackAI.

#### Establishing a Connection

Under the Configuration tab of your App, go to App Settings and **Download as JSON**. This file will contain everything you need to create a connection.

Inside StackAI, create a new connection by selecting **+ New Connection**. Go to Box -> Box (JWT) and fill in the fields with the data in your .json file.

![Connect Box setup](https://1957915746-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSQ1Sgy933krTyK0S4JpP%2Fuploads%2FAxDWj0MfQLiYfekpriLw%2FScreenshot%202026-01-14%20at%206.09.30%E2%80%AFPM.png?alt=media)

***

## Connection fields and action reference

See [Box](https://docs.stackai.com/integrations/catalog/box.md) for the current connector fields and supported actions.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.stackai.com/integrations/catalog/box/connect-box.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
