Follow Discord
Sweep 03 Nov 2026 · 22:27Z Build v2.1.318 536 read Stable v2.1.311 Latest v2.1.318 Next v2.1.318 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

environments changedmanaged-agents/environments

Nearest release: v2.1.318, published 4 hours before 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+8added
Lines−8removed
From line 40 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits25to this page, all time

The whole hunk

from line 40, old and new numbered
/
lines
from line 40
4040 ```bash cURL
4141 curl -fsS https://api.anthropic.com/v1/environments \
4242 -H "x-api-key: $ANTHROPIC_API_KEY" \
43 -H "anthropic-version: 2023-06-01" \
43 -H "anthropic-version: 2026-10-21" \
4444 -H "anthropic-beta: managed-agents-2026-04-01" \
4545 -H "content-type: application/json" \
4646 -d '{
from line 178
178178 ```bash cURL
179179 curl -fsS https://api.anthropic.com/v1/sessions \
180180 -H "x-api-key: $ANTHROPIC_API_KEY" \
181 -H "anthropic-version: 2023-06-01" \
181 -H "anthropic-version: 2026-10-21" \
182182 -H "anthropic-beta: managed-agents-2026-04-01" \
183183 -H "content-type: application/json" \
184184 -d '{
from line 257
257257 ```bash cURL
258258 curl -fsS https://api.anthropic.com/v1/environments \
259259 -H "x-api-key: $ANTHROPIC_API_KEY" \
260 -H "anthropic-version: 2023-06-01" \
260 -H "anthropic-version: 2026-10-21" \
261261 -H "anthropic-beta: managed-agents-2026-04-01" \
262262 -H "content-type: application/json" \
263263 -d '{
from line 448
448448 ```bash cURL
449449 curl -fsS https://api.anthropic.com/v1/environments \
450450 -H "x-api-key: $ANTHROPIC_API_KEY" \
451 -H "anthropic-version: 2023-06-01" \
451 -H "anthropic-version: 2026-10-21" \
452452 -H "anthropic-beta: managed-agents-2026-04-01" \
453453 -H "content-type: application/json" \
454454 -d '{
from line 673
673673 # List environments
674674 curl -fsS https://api.anthropic.com/v1/environments \
675675 -H "x-api-key: $ANTHROPIC_API_KEY" \
676 -H "anthropic-version: 2023-06-01" \
676 -H "anthropic-version: 2026-10-21" \
677677 -H "anthropic-beta: managed-agents-2026-04-01"
678678 
679679 # Retrieve a specific environment
680680 curl -fsS "https://api.anthropic.com/v1/environments/$ENVIRONMENT_ID" \
681681 -H "x-api-key: $ANTHROPIC_API_KEY" \
682 -H "anthropic-version: 2023-06-01" \
682 -H "anthropic-version: 2026-10-21" \
683683 -H "anthropic-beta: managed-agents-2026-04-01"
684684 
685685 # Archive an environment (read-only, existing sessions continue)
686686 curl -fsS -X POST "https://api.anthropic.com/v1/environments/$ENVIRONMENT_ID/archive" \
687687 -H "x-api-key: $ANTHROPIC_API_KEY" \
688 -H "anthropic-version: 2023-06-01" \
688 -H "anthropic-version: 2026-10-21" \
689689 -H "anthropic-beta: managed-agents-2026-04-01"
690690 
691691 # Delete an environment (only if no sessions reference it)
692692 curl -fsS -X DELETE "https://api.anthropic.com/v1/environments/$ENVIRONMENT_ID" \
693693 -H "x-api-key: $ANTHROPIC_API_KEY" \
694 -H "anthropic-version: 2023-06-01" \
694 -H "anthropic-version: 2026-10-21" \
695695 -H "anthropic-beta: managed-agents-2026-04-01"
696696 ```
697697 
Feedback