Skip to content

Commands run in the sandbox, newest first, readable while it sleeps

GET
/sandboxes/{id}/commands
curl --request GET \
--url 'https://api.global.stillbox.example/v1/sandboxes/ws-7k2m9q4x8w3z5r6t/commands?limit=100' \
--header 'Authorization: Bearer <token>'

Commands run through the API or the CLI (with their exit code), and the shell commands its agent ran. Kept 14 days, and only while the organization records what agents do (ADR 0044). Command lines are kept up to 2,000 characters; their output isn’t kept.

id
required
string
limit
integer
default: 100 >= 1 <= 500

Commands

Media typeapplication/json
object
commands
required
Array<object>
object
id
required
integer format: int64
source
required
string
Allowed values: api agent
command
required
string
exit_code
integer
failed
required
boolean
started_at
required
string format: date-time
duration_ms
integer format: int64
user_id
string

Example

{
"commands": [
{
"source": "api"
}
]
}

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"
}