GET /api/v1/cloud/environments/{environment_id}/work/stats
Returns queue statistics for a self_hosted Environment.
Path parameters
| Parameter | Type | Description |
|---|---|---|
environment_id | string | Environment ID with the env_ prefix |
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer $QODER_PAT |
Example request
Example response
HTTP 200 OKResponse fields
Returns a Work queue stats object.Errors
| HTTP | Type | Trigger |
|---|---|---|
| 400 | invalid_request_error | The Environment is not self_hosted |
| 401 | authentication_error | PAT invalid or expired |
| 403 | permission_error | Not authorized for this operation |
| 404 | not_found_error | Environment not found |
Notes
depthcounts queued items that are claimable now.pendingcounts queued items delivered within the recent redelivery window but not yet acknowledged.workers_pollingonly counts poll requests that includedWorker-ID.
Related
Cloud environment setup
Choose the container, network, and dependencies your agent runs in.