https://api.hopx.dev) manages the lifecycle of sandboxes and templates. Use it to create, list, manage, and monitor your cloud sandboxes.
Base URL
/v1/:
Authentication
All Control Plane API requests require an API key. Include it in theAuthorization header:
What You Can Do
Sandbox Lifecycle
- Create sandboxes - Spin up isolated environments from templates
- List and filter - Query sandboxes by status, region, or other criteria
- Manage state - Start, stop, pause, resume, and delete sandboxes
- Set timeouts - Configure auto-shutdown timers
- Refresh tokens - Renew JWT tokens for VM Agent API access
Template Management
- List templates - Browse available pre-built and custom templates
- Get template details - View template configuration and resources
- Build templates - Create custom templates from Docker images
- Delete templates - Remove custom templates (when not in use)
Real-Time Monitoring
- Stream sandbox events - Server-Sent Events (SSE) for sandbox lifecycle changes
- Stream metrics - Real-time VM metrics for running sandboxes
- Stream template updates - Real-time template list changes
API Endpoints
Sandbox Lifecycle
Templates
Template Building
Streaming
Response Format
All responses use JSON with a consistent structure:Success Response
List Response
Error Response
Status Codes
Rate Limits
The Control Plane API has rate limits to ensure fair usage. Rate limit headers are included in responses:429 Too Many Requests response.
Related
- VM Agent API Overview - Execute code and manage sandbox resources
- Python SDK Quickstart - Use the Python SDK instead
- JavaScript SDK Quickstart - Use the JavaScript SDK instead
- Creating Sandboxes - Learn about sandbox creation
- Managing Sandbox State - Control sandbox lifecycle
- CLI Reference - Command-line interface
Next Steps
- Create Sandbox - Create your first sandbox
- List Sandboxes - Query and filter sandboxes
- Manage Sandboxes - Get, update, and delete sandboxes
- Templates - Work with templates

