GET /api/v1/cloud/environments/{environment_id}/work/poll
Claims one available work item for a self_hosted Environment. Polling with no available work returns HTTP 200 OK with a JSON null body.
Polling delivers a work item but does not acknowledge it. A worker should call Acknowledge work item before executing the Session work.
Path parameters
Headers
Query parameters
Example request
Example response: work available
HTTP 200 OKExample response: no work
HTTP 200 OKResponse fields
Returns a Work item object, ornull when no item is available.
Errors
See Errors for the full error envelope.
Notes
Worker-IDis a worker-chosen business identifier, not an authentication credential.- If both poll and ack provide
Worker-ID, ack fails with 409 when the values do not match. - Long polling waits at most once for
block_ms; clients should repeat polling when they receivenull.
Related
Cloud environment setup
Choose the container, network, and dependencies your agent runs in.