Sandboxes
Create a sandbox
Provisions a sandbox synchronously. The request blocks until the sandbox is ready (~2–3s typical). Returns 201 with status: "ready". Use a client timeout of at least 90 seconds. On provisioning failure the API returns 503.
GET /sandboxes/{id}/wait remains for reconnect edge cases (e.g. after resume); it is not required after create.
Network egress
Control outbound network access at create time with the egress object, or the legacy blockOutbound: true shorthand (maps to deny_all). You cannot set both on the same request.
| egress.mode | Behavior |
|---|---|
| open | Full outbound internet (default when omitted) |
| deny_all | All outbound connections blocked |
| restricted | Default deny + allowlist in egress.allow |
Change policy later with PUT /sandboxes/{id}/egress.
post/sandboxes
Request body
Example request
{
"egress": {
"mode": "restricted",
"allow": [
"1.1.1.1",
"api.example.com"
]
}
}Response
Sandbox provisioned and ready
Example response
{
"message": "Sandbox created"
}