Files

Read a file or list a directory

With path pointing at a file, returns its contents. With no path, or with list=true, returns a directory listing. Use encoding=base64 to read binary files.

get/sandboxes/{id}/files

Request

  • Base URL: https://sandbox-as-a-service.com/v1
  • URL: https://sandbox-as-a-service.com/v1/sandboxes/{id}/files
  • Auth: HTTP bearer

Query parameters

pathstring

Defaults to /workspace.

encoding'utf8' | 'base64'
listboolean

Force a directory listing.

Response

The file contents, or a directory listing.

OR

Changes

No recorded changes to this operation across all 1 revision of this API.