Read a file
GET
Reads a file from the sandbox as text, or as base64 with encoding=base64. At most 10 MB.
apiKeyheader
AuthorizationBearer <hmk_…>An API key from the dashboard or homemade api-key create.
sandboxId*stringencoding?stringDefault
"utf-8"Value in
"utf-8""base64"path*stringAbsolute, or relative to the sandbox's home directory.
Length
1 <= length <= 4096The file.
application/json- response
content*stringencoding*stringValue in
"utf-8""base64"path*stringsize*integerRange
0 <= value <= 9007199254740991curl -X GET 'https://api.homemade.dev/api/sandboxes/string/files?path=string'Example Response
{ "content": "string", "encoding": "utf-8", "path": "string", "size": 0}