The whole hunk
from line 1, old and new numbered
/
lines
from line 1
1---
2title: Get Work Item
3url: https://platform.claude.com/docs/en/api/beta/environments/work/retrieve
4---
5
16# Get Work Item
27
38**GET** `/v1/environments/{environment_id}/work/{work_id}`
from line 25
2025
2126 - `string`
2227
23 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 41 more`
28 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 42 more`
2429
2530 - `"message-batches-2024-09-24"`
2631
from line 73
6873
6974 - `"user-profiles-2026-08-18"`
7075
76 - `"user-profiles-2026-09-04"`
77
7178 - `"advisor-tool-2026-03-01"`
7279
7380 - `"managed-agents-2026-04-01"`
from line 117
110117
111118 - `"mid-conversation-system-clear-at-2026-08-21"`
112119
120- `"anthropic-workspace-id": optional string`
121
113122## Returns
114123
115124- `BetaSelfHostedWork object`
from line 129
120129 receive new messages. The environment worker polls for work to execute in a
121130 self-hosted sandbox.
122131
132 - `type: "work"`
133
134 The type of object (always 'work')
135
136 default: work
137
123138 - `id: string`
124139
125140 Work identifier (e.g., 'work_...')
from line 151
136151
137152 The actual work to be performed
138153
139 - `id: string`
140
141 Session identifier (e.g., 'session_...')
142
143154 - `type: "session"`
144155
145156 Type of work data
146157
158 - `id: string`
159
160 Session identifier (e.g., 'session_...')
161
147162 - `environment_id: string`
148163
149164 Environment identifier this work belongs to (e.g., `env_...`)
from line 200
185200 - `stopped_at: string or null`
186201
187202 RFC 3339 timestamp when work execution stopped
188
189 - `type: "work"`
190
191 The type of object (always 'work')
192
193 default: work
194203
195204## Example
196205