Get Environment changedapi/beta/environments/retrieve
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.
Recorded here
Lines+18added
Lines−31removed
From line
1
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits17to this page, all time
# Get Environment ## Path parameters ## Headers ## Returns ## Example ### Response (200) ## Get Environment ### Path Parameters ### Header Parameters ### Returns ### Example #### Response
The whole hunk
from line 1, old and new numbered
/
from line 1
1---
2title: Get Environment
3url: https://platform.claude.com/docs/en/api/beta/environments/retrieve
4---
1# Get Environment
52
6## Get Environment
3**GET** `/v1/environments/{environment_id}`
74
8**get** `/v1/environments/{environment_id}`
9
105Retrieve a specific environment by ID.
116
12### Path Parameters
7## Path parameters
138
149- `environment_id: string`
1510
16### Header Parameters
11## Headers
1712
1813- `"anthropic-beta": optional array of AnthropicBeta`
1914
from line 86
9186
9287 - `"mid-conversation-tool-changes-2026-07-01"`
9388
94### Returns
89## Returns
9590
96- `BetaEnvironment object { id, archived_at, config, 7 more }`
91- `BetaEnvironment object`
9792
9893 Unified Environment resource for both cloud and self-hosted environments.
9994
from line 104
109104
110105 Environment configuration (either Anthropic Cloud or self-hosted)
111106
112 - `BetaCloudConfig object { networking, packages, type }`
107 - `BetaCloudConfig object`
113108
114109 `cloud` environment configuration.
115110
from line 112
117112
118113 Network configuration policy.
119114
120 - `BetaUnrestrictedNetwork object { type }`
115 - `BetaUnrestrictedNetwork object`
121116
122117 Unrestricted network access.
123118
from line 120
125120
126121 Network policy type
127122
128 - `"unrestricted"`
123 - `BetaLimitedNetwork object`
129124
130 - `BetaLimitedNetwork object { allow_mcp_servers, allow_package_managers, allowed_hosts, type }`
131
132125 Limited network access.
133126
134127 - `allow_mcp_servers: boolean`
from line 140
147140
148141 Network policy type
149142
150 - `"limited"`
151
152143 - `packages: BetaPackages`
153144
154145 Package manager configuration.
from line 172
181172
182173 Package configuration type
183174
184 - `"packages"`
175 default: packages
185176
186177 - `type: "cloud"`
187178
188179 Environment type
189180
190 - `"cloud"`
181 - `BetaSelfHostedConfig object`
191182
192 - `BetaSelfHostedConfig object { type }`
193
194183 Configuration for self-hosted environments.
195184
196185 - `type: "self_hosted"`
from line 186
197186
198187 Environment type
199188
200 - `"self_hosted"`
201
202189 - `created_at: string`
203190
204191 RFC 3339 timestamp when environment was created
from line 206
219206
220207 The type of object (always 'environment')
221208
222 - `"environment"`
209 default: environment
223210
224211 - `updated_at: string`
225212
from line 220
233220
234221 - `"account"`
235222
236### Example
223## Example
237224
238```http
225```bash
239226curl https://api.anthropic.com/v1/environments/$ENVIRONMENT_ID \
240227 -H 'anthropic-version: 2023-06-01' \
241228 -H 'anthropic-beta: managed-agents-2026-04-01' \
from line 229
242229 -H "X-Api-Key: $ANTHROPIC_API_KEY"
243230```
244231
245#### Response
232### Response (200)
246233
247234```json
248235{
No line in this hunk matches that.