Skip to main content
POST
Execute Shell Command

Body

application/json
command
string
required

Shell command to execute

Example:

"ls -la"

Response

Successfully executed command

output
string | null

Command output if available

Example:

"total 20\ndrwxr-xr-x 3 user group 96 Mar 10 12:34 ."

process_id
integer | null

Process ID if running in background

Example:

1234

status
string
default:completed

Command status: 'completed' or 'background'

Example:

"completed"