Core Resources
Sandbox
A sandbox is an isolated virtual machine environment for code execution. Each sandbox has:Sandbox Statuses
Sandbox Lifecycle
Template
A template defines the base image and resources for creating sandboxes:Template Categories
- python - Python environments (various versions)
- nodejs - Node.js environments
- ubuntu - Ubuntu base images
- code-interpreter - Multi-language execution environments
- custom - Custom organization templates
Execution Result
Result from code execution or command:
For rich output capture, additional fields:
Each rich output object:
Process
Background execution process:Object Types
All API responses include anobject field identifying the resource type:
List Objects
List endpoints return a consistent structure:Timestamps
All timestamps use ISO 8601 format with UTC timezone:created_at- Resource creation timeupdated_at- Last modification timecompleted_at- Task completion timeexpires_at- Expiration timetoken_expires_at- JWT token expiration
Identifiers
Format
Identifiers follow consistent patterns:Usage
- Identifiers are case-sensitive
- Store identifiers as returned by the API
- Use template
nameoridwhen creating sandboxes
Resource Relationships
- One template can create multiple sandboxes
- Each sandbox has one JWT token (refreshable)
- Each sandbox can have multiple concurrent processes/executions
Common Patterns
Create → Poll → Use
Related
- API Introduction - Learn about the HopX API
- Creating Sandboxes - Learn about sandbox creation
- Managing Sandbox State - Control sandbox lifecycle
- Control Plane API Overview - Manage sandboxes via API
- VM Agent API Overview - Execute code via API
- CLI Reference - Command-line interface
Next Steps
- Errors - Error handling and codes
- Rate Limits - Request rate limits
- Pagination - Paginating list results

