Get Environment
Retrieve a specific environment by ID.
Path parameters
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.
The version of the Claude API you want to use.
Read more about versioning and our version history here.
The version of the Claude API you want to use.
Read more about versioning and our version history here.
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 68 revisions of this API.213
- ▲
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 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
- ○