curl --request GET \
--url 'https://api.sandbox.stateset.app/api/v1/sandbox/{id}/files' \
--header "Authorization: Bearer $STATESET_SANDBOX_API_KEY"
{
"files": [
{
"name": "Two-Person Tent",
"path": "string",
"type": "file",
"size": 1,
"modified_at": "2026-08-31T14:22:05Z"
}
]
}
List files in a sandbox directory
List files in a sandbox directory
GET
/
api
/
v1
/
sandbox
/
{id}
/
files
curl --request GET \
--url 'https://api.sandbox.stateset.app/api/v1/sandbox/{id}/files' \
--header "Authorization: Bearer $STATESET_SANDBOX_API_KEY"
{
"files": [
{
"name": "Two-Person Tent",
"path": "string",
"type": "file",
"size": 1,
"modified_at": "2026-08-31T14:22:05Z"
}
]
}
Path parameters
string (uuid)
required
Sandbox identifier
Query parameters
string
Directory path (default /workspace)
string
Recurse into subdirectories (true/false)
Response
FileListResponse
FileListEntry[]
Status codes
| Code | Meaning |
|---|---|
200 | File listing |
curl --request GET \
--url 'https://api.sandbox.stateset.app/api/v1/sandbox/{id}/files' \
--header "Authorization: Bearer $STATESET_SANDBOX_API_KEY"
{
"files": [
{
"name": "Two-Person Tent",
"path": "string",
"type": "file",
"size": 1,
"modified_at": "2026-08-31T14:22:05Z"
}
]
}
Last modified on August 31, 2026