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

# Box

Box is a cloud content management platform. OctoXLabs reads the users of your Box enterprise.

## Use cases

* List Box users by login.

```
Adapters = box
```

## Before you begin

### Network

| Source              | Destination | Port | Protocol |
| ------------------- | ----------- | ---- | -------- |
| OctoXLabs connector | api.box.com | 443  | HTTPS    |

### Required permissions

The source does not list specific permissions. Use an account that can read the data listed under Fields fetched.

## Create credentials in Box

{% stepper %}
{% step %}

### Create a Box app

In the Box developer console, create an application that uses OAuth 2.0 and note its **Client ID** and **Client Secret**.
{% endstep %}

{% step %}

### Get the code

Authorize the app and get an authorization **Code**. OctoXLabs exchanges it for an access token with the `authorization_code` grant.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter     | Required | Type    | Default     | Description                        |
| ------------- | -------- | ------- | ----------- | ---------------------------------- |
| Domain        | Yes      | String  | api.box.com | Box API host.                      |
| Client ID     | Yes      | String  |             | Client ID of the Box app.          |
| Client Secret | Yes      | String  |             | Client secret of the Box app.      |
| Code          | Yes      | String  |             | Code token of the Box API.         |
| HTTPS Proxy   | No       | String  |             | Proxy URL.                         |
| Timeout       | No       | Integer | 30          | Seconds to wait for API responses. |

## Troubleshooting

| Error message                | Cause                                                                                                                                  | Fix                                                                                                  |
| ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| Status Code: `, URL, Method` | The API answered with an unexpected HTTP status. The shared request code raises it and logs the status, URL, method and response body. | Check the URL, the credentials and the permissions listed above, then run the connection test again. |

## Change history

{% hint style="info" %}
Available starting from version 5.0.0.
{% endhint %}
