post/v1/sandboxes/{id}/execute
Path parameters
idstring required
Sandbox ID
Sandbox ID
Request body
Example request
{
"command": "python -c \"print('Hello, World!')\"",
"timeout": 5
}Response
Execution completed
Example response
{
"id": "exec_m1n2o3p4q5r6s7t8",
"status": "completed",
"exit_code": 0,
"stdout": "Hello, World!\n",
"stderr": "",
"execution_time_ms": 142,
"created_at": "2024-01-15T12:30:00Z",
"completed_at": "2024-01-15T12:30:00.142Z"
}