List Environments
api/beta/environments/list
Nearest release: v2.1.245, published an hour after this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
api/beta/environments/list Changed · +20 / -29 lines
# List Environments ## Query parameters ## Headers ## Returns ## Example ### Response (200) ## List Environments ### Query Parameters ### Header Parameters ### Returns ### Example #### Response
---- -title: List Environments -url: https://platform.claude.com/docs/en/api/beta/environments/list ---- +# List Environments -## List Environments +**GET** `/v1/environments` -**get** `/v1/environments` - List environments with pagination support. -### Query Parameters +## Query parameters - `include_archived: optional boolean` Include archived environments in the response + default: false + - `limit: optional number` Maximum number of environments to return + default: 20, maximum: 1000, minimum: 1 + - `page: optional string` Opaque cursor from previous response for pagination. Pass the `next_page` value from the previous response. -### Header Parameters +## Headers - `"anthropic-beta": optional array of AnthropicBeta`
- `"mid-conversation-tool-changes-2026-07-01"` -### Returns +## Returns - `data: array of BetaEnvironment`
Environment configuration (either Anthropic Cloud or self-hosted) - - `BetaCloudConfig object { networking, packages, type }` + - `BetaCloudConfig object` `cloud` environment configuration.
Network configuration policy. - - `BetaUnrestrictedNetwork object { type }` + - `BetaUnrestrictedNetwork object` Unrestricted network access.
Network policy type - - `"unrestricted"` + - `BetaLimitedNetwork object` - - `BetaLimitedNetwork object { allow_mcp_servers, allow_package_managers, allowed_hosts, type }` - Limited network access. - `allow_mcp_servers: boolean`
Network policy type - - `"limited"` - - `packages: BetaPackages` Package manager configuration.
Package configuration type - - `"packages"` + default: packages - `type: "cloud"` Environment type - - `"cloud"` + - `BetaSelfHostedConfig object` - - `BetaSelfHostedConfig object { type }` - Configuration for self-hosted environments. - `type: "self_hosted"`
Environment type - - `"self_hosted"` - - `created_at: string` RFC 3339 timestamp when environment was created
The type of object (always 'environment') - - `"environment"` + default: environment - `updated_at: string`
Token for fetching the next page of results. If `null`, there are no more results available. Pass this value to the `page` parameter in the next request. -### Example +## Example -```http +```bash curl https://api.anthropic.com/v1/environments \ -H 'anthropic-version: 2023-06-01' \ -H 'anthropic-beta: managed-agents-2026-04-01' \
-H "X-Api-Key: $ANTHROPIC_API_KEY" ``` -#### Response +### Response (200) ```json {