Skip to main content
GET
/
sandboxes
/
{sandbox_id}
/
files
List a directory inside a sandbox
curl --request GET \
  --url https://api.superserve.ai/sandboxes/{sandbox_id}/files \
  --header 'X-API-Key: <api-key>'
{
  "entries": [
    {
      "name": "<string>",
      "is_dir": true,
      "size": 123,
      "modified_unix": 123
    }
  ]
}

Authorizations

X-API-Key
string
header
required

Path Parameters

sandbox_id
string<uuid>
required

The unique identifier of the sandbox.

Query Parameters

path
string

Absolute directory path to list. Defaults to "/".

Example:

"/home/user"

Response

Directory listing

entries
object[]
required