Hanzo
OpenapiSandbox

Read a file, or list a directory

Reads one file from the sandbox's project directory as text, or lists the entries when the path names a directory.

GET /v1/sandbox/{id}/fs

Addresshttps://api.hanzo.ai/v1/sandbox/{id}/fs
MethodGET
Operationget_sandbox_by_id_fs
AuthAuthorization: Bearer $HANZO_API_KEY

Reads one file from the sandbox's project directory as text, or lists the entries when the path names a directory. Paths resolve under the project root and a path that climbs out is refused rather than rewritten.

Request

1 field.

FieldInTypeRequiredDescription
idpathstringyes

Response

The document declares no response body for this operation. It answers 200 on success and the platform error shape on failure — see Errors.

Examples

hanzo sandboxes fs get <id>

Sandbox API · All Hanzo APIs · Interactive reference

How is this guide?

On this page