AnthropicClaude Managed Agents

Work Item Stats

Read statistics for an environment's work queue (pending, running, completed, etc.).

GET /anthropic/v1/environments/{environment_id}/work/stats○ Unsupported

Request parameters

  • environment_idstring必填

    path: Environment ID (path or query parameter).

Returns

501 This endpoint is not implemented yet; calling it returns the response below:

This is the task-claiming protocol for self-hosted executors; platform agents always execute on the platform, and self-hosted executors are not supported. Calling it returns 501 (not_implemented_error), produces no side effects, and the official SDK does not retry.

Errors follow the Claude Managed Agents format — see error codes

Response

HTTP 200

Successful response

application/json

NameTypeDescription
depthnumberNumber of work items waiting to be picked up (lag from consumer group)
oldest_queued_atnull | stringRFC 3339 timestamp of oldest item in the work stream (includes both queued and pending items), null if stream empty
pendingnumberNumber of work items being processed (polled but not acknowledged)
typestringThe type of object
workers_pollingnull | numberNumber of workers that have polled for work in the last 30 seconds. Requires worker_id to be sent with poll requests.