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

# Box folder items

> Mount Box folder items.

Follow the [REST app guide](https://docs.bijection.com/integrations/native-rest.md#mount-and-bind).
Bind the reviewed endpoint with `providerEndpoint` from `@bijectionhq/app-rest`.

Use a sealed bearer token with read access to the chosen folder. Folder ID `0` selects the credential’s root folder.

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
const provider = providerEndpoint(
  "box.folder.items.observations",
  "https://api.box.com",
  "/2.0/folders/123456/items",
  auth,
  data,
);
```

Pass `provider` as `receivers.provider`, and the same label to the binder and as the app's `data`. Call `source.initialize`
with this profile.

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
{ profile: { mode: "provider", provider: "box.folder.items.observations", limit: 25 } }
```

One folder’s direct file, folder and web-link metadata keyed by `type:id`. Marker pagination restarts at the end. Missing items remain published. This mode reads metadata only.

Each response is bounded to 100 items and 36 KiB. The app commits observations with their
next position. [Source health and controls](https://docs.bijection.com/integrations/native-rest.md#feed-contracts)
report failures and allow recovery.

[Provider API reference](https://developer.box.com/reference/get-folders-id-items)

## Folders, collaborations and user events

Use a separate `providerEndpoint` at `https://api.box.com` for each
mode. Pass the same protected label to the receiver binder and as the app's `data`
with sealed bearer or OAuth2 authorization restricted to the Box account.

| Mode | Installed path | Terms and keys |
| - | - | - |
| `box.folder.observations` | `/2.0/folders/FOLDER_ID` | Use `limit: 1`. One folder by ID, including the parent when supplied. Explicit trash withdraws the row. |
| `box.folder.collaborations.observations` | `/2.0/folders/FOLDER_ID/collaborations` | Folder collaborations by ID, including pending invitations. `next_marker` continues the sweep. |
| `box.user.events.changes` | `/2.0/events` | Set `selection` to `now`, `0` for the available retained history, or a reviewed decimal position. Events use event IDs. |

Pages are limited to 100 rows and 36 KiB. Folder and collaboration sweeps
restart at the end and keep missing records published. The events feed uses
the authenticated user's `changes` stream. It commits Box's exact decimal
`next_stream_position` even when a page is empty, and resumes from that
position on the next poll. Events may arrive late, out of order, or more
than once. Box's retained feed does not establish a full account baseline
or long-term coverage. Trash events remain event rows.

[Folder collaborations](https://developer.box.com/reference/get-folders-id-collaborations) ·
[Events](https://developer.box.com/reference/get-events)

## Capture a Box File

On the folder-items mount, bind `receivers.boxContent` with
`boxFileContentReceiver(auth, data)` from `@bijectionhq/app-rest`.
Use a protected label and seal a credential with download access to the
same folder. Call `files.requestProductivity` and
`files.getProductivity` at that label. Pass the published `file:FILE_ID`
record key to capture and retrieve the File.

The driver verifies the published Box file-version ID and size before and
after transfer. It uses the exact version download and permits the Box
signed redirect to `dl.boxcloud.com` without forwarding the API credential.
Capture accepts up to 8 MiB per File and four pending requests per mount.
It stages exact ranges under a strong validator or accepts one complete
response of the checked size. A changed published version or explicit row
withdrawal retires the prior File. Capture carries no read cursor.

[Box Download file](https://developer.box.com/reference/get-files-id-content)


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