POST
/
v1
/
execute

Authorizations

Authorization
string
headerrequired

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

Body

application/json
language
enum<string>

The interpreter to use when executing code.

Available options:
PYTHON,
JAVASCRIPT,
TYPESCRIPT,
RUBY,
PHP
runtime
string

The runtime to use when executing code.

code
string
required

The code to execute in the sandbox.

stdin
string

Input to pass to the script via stdin.

args
string[]

List of command line arguments to pass to the script.

env
object

Set of key-value pairs to add to the script's execution environment.

allow_http_hosts
string[]

List of allowed hosts for HTTP requests

Response

200 - application/json
exit_code
integer

The exit code returned by the script. Will be 0 on success and non-zero on failure.

stdout
string

The contents of stdout after executing the script.

stderr
string

The contents of stderr after executing the script.