Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

Environments changedapi/beta/environments

Nearest release: v2.1.309, published 2 hours 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+28added
Lines−28removed
From line 392 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits18to this page, all time

The whole hunk

from line 392, old and new numbered
/
lines
from line 392
392392```bash
393393curl https://api.anthropic.com/v1/environments \
394394 -H 'Content-Type: application/json' \
395 -H 'anthropic-version: 2023-06-01' \
395 -H 'anthropic-version: 2026-10-21' \
396396 -H 'anthropic-beta: managed-agents-2026-04-01' \
397 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
397 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
398398 -d '{
399399 "name": "python-data-analysis",
400400 "config": {
from line 756
756756 
757757```bash
758758curl https://api.anthropic.com/v1/environments \
759 -H 'anthropic-version: 2023-06-01' \
759 -H 'anthropic-version: 2026-10-21' \
760760 -H 'anthropic-beta: managed-agents-2026-04-01' \
761 -H "X-Api-Key: $ANTHROPIC_API_KEY"
761 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
762762```
763763 
764764#### Response (200)
from line 1087
10871087 
10881088```bash
10891089curl https://api.anthropic.com/v1/environments/$ENVIRONMENT_ID \
1090 -H 'anthropic-version: 2023-06-01' \
1090 -H 'anthropic-version: 2026-10-21' \
10911091 -H 'anthropic-beta: managed-agents-2026-04-01' \
1092 -H "X-Api-Key: $ANTHROPIC_API_KEY"
1092 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
10931093```
10941094 
10951095#### Response (200)
from line 1532
15321532```bash
15331533curl https://api.anthropic.com/v1/environments/$ENVIRONMENT_ID \
15341534 -H 'Content-Type: application/json' \
1535 -H 'anthropic-version: 2023-06-01' \
1535 -H 'anthropic-version: 2026-10-21' \
15361536 -H 'anthropic-beta: managed-agents-2026-04-01' \
1537 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
1537 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
15381538 -d '{
15391539 "description": "Python environment with data-analysis packages."
15401540 }'
from line 1744
17441744```bash
17451745curl https://api.anthropic.com/v1/environments/$ENVIRONMENT_ID \
17461746 -X DELETE \
1747 -H 'anthropic-version: 2023-06-01' \
1747 -H 'anthropic-version: 2026-10-21' \
17481748 -H 'anthropic-beta: managed-agents-2026-04-01' \
1749 -H "X-Api-Key: $ANTHROPIC_API_KEY"
1749 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
17501750```
17511751 
17521752#### Response (200)
from line 2031
20312031```bash
20322032curl https://api.anthropic.com/v1/environments/$ENVIRONMENT_ID/archive \
20332033 -X POST \
2034 -H 'anthropic-version: 2023-06-01' \
2034 -H 'anthropic-version: 2026-10-21' \
20352035 -H 'anthropic-beta: managed-agents-2026-04-01' \
2036 -H "X-Api-Key: $ANTHROPIC_API_KEY"
2036 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
20372037```
20382038 
20392039#### Response (200)
from line 2774
27742774 
27752775```bash
27762776curl https://api.anthropic.com/v1/environments/$ENVIRONMENT_ID/work/$WORK_ID \
2777 -H 'anthropic-version: 2023-06-01' \
2777 -H 'anthropic-version: 2026-10-21' \
27782778 -H 'anthropic-beta: managed-agents-2026-04-01' \
2779 -H "X-Api-Key: $ANTHROPIC_API_KEY"
2779 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
27802780```
27812781 
27822782##### Response (200)
from line 3038
30383038 
30393039```bash
30403040curl https://api.anthropic.com/v1/environments/$ENVIRONMENT_ID/work/poll \
3041 -H 'anthropic-version: 2023-06-01' \
3041 -H 'anthropic-version: 2026-10-21' \
30423042 -H 'anthropic-beta: managed-agents-2026-04-01' \
3043 -H "X-Api-Key: $ANTHROPIC_API_KEY"
3043 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
30443044```
30453045 
30463046##### Response (200)
from line 3287
32873287```bash
32883288curl https://api.anthropic.com/v1/environments/$ENVIRONMENT_ID/work/$WORK_ID/ack \
32893289 -X POST \
3290 -H 'anthropic-version: 2023-06-01' \
3290 -H 'anthropic-version: 2026-10-21' \
32913291 -H 'anthropic-beta: managed-agents-2026-04-01' \
3292 -H "X-Api-Key: $ANTHROPIC_API_KEY"
3292 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
32933293```
32943294 
32953295##### Response (200)
from line 3502
35023502```bash
35033503curl https://api.anthropic.com/v1/environments/$ENVIRONMENT_ID/work/$WORK_ID/heartbeat \
35043504 -X POST \
3505 -H 'anthropic-version: 2023-06-01' \
3505 -H 'anthropic-version: 2026-10-21' \
35063506 -H 'anthropic-beta: managed-agents-2026-04-01' \
3507 -H "X-Api-Key: $ANTHROPIC_API_KEY"
3507 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
35083508```
35093509 
35103510##### Response (200)
from line 3752
37523752```bash
37533753curl https://api.anthropic.com/v1/environments/$ENVIRONMENT_ID/work/$WORK_ID/stop \
37543754 -H 'Content-Type: application/json' \
3755 -H 'anthropic-version: 2023-06-01' \
3755 -H 'anthropic-version: 2026-10-21' \
37563756 -H 'anthropic-beta: managed-agents-2026-04-01' \
3757 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
3757 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
37583758 -d '{}'
37593759```
37603760 
from line 4015
40154015 
40164016```bash
40174017curl https://api.anthropic.com/v1/environments/$ENVIRONMENT_ID/work \
4018 -H 'anthropic-version: 2023-06-01' \
4018 -H 'anthropic-version: 2026-10-21' \
40194019 -H 'anthropic-beta: managed-agents-2026-04-01' \
4020 -H "X-Api-Key: $ANTHROPIC_API_KEY"
4020 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
40214021```
40224022 
40234023##### Response (200)
from line 4281
42814281```bash
42824282curl https://api.anthropic.com/v1/environments/$ENVIRONMENT_ID/work/$WORK_ID \
42834283 -H 'Content-Type: application/json' \
4284 -H 'anthropic-version: 2023-06-01' \
4284 -H 'anthropic-version: 2026-10-21' \
42854285 -H 'anthropic-beta: managed-agents-2026-04-01' \
4286 -H "X-Api-Key: $ANTHROPIC_API_KEY" \
4286 -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
42874287 -d '{
42884288 "metadata": {
42894289 "foo": "string"
from line 4486
44864486 
44874487```bash
44884488curl https://api.anthropic.com/v1/environments/$ENVIRONMENT_ID/work/stats \
4489 -H 'anthropic-version: 2023-06-01' \
4489 -H 'anthropic-version: 2026-10-21' \
44904490 -H 'anthropic-beta: managed-agents-2026-04-01' \
4491 -H "X-Api-Key: $ANTHROPIC_API_KEY"
4491 -H "Authorization: Bearer $ANTHROPIC_API_KEY"
44924492```
44934493 
44944494##### Response (200)
Feedback