Execute code
Run a script in a secure, isolated sandbox. Scripts can read from stdin and write to stdout or stderr. They can access environment variables and command line arguments.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
The interpreter to use when executing code.
PYTHON
, JAVASCRIPT
, TYPESCRIPT
, RUBY
, PHP
The runtime to use when executing code.
The code to execute in the sandbox.
Input to pass to the script via stdin
.
List of command line arguments to pass to the script.
Set of key-value pairs to add to the script's execution environment.
List of allowed hosts for HTTP requests
Response
The exit code returned by the script. Will be 0
on success and non-zero on failure.
The contents of stdout
after executing the script.
The contents of stderr
after executing the script.