Create Environment
Create a new environment with the specified configuration.
Headers
Optional header to specify the beta version(s) you want to use.
To use multiple betas, use a comma separated list like beta1,beta2 or specify the header multiple times for each beta.
Optional header to specify the beta version(s) you want to use.
To use multiple betas, use a comma separated list like beta1,beta2 or specify the header multiple times for each beta.
Request body
Example request
{
"name": "python-data-analysis",
"description": "Python environment with data-analysis packages.",
"config": {
"type": "cloud",
"networking": {
"type": "limited",
"allowed_hosts": [
"api.example.com"
],
"allow_package_managers": true
},
"packages": {
"pip": [
"pandas",
"numpy"
]
}
}
}Response
Successful Response
Example response
{
"type": "environment",
"id": "env_011CZkZ9X2dpNyB7HsEFoRfW",
"name": "python-data-analysis",
"description": "Python environment with data-analysis packages.",
"config": {
"type": "cloud",
"networking": {
"type": "limited",
"allowed_hosts": [
"api.example.com"
],
"allow_package_managers": true,
"allow_mcp_servers": false
},
"packages": {
"type": "packages",
"pip": [
"pandas",
"numpy"
],
"npm": [],
"apt": [],
"cargo": [],
"gem": [],
"go": []
}
},
"metadata": {},
"archived_at": null,
"created_at": "2026-03-15T10:00:00Z",
"updated_at": "2026-03-15T10:00:00Z"
}Changes
Changed in 4 of the 67 revisions of this API.216
- ▲
response property
descriptionlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
added
BetaSelfHostedConfigto theconfigresponse propertyoneOflist for the response status200response-property-one-of-added
- ○
added the new optional request property
scopenew-optional-request-property
- ○
added
self_hosteddiscriminator mapping keys to theconfig/anyOf[subschema #1]/request propertyrequest-property-discriminator-mapping-added
- ○
added
BetaSelfHostedConfigParamsto theconfig/anyOf[subschema #1]/request propertyoneOflistrequest-property-one-of-added
- ○
added the optional property
scopeto the response with the200statusresponse-optional-property-added
- ○
added
self_hosteddiscriminator mapping keys to theconfigresponse property for the response status200response-property-discriminator-mapping-added
- ▲
- ●
deleted the
cookierequest parametersessionKeyrequest-parameter-removed
- ●
- ○
endpoint added
endpoint-added
- ○