Sweep 22 Sep 2026 · 17:19Z Build v2.1.280 501 read Stable v2.1.267 Latest v2.1.280 Next v2.1.280 Feeds RSS JSON llms.txt Unofficial
One change · api

Poll for Work changed

api/beta/environments/work/poll

Nearest release: v2.1.268, published under an hour 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+18added
Lines−11removed
From line 1 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits7to this page, all time

The whole hunk

from line 1, old and new numbered
/
lines
from line 1
1---
2title: Poll for Work
3url: https://platform.claude.com/docs/en/api/beta/environments/work/poll
4---
5 
16# Poll for Work
27 
38**GET** `/v1/environments/{environment_id}/work/poll`
from line 37
3237 
3338 - `string`
3439 
35 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 41 more`
40 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 42 more`
3641 
3742 - `"message-batches-2024-09-24"`
3843 
from line 85
8085 
8186 - `"user-profiles-2026-08-18"`
8287 
88 - `"user-profiles-2026-09-04"`
89 
8390 - `"advisor-tool-2026-03-01"`
8491 
8592 - `"managed-agents-2026-04-01"`
from line 143
136143 receive new messages. The environment worker polls for work to execute in a
137144 self-hosted sandbox.
138145 
146 - `type: "work"`
147 
148 The type of object (always 'work')
149 
150 default: work
151 
139152 - `id: string`
140153 
141154 Work identifier (e.g., 'work_...')
from line 165
152165 
153166 The actual work to be performed
154167 
155 - `id: string`
156 
157 Session identifier (e.g., 'session_...')
158 
159168 - `type: "session"`
160169 
161170 Type of work data
162171 
172 - `id: string`
173 
174 Session identifier (e.g., 'session_...')
175 
163176 - `environment_id: string`
164177 
165178 Environment identifier this work belongs to (e.g., `env_...`)
from line 214
201214 - `stopped_at: string or null`
202215 
203216 RFC 3339 timestamp when work execution stopped
204 
205 - `type: "work"`
206 
207 The type of object (always 'work')
208 
209 default: work
210217 
211218## Example
212219