Environments changedapi/beta/environments
Nearest release: v2.1.247, published under an hour 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+222added
Lines−18removed
From line
14
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 14, old and new numbered
/
from line 14
1414
1515 - `string`
1616
17 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 31 more`
17 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 38 more`
1818
1919 - `"message-batches-2024-09-24"`
2020
from line 84
8484
8585 - `"mid-conversation-tool-changes-2026-07-01"`
8686
87 - `"compact-2026-01-12"`
88
89 - `"computer-use-2025-11-24"`
90
91 - `"mcp-tunnels-2026-06-22"`
92
93 - `"structured-outputs-2025-11-13"`
94
95 - `"task-budgets-2026-03-13"`
96
97 - `"thinking-display-updates-2026-08-18"`
98
99 - `"ce-user-management-2026-07-13"`
100
87101### Body parameters
88102
89103- `name: string`
from line 150
136150
137151 - `allow_package_managers: optional boolean or null`
138152
139 Permits outbound access to public package registries (PyPI, npm, etc.) beyond those listed in the `allowed_hosts` array. Defaults to `false`.
153 Permits outbound access to public package registries (PyPI, npm, etc.) beyond those listed in the `allowed_hosts` array. Defaults to `false` on creation. Must be `true` when `packages` are specified.
140154
141155 - `allowed_hosts: optional array of string or null`
142156
from line 162
148162
149163 When versioning, use the version semantics relevant for the package manager, e.g. for `pip` use `package==1.0.0`. You are responsible for validating the package and version exist. Unversioned installs the latest.
150164
165 Under `limited` networking, requires `networking.allow_package_managers` to be `true`.
166
151167 - `apt: optional array of string or null`
152168
153169 Ubuntu/Debian packages to install
from line 465
449465
450466 - `string`
451467
452 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 31 more`
468 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 38 more`
453469
454470 - `"message-batches-2024-09-24"`
455471
from line 535
519535
520536 - `"mid-conversation-tool-changes-2026-07-01"`
521537
538 - `"compact-2026-01-12"`
539
540 - `"computer-use-2025-11-24"`
541
542 - `"mcp-tunnels-2026-06-22"`
543
544 - `"structured-outputs-2025-11-13"`
545
546 - `"task-budgets-2026-03-13"`
547
548 - `"thinking-display-updates-2026-08-18"`
549
550 - `"ce-user-management-2026-07-13"`
551
522552### Returns
523553
524554- `data: array of BetaEnvironment`
from line 768
738768
739769 - `string`
740770
741 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 31 more`
771 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 38 more`
742772
743773 - `"message-batches-2024-09-24"`
744774
from line 838
808838
809839 - `"mid-conversation-tool-changes-2026-07-01"`
810840
841 - `"compact-2026-01-12"`
842
843 - `"computer-use-2025-11-24"`
844
845 - `"mcp-tunnels-2026-06-22"`
846
847 - `"structured-outputs-2025-11-13"`
848
849 - `"task-budgets-2026-03-13"`
850
851 - `"thinking-display-updates-2026-08-18"`
852
853 - `"ce-user-management-2026-07-13"`
854
811855### Returns
812856
813857- `BetaEnvironment object`
from line 1062
10181062
10191063 - `string`
10201064
1021 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 31 more`
1065 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 38 more`
10221066
10231067 - `"message-batches-2024-09-24"`
10241068
from line 1132
10881132
10891133 - `"mid-conversation-tool-changes-2026-07-01"`
10901134
1135 - `"compact-2026-01-12"`
1136
1137 - `"computer-use-2025-11-24"`
1138
1139 - `"mcp-tunnels-2026-06-22"`
1140
1141 - `"structured-outputs-2025-11-13"`
1142
1143 - `"task-budgets-2026-03-13"`
1144
1145 - `"thinking-display-updates-2026-08-18"`
1146
1147 - `"ce-user-management-2026-07-13"`
1148
10911149### Body parameters
10921150
10931151- `config: optional BetaCloudConfigParams or BetaSelfHostedConfigParams or null`
from line 1192
11341192
11351193 - `allow_package_managers: optional boolean or null`
11361194
1137 Permits outbound access to public package registries (PyPI, npm, etc.) beyond those listed in the `allowed_hosts` array. Defaults to `false`.
1195 Permits outbound access to public package registries (PyPI, npm, etc.) beyond those listed in the `allowed_hosts` array. Defaults to `false` on creation. Must be `true` when `packages` are specified.
11381196
11391197 - `allowed_hosts: optional array of string or null`
11401198
from line 1204
11461204
11471205 When versioning, use the version semantics relevant for the package manager, e.g. for `pip` use `package==1.0.0`. You are responsible for validating the package and version exist. Unversioned installs the latest.
11481206
1207 Under `limited` networking, requires `networking.allow_package_managers` to be `true`.
1208
11491209 - `apt: optional array of string or null`
11501210
11511211 Ubuntu/Debian packages to install
from line 1482
14221482
14231483 - `string`
14241484
1425 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 31 more`
1485 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 38 more`
14261486
14271487 - `"message-batches-2024-09-24"`
14281488
from line 1552
14921552
14931553 - `"mid-conversation-tool-changes-2026-07-01"`
14941554
1555 - `"compact-2026-01-12"`
1556
1557 - `"computer-use-2025-11-24"`
1558
1559 - `"mcp-tunnels-2026-06-22"`
1560
1561 - `"structured-outputs-2025-11-13"`
1562
1563 - `"task-budgets-2026-03-13"`
1564
1565 - `"thinking-display-updates-2026-08-18"`
1566
1567 - `"ce-user-management-2026-07-13"`
1568
14951569### Returns
14961570
14971571- `BetaEnvironmentDeleteResponse object`
from line 1619
15451619
15461620 - `string`
15471621
1548 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 31 more`
1622 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 38 more`
15491623
15501624 - `"message-batches-2024-09-24"`
15511625
from line 1689
16151689
16161690 - `"mid-conversation-tool-changes-2026-07-01"`
16171691
1692 - `"compact-2026-01-12"`
1693
1694 - `"computer-use-2025-11-24"`
1695
1696 - `"mcp-tunnels-2026-06-22"`
1697
1698 - `"structured-outputs-2025-11-13"`
1699
1700 - `"task-budgets-2026-03-13"`
1701
1702 - `"thinking-display-updates-2026-08-18"`
1703
1704 - `"ce-user-management-2026-07-13"`
1705
16181706### Returns
16191707
16201708- `BetaEnvironment object`
from line 2016
19282016
19292017 - `allow_package_managers: optional boolean or null`
19302018
1931 Permits outbound access to public package registries (PyPI, npm, etc.) beyond those listed in the `allowed_hosts` array. Defaults to `false`.
2019 Permits outbound access to public package registries (PyPI, npm, etc.) beyond those listed in the `allowed_hosts` array. Defaults to `false` on creation. Must be `true` when `packages` are specified.
19322020
19332021 - `allowed_hosts: optional array of string or null`
19342022
from line 2028
19402028
19412029 When versioning, use the version semantics relevant for the package manager, e.g. for `pip` use `package==1.0.0`. You are responsible for validating the package and version exist. Unversioned installs the latest.
19422030
2031 Under `limited` networking, requires `networking.allow_package_managers` to be `true`.
2032
19432033 - `apt: optional array of string or null`
19442034
19452035 Ubuntu/Debian packages to install
from line 2251
21612251
21622252 - `allow_package_managers: optional boolean or null`
21632253
2164 Permits outbound access to public package registries (PyPI, npm, etc.) beyond those listed in the `allowed_hosts` array. Defaults to `false`.
2254 Permits outbound access to public package registries (PyPI, npm, etc.) beyond those listed in the `allowed_hosts` array. Defaults to `false` on creation. Must be `true` when `packages` are specified.
21652255
21662256 - `allowed_hosts: optional array of string or null`
21672257
from line 2301
22112301
22122302 When versioning, use the version semantics relevant for the package manager, e.g. for `pip` use `package==1.0.0`. You are responsible for validating the package and version exist. Unversioned installs the latest.
22132303
2304 Under `limited` networking, requires `networking.allow_package_managers` to be `true`.
2305
22142306 - `apt: optional array of string or null`
22152307
22162308 Ubuntu/Debian packages to install
from line 2387
22952387
22962388 - `string`
22972389
2298 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 31 more`
2390 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 38 more`
22992391
23002392 - `"message-batches-2024-09-24"`
23012393
from line 2457
23652457
23662458 - `"mid-conversation-tool-changes-2026-07-01"`
23672459
2460 - `"compact-2026-01-12"`
2461
2462 - `"computer-use-2025-11-24"`
2463
2464 - `"mcp-tunnels-2026-06-22"`
2465
2466 - `"structured-outputs-2025-11-13"`
2467
2468 - `"task-budgets-2026-03-13"`
2469
2470 - `"thinking-display-updates-2026-08-18"`
2471
2472 - `"ce-user-management-2026-07-13"`
2473
23682474#### Returns
23692475
23702476- `BetaSelfHostedWork object`
from line 2621
25152621
25162622 - `string`
25172623
2518 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 31 more`
2624 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 38 more`
25192625
25202626 - `"message-batches-2024-09-24"`
25212627
from line 2691
25852691
25862692 - `"mid-conversation-tool-changes-2026-07-01"`
25872693
2694 - `"compact-2026-01-12"`
2695
2696 - `"computer-use-2025-11-24"`
2697
2698 - `"mcp-tunnels-2026-06-22"`
2699
2700 - `"structured-outputs-2025-11-13"`
2701
2702 - `"task-budgets-2026-03-13"`
2703
2704 - `"thinking-display-updates-2026-08-18"`
2705
2706 - `"ce-user-management-2026-07-13"`
2707
25882708- `"Anthropic-Worker-ID": optional string`
25892709
25902710 Unique identifier for the specific worker polling, used to track aggregated environment-level work metrics in Console
from line 2847
27272847
27282848 - `string`
27292849
2730 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 31 more`
2850 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 38 more`
27312851
27322852 - `"message-batches-2024-09-24"`
27332853
from line 2917
27972917
27982918 - `"mid-conversation-tool-changes-2026-07-01"`
27992919
2920 - `"compact-2026-01-12"`
2921
2922 - `"computer-use-2025-11-24"`
2923
2924 - `"mcp-tunnels-2026-06-22"`
2925
2926 - `"structured-outputs-2025-11-13"`
2927
2928 - `"task-budgets-2026-03-13"`
2929
2930 - `"thinking-display-updates-2026-08-18"`
2931
2932 - `"ce-user-management-2026-07-13"`
2933
28002934#### Returns
28012935
28022936- `BetaSelfHostedWork object`
from line 3080
29463080
29473081 - `string`
29483082
2949 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 31 more`
3083 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 38 more`
29503084
29513085 - `"message-batches-2024-09-24"`
29523086
from line 3150
30163150
30173151 - `"mid-conversation-tool-changes-2026-07-01"`
30183152
3153 - `"compact-2026-01-12"`
3154
3155 - `"computer-use-2025-11-24"`
3156
3157 - `"mcp-tunnels-2026-06-22"`
3158
3159 - `"structured-outputs-2025-11-13"`
3160
3161 - `"task-budgets-2026-03-13"`
3162
3163 - `"thinking-display-updates-2026-08-18"`
3164
3165 - `"ce-user-management-2026-07-13"`
3166
30193167#### Returns
30203168
30213169- `BetaSelfHostedWorkHeartbeatResponse object`
from line 3246
30983246
30993247 - `string`
31003248
3101 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 31 more`
3249 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 38 more`
31023250
31033251 - `"message-batches-2024-09-24"`
31043252
from line 3316
31683316
31693317 - `"mid-conversation-tool-changes-2026-07-01"`
31703318
3319 - `"compact-2026-01-12"`
3320
3321 - `"computer-use-2025-11-24"`
3322
3323 - `"mcp-tunnels-2026-06-22"`
3324
3325 - `"structured-outputs-2025-11-13"`
3326
3327 - `"task-budgets-2026-03-13"`
3328
3329 - `"thinking-display-updates-2026-08-18"`
3330
3331 - `"ce-user-management-2026-07-13"`
3332
31713333#### Body parameters
31723334
31733335- `force: optional boolean`
from line 3488
33263488
33273489 - `string`
33283490
3329 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 31 more`
3491 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 38 more`
33303492
33313493 - `"message-batches-2024-09-24"`
33323494
from line 3558
33963558
33973559 - `"mid-conversation-tool-changes-2026-07-01"`
33983560
3561 - `"compact-2026-01-12"`
3562
3563 - `"computer-use-2025-11-24"`
3564
3565 - `"mcp-tunnels-2026-06-22"`
3566
3567 - `"structured-outputs-2025-11-13"`
3568
3569 - `"task-budgets-2026-03-13"`
3570
3571 - `"thinking-display-updates-2026-08-18"`
3572
3573 - `"ce-user-management-2026-07-13"`
3574
33993575#### Returns
34003576
34013577- `BetaSelfHostedWorkListResponse object`
from line 3719
35433719
35443720 - `string`
35453721
3546 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 31 more`
3722 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 38 more`
35473723
35483724 - `"message-batches-2024-09-24"`
35493725
from line 3789
36133789
36143790 - `"mid-conversation-tool-changes-2026-07-01"`
36153791
3792 - `"compact-2026-01-12"`
3793
3794 - `"computer-use-2025-11-24"`
3795
3796 - `"mcp-tunnels-2026-06-22"`
3797
3798 - `"structured-outputs-2025-11-13"`
3799
3800 - `"task-budgets-2026-03-13"`
3801
3802 - `"thinking-display-updates-2026-08-18"`
3803
3804 - `"ce-user-management-2026-07-13"`
3805
36163806#### Body parameters
36173807
36183808- `metadata: map[string]`
from line 3949
37593949
37603950 - `string`
37613951
3762 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 31 more`
3952 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 38 more`
37633953
37643954 - `"message-batches-2024-09-24"`
37653955
from line 4018
38284018 - `"agent-memory-2026-07-22"`
38294019
38304020 - `"mid-conversation-tool-changes-2026-07-01"`
4021
4022 - `"compact-2026-01-12"`
4023
4024 - `"computer-use-2025-11-24"`
4025
4026 - `"mcp-tunnels-2026-06-22"`
4027
4028 - `"structured-outputs-2025-11-13"`
4029
4030 - `"task-budgets-2026-03-13"`
4031
4032 - `"thinking-display-updates-2026-08-18"`
4033
4034 - `"ce-user-management-2026-07-13"`
38314035
38324036#### Returns
38334037
No line in this hunk matches that.