Work changedapi/beta/environments/work
Nearest release: v2.1.315, 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+20added
Lines−8removed
From line
141
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits20to this page, all time
The whole hunk
from line 141, old and new numbered
/
from line 141
141141
142142 - `"analytics-usage-cost-2026-08-24"`
143143
144 - `"experimental-claude-tag-2026-10-21"`
145
144146- `"anthropic-workspace-id": optional string`
145147
146148 Optional header to select the Workspace for this request. The value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
from line 413
411413
412414 - `"analytics-usage-cost-2026-08-24"`
413415
416 - `"experimental-claude-tag-2026-10-21"`
417
414418- `"Anthropic-Worker-ID": optional string`
415419
416420 Unique identifier for the specific worker polling, used to track aggregated environment-level work metrics in Console
from line 671
667671
668672 - `"analytics-usage-cost-2026-08-24"`
669673
674 - `"experimental-claude-tag-2026-10-21"`
675
670676### Returns
671677
672678- `BetaSelfHostedWork object`
from line 936
930936
931937 - `"analytics-usage-cost-2026-08-24"`
932938
939 - `"experimental-claude-tag-2026-10-21"`
940
933941### Returns
934942
935943- `BetaSelfHostedWorkHeartbeatResponse object`
from line 952
944952
945953 - `last_heartbeat: string`
946954
947 RFC 3339 timestamp of the actual heartbeat from DB
955 RFC 3339 timestamp of the most recent heartbeat recorded for this work item, or an empty string if none has been recorded
948956
949957 - `lease_extended: boolean`
950958
from line 1134
11261134
11271135 - `"analytics-usage-cost-2026-08-24"`
11281136
1137 - `"experimental-claude-tag-2026-10-21"`
1138
11291139- `"anthropic-workspace-id": optional string`
11301140
11311141 Optional header to select the Workspace for this request. The value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
from line 1414
14041414
14051415 - `"analytics-usage-cost-2026-08-24"`
14061416
1417 - `"experimental-claude-tag-2026-10-21"`
1418
14071419### Returns
14081420
14091421- `BetaSelfHostedWorkListResponse object`
from line 1677
16651677
16661678 - `"analytics-usage-cost-2026-08-24"`
16671679
1680 - `"experimental-claude-tag-2026-10-21"`
1681
16681682- `"anthropic-workspace-id": optional string`
16691683
16701684 Optional header to select the Workspace for this request. The value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
from line 1945
19311945
19321946 - `"analytics-usage-cost-2026-08-24"`
19331947
1948 - `"experimental-claude-tag-2026-10-21"`
1949
19341950- `"anthropic-workspace-id": optional string`
19351951
19361952 Optional header to select the Workspace for this request. The value is a Workspace ID (for example, `wrkspc_011CZkZaBF1tNoB5wlCeusgy`).
from line 1959
19431959
19441960 Statistics about the work queue for an environment.
19451961
1946 Uses Redis Stream consumer group metrics for O(1) queries.
1947
19481962 - `type: "work_queue_stats"`
19491963
19501964 The type of object
from line 1967
19531967
19541968 - `depth: number`
19551969
1956 Number of work items waiting to be picked up (lag from consumer group)
1970 Number of work items waiting to be picked up
19571971
19581972 - `oldest_queued_at: string or null`
19591973
from line 2102
20882102
20892103 - `last_heartbeat: string`
20902104
2091 RFC 3339 timestamp of the actual heartbeat from DB
2105 RFC 3339 timestamp of the most recent heartbeat recorded for this work item, or an empty string if none has been recorded
20922106
20932107 - `lease_extended: boolean`
20942108
from line 2218
22042218
22052219 Statistics about the work queue for an environment.
22062220
2207 Uses Redis Stream consumer group metrics for O(1) queries.
2208
22092221 - `type: "work_queue_stats"`
22102222
22112223 The type of object
from line 2226
22142226
22152227 - `depth: number`
22162228
2217 Number of work items waiting to be picked up (lag from consumer group)
2229 Number of work items waiting to be picked up
22182230
22192231 - `oldest_queued_at: string or null`
22202232
No line in this hunk matches that.