List Commands

  • GET
  • /workspaces
  • /:workspace
  • /sandboxes
  • /:sandbox_id
  • /commands

Get all commands executed in a sandbox.

Request

REQUIRED SCOPES
WORKSPACE, SANDBOX_INFO
URL PARAMETERS
workspacerequired string
The workspace name.
sandbox_idrequired string
The ID of the sandbox.

Last modified on Sep 25, 2025

Example:

CURL
curl -X GET "https://api.buddy.works/workspaces/:workspace/sandboxes/:sandbox_id/commands" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "Content-Type: application/json"
EXAMPLE RESPONSE
{ "url": "https://api.buddy.works/workspaces/buddy/sandboxes/mydn9rjrqvq8d/commands", "commands": [ { "url": "https://api.buddy.works/workspaces/buddy/sandboxes/mydn9rjrqvq8d/command/68d4e06a2137bbaf32f904d6", "id": "68d4e06a2137bbaf32f904d6", "command": "npm test", "runtime": "BASH", "status": "FAILED", "exit_code": 254 }, { "url": "https://api.buddy.works/workspaces/buddy/sandboxes/mydn9rjrqvq8d/command/68d4e0fffff30824fb1c54e9", "id": "68d4e0fffff30824fb1c54e9", "command": "ls -al", "runtime": "BASH", "status": "SUCCESSFUL", "exit_code": 0 } ] }
STATUS
200 OK
LIMITS
X-Rate-Limit-Limit: 1 X-Rate-Limit-Remaining: 999