The whole hunk
from line 1, old and new numbered
/
lines
from line 1
1---
2title: List Environments
3url: https://platform.claude.com/docs/en/api/beta/environments/list
4---
5
16# List Environments
27
38**GET** `/v1/environments`
from line 35
3035
3136 - `string`
3237
33 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 41 more`
38 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 42 more`
3439
3540 - `"message-batches-2024-09-24"`
3641
from line 83
7883
7984 - `"user-profiles-2026-08-18"`
8085
86 - `"user-profiles-2026-09-04"`
87
8188 - `"advisor-tool-2026-03-01"`
8289
8390 - `"managed-agents-2026-04-01"`
from line 127
120127
121128 - `"mid-conversation-system-clear-at-2026-08-21"`
122129
130- `"anthropic-workspace-id": optional string`
131
123132## Returns
124133
125134- `data: array of BetaEnvironment`
from line 135
126135
127136 List of environments.
128137
138 - `type: "environment"`
139
140 The type of object (always 'environment')
141
142 default: environment
143
129144 - `id: string`
130145
131146 Environment identifier (e.g., 'env_...')
from line 157
142157
143158 `cloud` environment configuration.
144159
160 - `type: "cloud"`
161
162 Environment type
163
145164 - `networking: BetaUnrestrictedNetwork or BetaLimitedNetwork`
146165
147166 Network configuration policy.
from line 177
158177
159178 Limited network access.
160179
180 - `type: "limited"`
181
182 Network policy type
183
161184 - `allow_mcp_servers: boolean`
162185
163186 Permits outbound access to MCP server endpoints configured on the agent, beyond those listed in the `allowed_hosts` array.
from line 193
170193
171194 Specifies domains the container can reach.
172195
173 - `type: "limited"`
174
175 Network policy type
176
177196 - `packages: BetaPackages`
178197
179198 Package manager configuration.
180199
200 - `type: optional "packages"`
201
202 Package configuration type
203
204 default: packages
205
181206 - `apt: array of string`
182207
183208 Ubuntu/Debian packages to install
from line 227
202227
203228 Python packages to install
204229
205 - `type: optional "packages"`
206
207 Package configuration type
208
209 default: packages
210
211 - `type: "cloud"`
212
213 Environment type
214
215230 - `BetaSelfHostedConfig object`
216231
217232 Configuration for self-hosted environments.
from line 250
235250 - `name: string`
236251
237252 Human-readable name for the environment
238
239 - `type: "environment"`
240
241 The type of object (always 'environment')
242
243 default: environment
244253
245254 - `updated_at: string`
246255