Skip to main content
The Control Plane API (https://api.hopx.dev) manages the lifecycle of sandboxes and templates. Use it to create, list, manage, and monitor your cloud sandboxes.

Base URL

All endpoints are prefixed with /v1/:

Authentication

All Control Plane API requests require an API key. Include it in the Authorization header:
See the Authentication guide for details.

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:
If you exceed the rate limit, you’ll receive a 429 Too Many Requests response.

Next Steps