Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

Get Queue Statistics changedapi/beta/environments/work/stats

Nearest release: v2.1.245, published 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+12added
Lines−15removed
From line 1 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits16to this page, all time

# Get Queue Statistics ## Path parameters ## Headers ## Returns ## Example ### Response (200) ## Get Queue Statistics ### Path Parameters ### Header Parameters ### Returns ### Example #### Response

The whole hunk

from line 1, old and new numbered
/
lines
from line 1
1---
2title: Get Queue Statistics
3url: https://platform.claude.com/docs/en/api/beta/environments/work/stats
4---
1# Get Queue Statistics
52 
6## Get Queue Statistics
3**GET** `/v1/environments/{environment_id}/work/stats`
74 
8**get** `/v1/environments/{environment_id}/work/stats`
9 
105Get statistics about the work queue for an environment.
116 
12### Path Parameters
7## Path parameters
138 
149- `environment_id: string`
1510 
16### Header Parameters
11## Headers
1712 
1813- `"anthropic-beta": optional array of AnthropicBeta`
1914 
from line 86
9186 
9287 - `"mid-conversation-tool-changes-2026-07-01"`
9388 
94### Returns
89## Returns
9590 
96- `BetaSelfHostedWorkQueueStats object { depth, oldest_queued_at, pending, 2 more }`
91- `BetaSelfHostedWorkQueueStats object`
9792 
9893 Statistics about the work queue for an environment.
9994 
from line 106
111106 
112107 Number of work items being processed (polled but not acknowledged)
113108 
109 default: 0
110 
114111 - `type: "work_queue_stats"`
115112 
116113 The type of object
117114 
118 - `"work_queue_stats"`
115 default: work_queue_stats
119116 
120117 - `workers_polling: number or null`
121118 
122119 Number of workers that have polled for work in the last 30 seconds. Requires worker_id to be sent with poll requests.
123120 
124### Example
121## Example
125122 
126```http
123```bash
127124curl https://api.anthropic.com/v1/environments/$ENVIRONMENT_ID/work/stats \
128125 -H 'anthropic-version: 2023-06-01' \
129126 -H 'anthropic-beta: managed-agents-2026-04-01' \
from line 127
130127 -H "X-Api-Key: $ANTHROPIC_API_KEY"
131128```
132129 
133#### Response
130### Response (200)
134131 
135132```json
136133{
Feedback