Authorizations
Enter your API Key in the format: Bearer <token>. Get it from https://gbox.ai
Path Parameters
Box ID
Example:
"c9bdc193-b54b-4ddb-a035-5ac0c598d32d"
Query Parameters
Working directory. If not provided, the file will be read from the box.config.workingDir
directory.
Example:
"/home/user/documents"
Target directory path in the box
Example:
"/home/user/documents"
Depth of the directory
Example:
2
Response
List files
Response containing directory listing results
Array of files and directories
- File
- Directory
Example:
[
{
"type": "dir",
"name": "projects",
"path": "/home/user/documents/projects/",
"mode": "755",
"lastModified": "2024-01-15T10:30:00.000Z"
},
{
"type": "file",
"name": "readme.txt",
"path": "/home/user/documents/readme.txt",
"size": "1.2KB",
"mode": "644",
"lastModified": "2024-01-15T10:30:00.000Z"
}
]