cURL
curl --request POST \ --url https://app.textql.com/v1/sandbox/execute \ --header 'Authorization: Bearer <token>' \ --header 'Connect-Protocol-Version: <connect-protocol-version>' \ --header 'Content-Type: application/json' \ --data ' { "sandboxId": "<string>", "code": "<string>" } '
{ "output": [ "<string>" ], "error": "<string>", "files": [ { "name": "<string>", "url": "<string>", "mimeType": "<string>" } ], "dataframes": [ { "name": "<string>", "numRows": 123, "numCols": 123 } ], "executionTimeMs": 123 }
Execute Python code in a running sandbox
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Define the version of the Connect protocol
1
Define the timeout, in ms
Python code to execute
Success
Lines of stdout output
Error message if execution failed
Files generated during execution
Show child attributes
DataFrames created or modified during execution