Skip to main content
Execute code synchronously in the sandbox. The request waits until execution completes and returns the output.

Endpoint

Request

Headers

Body Parameters

Example Request

Execute Python code:
Execute JavaScript code:
Execute with custom environment:

Response

Success (200 OK)

Response Fields

Status Codes

Supported Languages

Python

JavaScript (Node.js)

Bash

Errors

Timeout (408)

Cause: Code execution exceeded the timeout limit. Fix: Increase the timeout or optimize your code.

Invalid Language (400)

Cause: Unsupported language specified. Fix: Use one of the supported languages: python, javascript, bash, go.

Execution Failed (500)

Cause: Code execution failed (syntax error, runtime error, etc.). Fix: Check the stderr field for error details.

Use Cases

Data Analysis

File Processing

System Information

Next Steps