cURL
curl --request GET \ --url https://run.blaxel.ai/{workspace_id}/sandboxes/{sandbox_id}/filesystem/{path} \ --header 'Authorization: Bearer <token>'
{ "files": [ { "group": "<string>", "lastModified": "<string>", "name": "<string>", "owner": "<string>", "path": "<string>", "permissions": "<string>", "size": 123 } ], "name": "<string>", "path": "<string>", "subdirectories": [ { "name": "<string>", "path": "<string>" } ] }
Get content of a file or listing of a directory
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
File or directory path
Directory listing
The response is of type object.
object
Was this page helpful?