curl --request GET \
--url 'https://api.sandbox.stateset.app/api/v1/sandbox/{id}/files/read' \
--header "Authorization: Bearer $STATESET_SANDBOX_API_KEY"
{
"path": "string",
"content": "aGVsbG8=",
"size": 1
}
Read a file from a sandbox
File content, base64-encoded
GET
/
api
/
v1
/
sandbox
/
{id}
/
files
/
read
curl --request GET \
--url 'https://api.sandbox.stateset.app/api/v1/sandbox/{id}/files/read' \
--header "Authorization: Bearer $STATESET_SANDBOX_API_KEY"
{
"path": "string",
"content": "aGVsbG8=",
"size": 1
}
Path parameters
string (uuid)
required
Sandbox identifier
Query parameters
string
required
File path within /workspace
Response
FileContent
string
string (byte)
Base64-encoded file content
integer
File size in bytes
Status codes
| Code | Meaning |
|---|---|
200 | File content, base64-encoded |
404 | Sandbox not found |
curl --request GET \
--url 'https://api.sandbox.stateset.app/api/v1/sandbox/{id}/files/read' \
--header "Authorization: Bearer $STATESET_SANDBOX_API_KEY"
{
"path": "string",
"content": "aGVsbG8=",
"size": 1
}
Last modified on August 31, 2026