Create a new sandbox
Creates a sandbox and returns immediately with status: starting. The VM boots asynchronously. Poll GET /sandboxes/{id} until status is active before running commands.
Request body
Example request
{
"network": {
"allow_out": [
"api.openai.com",
"*.github.com",
"8.8.8.8/32"
],
"deny_out": [
"0.0.0.0/0"
]
}
}Response
Sandbox created
Changes
Changed in 1 of the 2 revisions of this API.61
- ●
removed the request property
allow_internet_accessrequest-property-removed
- ●
removed the request property
metadatarequest-property-removed
- ●
removed the request property
timeout_secondsrequest-property-removed
- ●
removed the optional property
metadatafrom the response with the201statusresponse-optional-property-removed
- ●
removed the optional property
networkfrom the response with the201statusresponse-optional-property-removed
- ●
removed the optional property
timeout_secondsfrom the response with the201statusresponse-optional-property-removed
- ○
added the optional property
ip_addressto the response with the201statusresponse-optional-property-added
- ●