Skip to content

List a directory in a checkpoint

GET
/checkpoints/{checkpoint_id}/files/list
curl --request GET \
--url 'https://api.global.stillbox.example/v1/checkpoints/cp-7k2m9q4x8w3z5r6t/files/list?path=example' \
--header 'Authorization: Bearer <token>'

Reads the checkpoint’s files without restoring it. Sign-in files (Claude, Codex, OpenCode, Hermes, git, GitHub, cloud and package registry logins, SSH keys, browser profiles) aren’t shown. At most 2,000 entries.

checkpoint_id
required
string
path
required
string
/^//

Absolute path of a directory in the checkpoint

The directory’s entries

Media typeapplication/json
object
path
required
string
entries
required
Array<object>
object
name
required
string
type
required
string
Allowed values: file dir symlink other
size
required
integer format: int64
modified_at
required
string format: date-time
truncated
required

The directory has more than 2,000 entries; only the first are listed.

boolean

Example

{
"entries": [
{
"type": "file"
}
]
}

The API key is missing or invalid

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}

No such sandbox in your organization (or no such file)

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}

The checkpoint isn’t ready, or its server is unreachable right now

Media typeapplication/json
object
code
required
string
message
required
string

Example

{
"code": "not_found"
}