Base URL
All API endpoints are relative to your Rexec instance:Authentication
All Container API requests require authentication using a Bearer token in the Authorization header:Container Lifecycle
Containers follow this lifecycle:- creating - Container is being pulled and initialized
- running - Container is active and ready for connections
- stopped - Container is stopped but data is preserved
- error - Container creation or operation failed
Available Endpoints
List Containers
Get all containers for your account
Create Container
Create a new sandboxed environment
Start Container
Start a stopped container
Stop Container
Stop a running container
Container Features
Resource Limits
Each container has configurable resource limits based on your subscription tier:- CPU - Millicores (1000 = 1 CPU core)
- Memory - RAM allocation in MB
- Disk - Storage quota in MB
- Network - Bandwidth limits
Supported Images
Rexec supports multiple base images:ubuntu:24.04- Ubuntu 24.04 LTSdebian:bookworm- Debian 12alpine:latest- Alpine Linuxarchlinux:latest- Arch Linuxcustom- Use your own Docker image
Development Roles
Pre-configured development environments:node- Node.js development (nvm, npm, yarn)python- Python development (pyenv, pip, poetry)go- Go development (latest Go toolchain)rust- Rust development (rustup, cargo)devops- DevOps tools (docker, kubectl, terraform)barebone- Minimal setup for custom configuration
Resource Tier Limits
- Community (Free)
- Pro
- Enterprise
- CPU: 2 cores (2000 millicores)
- Memory: 2GB
- Disk: 10GB
- Containers: 5 max
- Session: 50 hours
Error Codes
Common error responses:| Code | Description |
|---|---|
| 401 | Unauthorized - Invalid or missing API token |
| 403 | Forbidden - Container limit reached or insufficient permissions |
| 404 | Not Found - Container does not exist |
| 409 | Conflict - Container name already exists |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Internal Server Error - Server-side error |
Rate Limits
- Container Creation: 10 per minute
- Container Operations: 60 per minute
- List Operations: 120 per minute
SDK Support
Go SDK
Official Go client library
JavaScript/TypeScript SDK
Official Node.js and browser SDK
Next Steps
Create Your First Container
Learn how to create a container
Terminal API
Connect to container terminals