Get Command Logs

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

Get logs from a specific command execution.

Request

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

Last modified on Sep 25, 2025

Example:

CURL
curl -X GET "https://api.buddy.works/workspaces/:workspace/sandboxes/:sandbox_id/commands/:command_id/logs" \ -H "Authorization: Bearer <YOUR-TOKEN>" \ -H "Content-Type: application/json"
EXAMPLE RESPONSE
{ "type": "STDOUT", "data": "total 36\ndrwx------ 6 root root 4096 Sep 3 09:43 .\ndrwxr-xr-x 20 root root 4096 Sep 2 07:56 ..\n-rw-r--r-- 1 root root 3106 Apr 22 2024 .bashrc\ndrwxrwxrwx 2 root root 4096 Sep 3 09:40 .bdy\ndrwxr-xr-x 4 root root 4096 Sep 3 09:41 .npm\ndrwxr-xr-x 5 root root 4096 Sep 25 06:26 .pm2\n-rw-r--r-- 1 root root 161 Apr 22 2024 .profile\ndrwx------ 2 root root 4096 Sep 3 09:40 .ssh\n-rw------- 1 root root 843 Sep 3 09:42 .viminfo" }
STATUS
200 OK
LIMITS
X-Rate-Limit-Limit: 1 X-Rate-Limit-Remaining: 999