cURL
curl --request GET \ --url https://{sandbox_id_or_name}.sandbox.tensorlake.ai/api/v1/files/list \ --header 'Authorization: Bearer <token>'
{ "path": "<string>", "entries": [ { "name": "<string>", "is_dir": true, "size": 123, "modified_at": 123 } ] }
List directory contents through the sandbox proxy.
GET /api/v1/files/list?path=<absolute-or-relative-path>
curl "https://<sandbox-id>.sandbox.tensorlake.ai/api/v1/files/list?path=/workspace" \ -H "Authorization: Bearer $TENSORLAKE_API_KEY"
200 OK
{ "path": "/workspace", "entries": [ { "name": "src", "is_dir": true, "size": null, "modified_at": 1710000000000 }, { "name": "data.csv", "is_dir": false, "size": 24, "modified_at": 1710000001000 } ] }
400 Bad Request
404 Not Found
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Absolute or relative directory path inside the sandbox.
Directory listing
Show child attributes
Was this page helpful?