PLATINUM DOCS
ApiSandboxes

Run a code snippet (python | bash | node | sh)

POST
/v1/sandboxes/{id}/run-code

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/v1/sandboxes/string/run-code" \  -H "Content-Type: application/json" \  -d '{    "code": "string"  }'
{  "stdout": "string",  "stderr": "string",  "exit_code": 0,  "error": "string"}
Empty