Lifecycle
Move the end of a running sandbox with
POST /sandboxes/{id}/timeout. A paused sandbox reports in endAt when it was paused:
no timeout runs while it is paused.
Templates
A template is the prepared VM a sandbox starts from, andbase is the general Linux image. See Templates
for the list, the sizes and how to make your own start state.
Region and class
A create may nameregion and class; both are optional and the E2B SDKs send neither. region is ash (US East, Ashburn; the default). ams is accepted and served in Ashburn for now; see Regions. An unknown region answers
422 unknown_region, and a region with no machine taking VMs answers 503 region_unavailable, so a sandbox never starts
somewhere other than asked.
class picks the CPU class. burstable runs on shared vCPUs that burst to full speed. guaranteed gives the sandbox
whole cores of its own, for paid accounts; when no node has the cores free right now, the create answers
503 guaranteed_capacity with a Retry-After, and the sandbox always runs in the class you asked for. Without class, a
paid sandbox of 4 vCPUs or more takes whole cores whenever a node has them. The create answer and
GET /sandboxes/{id} report the class the sandbox runs in as "class": "guaranteed" or "class": "burstable".
Metadata
metadata on create is a map of strings kept with the sandbox and returned by GET /sandboxes/{id} and the list.