---
title: "Get all commands executed in a sandbox"
method: GET
path: "/workspaces/{workspace_domain}/sandboxes/{sandbox_id}/commands"
tags: ["Sandbox API"]
---

# Get all commands executed in a sandbox

`GET /workspaces/{workspace_domain}/sandboxes/{sandbox_id}/commands`

## Path parameters

- `workspace_domain` string, required
- `sandbox_id` string, required

## Response `200`

- SandboxCommandsView
  - `url` string — API endpoint to GET this object
  - `html_url` string — Web URL to view this object in Buddy.works
  - `commands` SandboxCommandView[]
    - `url` string — API endpoint to GET this object
    - `html_url` string — Web URL to view this object in Buddy.works
    - `id` string — The ID of the command
    - `command` string — Command to execute in the sandbox
    - `runtime` 'BASH' | 'JAVASCRIPT' | 'TYPESCRIPT' | 'PYTHON' — Runtime environment for command execution (default: `BASH`)
    - `status` 'INPROGRESS' | 'SUCCESSFUL' | 'FAILED' — Command execution status
    - `exit_code` integer — Command exit code
    - `start_date` string, date-time — Command execution start date
    - `finish_date` string, date-time — Command execution finish date
    - `logs_url` string — API endpoint URL to retrieve logs for this command

## Changes

- **2026-08-25** `fa785a68f09d` — 2 info
  - the security scope `SANDBOX_READ` was added to the endpoint's security scheme `oauth2`
  - the security scope `SANDBOX_INFO` was removed from the endpoint's security scheme `oauth2`

[Change history](https://skmtc.dev/buddy/apis/buddy-api/changes/workspaces/:workspace_domain/sandboxes/:sandbox_id/commands/get.md)

---

[API](https://skmtc.dev/buddy/apis/buddy-api.md) · [All operations](https://skmtc.dev/buddy/apis/buddy-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/buddy/buddy-api/revisions/fa785a68f09d/schema)
