Repl.it API Documentation
Key point
Repl.it offers a cloud sandbox API that lets you execute code via HTTP and WebSocket.
Details
Repl.it's code execution API is a service that lets you send and execute code through HTTP and WebSocket endpoints. It leverages cloud-based Linux container sandboxes to run code safely and reliably, with access to system resources such as the file system.
Depending on your use case, you can choose between two interfaces:
- HTTP interface: Executes code with a single API call, suitable for simple, stateless tasks.
- WebSocket interface: Provides a stateful environment where variables can be defined and accessed, enabling a REPL-like user experience.
For development convenience, the ReplitClient.js library is provided, and for security, a token generation system and limits on execution count and concurrent connections are enforced. However, this API was discontinued as of October 2022.
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.