Skip to main content
POST
Stop a command

Authorizations

Authorization
string
header
required

An API key (fb_live_…)

Path Parameters

id
string
required

The sandbox's ID (sbx-…).

cid
string
required

The command's ID.

Body

application/json
signal
string

TERM (default), INT, HUP, QUIT, USR1, USR2 or KILL.

grace_s
number

Seconds before KILL if it still runs (5). 0 sends nothing after the signal.

Response

Success

command_id
string
required

The command's ID.

command
string[]
required

The program and its arguments.

status
enum<string>
required

Its current state.

Available options:
running,
exited,
killed,
lost,
detached
exit_code
integer | null
required

Its exit code, once it has ended.

started_at
string
required

When it started.

ended_at
string | null
required

When it ended.

stdout_bytes
integer
required

Bytes written to standard output so far.

stderr_bytes
integer
required

Bytes written to standard error so far.

keep
boolean

true to run it on its own, across sleep and wake (detached).

pid
integer | null

A kept command's process ID in the sandbox.

log
string | null

A kept command's output file in the sandbox.