Skip to main content
POST
ExecuteCode
v2 available: See POST /v2/sandcastles//execute for the REST-native version of this endpoint.

Authorizations

Authorization
string
header
required

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

Headers

Connect-Protocol-Version
enum<number>
required

Define the version of the Connect protocol

Available options:
1
Connect-Timeout-Ms
number

Define the timeout, in ms

Body

application/json
sandboxId
string
required
code
string
required

Python code to execute

Response

Success

output
string[]

Lines of stdout output

error
string | null

Error message if execution failed

files
FileOutput · object[]

Files generated during execution

dataframes
DataFrameOutput · object[]

DataFrames created or modified during execution

executionTimeMs
integer<int64>