from line 1
1---
2title: List Work Items
3url: https://platform.claude.com/docs/en/api/beta/environments/work/list
4---
1# List Work Items
52
6## List Work Items
3**GET** `/v1/environments/{environment_id}/work`
74
8**get** `/v1/environments/{environment_id}/work`
9
105Note: these endpoints are called automatically by the pre-built environment worker provided in the SDKs and CLI, for orchestrating sessions with self-hosted sandbox environments. They are included here as a reference; you do not need to invoke them directly.
116
127List work items in an environment.
138
14### Path Parameters
9## Path parameters
1510
1611- `environment_id: string`
1712
18### Query Parameters
13## Query parameters
1914
2015- `limit: optional number`
2116
2217 Maximum number of work items to return
2318
19 default: 20, maximum: 1000, minimum: 1
20
2421- `page: optional string`
2522
2623 Opaque cursor from previous response for pagination
2724
28### Header Parameters
25## Headers
2926
3027- `"anthropic-beta": optional array of AnthropicBeta`
3128
from line 100
103100
104101 - `"mid-conversation-tool-changes-2026-07-01"`
105102
106### Returns
103## Returns
107104
108- `BetaSelfHostedWorkListResponse object { data, next_page }`
105- `BetaSelfHostedWorkListResponse object`
109106
110107 Response when listing work items with cursor-based pagination.
111108
from line 134
137134
138135 Type of work data
139136
140 - `"session"`
141
142137 - `environment_id: string`
143138
144139 Environment identifier this work belongs to (e.g., `env_...`)
from line 180
185180
186181 The type of object (always 'work')
187182
188 - `"work"`
183 default: work
189184
190185 - `next_page: string or null`
191186
192187 Opaque cursor for fetching the next page of results
193188
194### Example
189## Example
195190
196```http
191```bash
197192curl https://api.anthropic.com/v1/environments/$ENVIRONMENT_ID/work \
198193 -H 'anthropic-version: 2023-06-01' \
199194 -H 'anthropic-beta: managed-agents-2026-04-01' \
from line 195
200195 -H "X-Api-Key: $ANTHROPIC_API_KEY"
201196```
202197
203#### Response
198### Response (200)
204199
205200```json
206201{
No line in this hunk matches that.