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---
5
16# Get Queue Statistics
27
38**GET** `/v1/environments/{environment_id}/work/stats`
from line 21
1621
1722 - `string`
1823
19 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 41 more`
24 - `"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 42 more`
2025
2126 - `"message-batches-2024-09-24"`
2227
from line 69
6469
6570 - `"user-profiles-2026-08-18"`
6671
72 - `"user-profiles-2026-09-04"`
73
6774 - `"advisor-tool-2026-03-01"`
6875
6976 - `"managed-agents-2026-04-01"`
from line 113
106113
107114 - `"mid-conversation-system-clear-at-2026-08-21"`
108115
116- `"anthropic-workspace-id": optional string`
117
109118## Returns
110119
111120- `BetaSelfHostedWorkQueueStats object`
from line 123
114123
115124 Uses Redis Stream consumer group metrics for O(1) queries.
116125
126 - `type: "work_queue_stats"`
127
128 The type of object
129
130 default: work_queue_stats
131
117132 - `depth: number`
118133
119134 Number of work items waiting to be picked up (lag from consumer group)
from line 142
127142 Number of work items being processed (polled but not acknowledged)
128143
129144 default: 0
130
131 - `type: "work_queue_stats"`
132
133 The type of object
134
135 default: work_queue_stats
136145
137146 - `workers_polling: number or null`
138147