Skip to Content
Homemade
Dashboard

Read a file

GET
/api/sandboxes/{sandboxId}/files

Reads a file from the sandbox as text, or as base64 with encoding=base64. At most 10 MB.

Authorization

apiKey
headerAuthorizationBearer <hmk_…>

An API key from the dashboard or homemade api-key create.

Path Parameters

sandboxId*string

Query Parameters

encoding?string
Default"utf-8"
Value in"utf-8""base64"
path*string

Absolute, or relative to the sandbox's home directory.

Length1 <= length <= 4096

Response Body

The file.

application/json
  1. response
content*string
encoding*string
Value in"utf-8""base64"
path*string
size*integer
Range0 <= value <= 9007199254740991
Example Request
curl -X GET 'https://api.homemade.dev/api/sandboxes/string/files?path=string'
Example Response
{  "content": "string",  "encoding": "utf-8",  "path": "string",  "size": 0}