Sandboxes
Create a sandbox
Provisions a sandbox asynchronously. The response returns immediately with status: "starting"; the sandbox transitions to ready (or failed) a few moments later. Poll GET /sandboxes/{id} until status flips, or watch the dashboard.
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 provisioning queued
Example response
{
"message": "Sandbox creation started"
}