Skip to main content

BoxFetcher

Box fetcher (box://) for filesystem-like traversal and content download through Box APIs.

Notesโ€‹

Fetches documents from Box using stable ID-based references.

Supported scheme:

  • box://{enterpriseId}/folders/{folderId}
  • box://{enterpriseId}/folders/{folderId}/items/{itemId}

V1 authentication is bearer-token based.

Incremental source-delta mode:

  • Box SOURCE_DELTA support is not implemented in v1.
  • In incremental crawls, Box currently relies on standard crawler-side scan semantics (changeDiscovery: CRAWLER_SCAN).

Examplesโ€‹

The following example starts from the Box root folder boundary.

class: BoxFetcher
accessToken: <token>
apiBaseUrl: https://api.box.com/2.0

Use a start reference such as:

box://my-enterprise/folders/0

Usageโ€‹

Full configuration skeleton, with every option and its default
class: BoxFetcher
accessToken: string
apiBaseUrl: string
notFoundStatusCodes:
- 0
referenceFilters: []
validStatusCodes:
- 0

Propertiesโ€‹

PropertyTypeRequiredDefault
accessTokenstringNo-
apiBaseUrlstringNohttps://api.box.com/2.0
notFoundStatusCodesinteger[]No[404]
referenceFiltersReferenceFilter[]No-
validStatusCodesinteger[]No[200, 201, 202, 204]

Property Detailsโ€‹

accessTokenโ€‹

OAuth access token used for Box API requests.

apiBaseUrlโ€‹

Box API base URL.

Default: https://api.box.com/2.0

notFoundStatusCodesโ€‹

HTTP status codes treated as "not found" outcomes. Defaults to 404.

referenceFiltersโ€‹

Filters applied to document references (URLs or file paths) to control which ones are fetched. Documents whose references do not pass the filters are skipped.

validStatusCodesโ€‹

HTTP status codes treated as successful API responses. Defaults to 200, 201, 202, and 204.