バッチクエリをサポートしており、パスのリストを渡すことができます。
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-mfYQzy0XTFfz4P16vRE4gFrKK1Nly4TozsMqbbb9PSiJUvFO' \
--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:01:24