Skip to main content
POST
Run code in a sandbox

Authorizations

x-brimble-key
string
header
required

API key created in the dashboard under Settings → API keys. Each key carries permission scopes; every endpoint lists the scope it needs.

Path Parameters

id
string
required

ID of the sandbox.

Pattern: ^[a-fA-F0-9]{24}$

Body

application/json
language
enum<string>
required

Language of code: python or node.

Available options:
python,
node
code
string
required

Source code to run.

timeout_seconds
integer

Stop the command after this many seconds. 1 to 300. Defaults to 30.

Required range: x >= 1
cwd
string

Working directory to run in. Defaults to the sandbox's home directory.

stream
boolean

Stream output as Server-Sent Events instead of returning it at the end. See StreamFrame.

env
object

Extra environment variables for this run, as { "NAME": "value" }.

Response

Code finished

message
string
required

Human-readable result of the request.

data
object
required

The result of the request.

Last modified on October 31, 2026