Skip to main content
GET
JavaScript

Authorizations

Authorization
string
header
required

Enter your API Key in the format: Bearer . Get it from https://gbox.ai

Path Parameters

boxId
string
required

Box ID

Example:

"c9bdc193-b54b-4ddb-a035-5ac0c598d32d"

Query Parameters

workingDir
string

Working directory. If not provided, the file will be read from the box.config.workingDir directory.

Example:

"/home/user/documents"

path
string
required

Target directory path in the box

Example:

"/home/user/documents"

depth
number
default:1

Depth of the directory

Example:

2

Response

List files

Response containing directory listing results

data
(File · object | Directory · object)[]
required

Array of files and directories

File system file representation

Example: