Query File Information at Specified Path
Supports batch queries; you can pass a list of paths.
Request
Example:Bearer {{YOUR_API_KEY}}
Body Params application/json
{
"sandbox_id": "string",
"path": "string"
}
Request samples
curl --location --request POST 'https://api.302.ai/302/sandbox/file/list' \
--header 'Authorization: Bearer sk-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz' \
--header 'Content-Type: application/json' \
--data-raw '{
"sandbox_id": "string",
"path": "string"
}'
Responses
application/json Allowed values:filedirectorynot_exists
file_list
array [object {2}]
optional{
"result": [
{
"path": "string",
"path_type": "file",
"file_list": [
{
"name": "string",
"path": "string"
}
]
}
]
}
Modified at 2025-03-27 03:00:53