AnthropicClaude Managed Agents

Get Work Item

Read the current state of one self-hosted work item.

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

Request parameters

  • environment_idstring必填

    path: Environment ID (path or query parameter).

  • work_idstring必填

    path: Path parameter: the work item ID.

  • environment_idstring必填

    query: 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
idstringWork identifier (e.g., 'work_...')
acknowledged_atnull | stringRFC 3339 timestamp when work was acknowledged by Environment Manager
created_atstringRFC 3339 timestamp when work was created
dataobjectThe actual work to be performed (session or health check)
data.idstringSession identifier (e.g., 'session_...') / Health check identifier
data.typestringType of work data
environment_idstringEnvironment identifier this work belongs to (e.g., `env_...`)
latest_heartbeat_atnull | stringRFC 3339 timestamp of the most recent heartbeat
metadataobjectUser-provided metadata key-value pairs associated with this work item
secretnull | stringCredential payload used by the environment worker to execute this work item. May be populated when polling for work; null on all other retrieval paths.
started_atnull | stringRFC 3339 timestamp when work execution started
statestringCurrent state of the work item
stop_requested_atnull | stringRFC 3339 timestamp when stop was requested
stopped_atnull | stringRFC 3339 timestamp when work execution stopped
typestringThe type of object (always 'work')