Commands run in the sandbox, newest first, readable while it sleeps
GET
/sandboxes/{id}/commands
const url = 'https://api.global.stillbox.example/v1/sandboxes/ws-7k2m9q4x8w3z5r6t/commands?limit=100';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Query Parameters
Section titled “Query Parameters”limit
integer
Responses
Section titled “Responses”Commands
Media typeapplication/json
object
commands
required
Array<object>
object
id
required
integer format: int64
source
required
string
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"}