List Environments
List environments with pagination support.
Query parameters
Maximum number of environments to return
Maximum number of environments to return
Opaque cursor from previous response for pagination. Pass the next_page value from the previous response.
Opaque cursor from previous response for pagination. Pass the next_page value from the previous response.
Include archived environments in the response
Include archived environments in the response
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
{
"data": [
{
"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"
}
],
"next_page": "page_MjAyNS0wNS0xNFQwMDowMDowMFo="
}Changes
Changed in 4 of the 67 revisions of this API.213
- ▲
response property
data/items/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 thedata/items/configresponse propertyoneOflist for the response status200response-property-one-of-added
- ○
added the optional property
data/items/scopeto the response with the200statusresponse-optional-property-added
- ○
added
self_hosteddiscriminator mapping keys to thedata/items/configresponse property for the response status200response-property-discriminator-mapping-added
- ▲
- ●
deleted the
cookierequest parametersessionKeyrequest-parameter-removed
- ●
- ○
endpoint added
endpoint-added
- ○