GET
/
filesystem
/
{path}
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>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

path
string
required

File or directory path

Response

200
application/json

Directory listing

The response is of type object.