Skip to main content
POST
Execute a command

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Process execution request

command
string
required
Example:

"ls -la"

env
object
Example:
keepAlive
boolean

Disable scale-to-zero while process runs. Default timeout is 600s (10 minutes). Set timeout to 0 for infinite.

Example:

false

maxRestarts
integer

Maximum number of restarts on failure. Set to a negative value (e.g. -1) for unlimited restarts.

Example:

3

name
string
Example:

"my-process"

restartOnFailure
boolean
Example:

true

timeout
integer

Timeout in seconds. When keepAlive is true, defaults to 600s (10 minutes). Set to 0 for infinite (no auto-kill).

Example:

30

waitForCompletion
boolean
Example:

false

waitForPorts
integer[]
Example:
workingDir
string
Example:

"/home/user"

Response

Process information

command
string
required
Example:

"ls -la"

completedAt
string
required
Example:

"Wed, 01 Jan 2023 12:01:00 GMT"

exitCode
integer
required
Example:

0

logs
string
required
Example:

"logs output"

name
string
required
Example:

"my-process"

pid
string
required
Example:

"1234"

startedAt
string
required
Example:

"Wed, 01 Jan 2023 12:00:00 GMT"

status
enum<string>
required
Available options:
failed,
killed,
stopped,
running,
completed
Example:

"running"

stderr
string
required
Example:

"stderr output"

stdout
string
required
Example:

"stdout output"

workingDir
string
required
Example:

"/home/user"

keepAlive
boolean

Whether scale-to-zero is disabled for this process

Example:

false

maxRestarts
integer
Example:

3

restartCount
integer
Example:

2

restartOnFailure
boolean
Example:

true

Last modified on June 16, 2026