> ## Documentation Index
> Fetch the complete documentation index at: https://endclose.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Box integration

> Connect your Box enterprise so End Close indexes the folders you share with it and agents can read and save files there.

Connect Box when the documents your team works from, such as statements, contracts and invoices, live in Box. End Close indexes the folders you choose, shows them in **Files**, and keeps them up to date as they change. Agents can read those files and save new ones into a folder you pick.

End Close connects as a Box **Server Authentication App**. A Box admin authorizes it once for your enterprise. End Close then works through its own service account, so the connection doesn't belong to whoever set it up and keeps working after they leave. The service account can only see the folders you share with it.

## At a glance

| | |
| - | - |
| **Connects as** | A Box Server Authentication App, authorized once by a Box admin for your enterprise |
| **What End Close reads** | Only folders shared with End Close's service account and added to **Files** |
| **Updates** | Box webhooks, a check every 10 minutes, and a full re-index every week |
| **Who can set it up** | End Close admins, with a Box admin to authorize the app |
| **Per environment** | Yes |

## Prerequisites

* An End Close admin. Only admins can connect Box or add folders.
* A Box admin for your enterprise, to authorize the End Close app in the Box Admin Console.

A connection belongs to one End Close environment. Repeat these steps in each environment that needs Box.

## Connect Box

**1. Open the Box integration**

In End Close, go to **Settings → Integrations**, choose **Box**, then **Connect**. The dialog shows the End Close client ID. Leave it open.

**2. Authorize End Close in Box**

In the Box Admin Console, open **Integrations → Platform Apps Manager → Server Authentication Apps** and choose **Add App**. Enter the client ID from the End Close dialog and authorize the app.

**3. Enter your enterprise ID**

In the Box Admin Console, find your enterprise ID under **Account & Billing → Account Information**. Enter it in the End Close dialog and choose **Connect**.

End Close checks the authorization by signing in to your enterprise straight away. If Box refuses, check the enterprise ID and that the app is authorized, then try again.

Once connected, the Box dialog shows **Connected**, your enterprise ID and name, and the email address of End Close's service account. You'll need that address in the next step.

## Share folders with End Close

End Close only sees folders shared with its service account. In Box, invite the service account's address to each folder End Close should index, as you would invite a colleague. The invitation covers the folder and everything inside it.

| Box role | What End Close can do |
| - | - |
| **Viewer Uploader** | Index the folder and let agents save new files into it |
| **Viewer** | Index the folder only. Agents can read its files but can't save there |

## Add folders to Files

**1. Choose a folder**

In the Box dialog, choose **Add a folder**. The picker starts at **All Files**, which lists everything shared with the service account. Open a folder to add it, or one of its subfolders.

**2. Add it**

Confirm the folder. End Close starts indexing its files straight away, and the folder appears under Box in **Files**.

Every folder you add from one enterprise appears under the same Box entry in **Files**. You can also add **All Files**, which indexes everything shared with the service account, including folders shared later.

## How End Close stays up to date

* **Changes in Box.** End Close registers a Box webhook on each folder you add. When something in the folder changes, End Close reads the change from Box within a few seconds of the notification.
* **Regular checks.** End Close also checks for changes every 10 minutes, in case a notification is missed. Box doesn't send webhooks for **All Files**, so if you added it, these checks are how its changes arrive.
* **Full re-index.** End Close re-indexes every folder once a week. To re-index sooner, open the folder's menu in **Files** and choose **Re-index now**.

Agents can read files up to 200 MB.

## Agents saving to Box

Agents only create files. They never change, move or delete files already in Box. To let agents save into a folder, the service account needs the **Viewer Uploader** role on it. If a file with the same name is already there, the save fails rather than overwriting it.

## Stop indexing or disconnect

* **Stop indexing a folder.** In **Files**, open the folder you added, then open its menu and choose **Stop cataloguing**. If it's the only folder you've added, including **All Files**, the menu offers **Remove** instead, which removes Box from **Files** but leaves Box connected.
* **Disconnect Box.** In **Settings → Integrations → Box**, choose **Disconnect…**. End Close removes its webhooks and every Box folder from **Files**.

You can't remove a folder that agents save into, or disconnect Box while one exists, until those agents save somewhere else.

Disconnecting doesn't remove the app from Box. A Box admin can remove it in the Admin Console. If they do while End Close is still connected, the connection shows **Disconnected** and its folders stop updating. To restore it, authorize the app again in Box, then choose **Reconnect** in End Close. Reconnecting the same enterprise brings back its folders.

## FAQ

> [accordion] Can End Close see everything in our Box enterprise?
>
> No. End Close's service account only sees folders shared with it, and End Close only indexes the folders you add to **Files**.

> [accordion] Can End Close change or delete our Box files?
>
> No. Agents only create new files, in a folder where the service account has the **Viewer Uploader** role. A save never replaces an existing file.

> [accordion] What happens if the person who connected Box leaves?
>
> Nothing. End Close works through its own service account, so the connection doesn't belong to whoever set it up.

## Related

> [card] [SharePoint integration](https://endclose.com/docs/integrations/sharepoint.md)
>
> Index SharePoint libraries through Microsoft 365.

> [card] [OneDrive integration](https://endclose.com/docs/integrations/onedrive.md)
>
> Index OneDrive folders through Microsoft 365.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.