Agent ID or lookup key injected by the nested route.
Request body.
Optionalexecution?: stringOptional durable execution ID filter.
Caller-generated random UUID lease token.
Optionallease_seconds?: numberLease duration from 15 through 3600 seconds. Defaults to 300.
Optionalwork_item?: stringSaved work item ID to resume or reclaim.
Successful response
List active workflow work available to the viewer Lists queued, claimed, and running external work yielded by durable workflows. The top-level collection includes work for every agent the viewer can execute; the agent-nested collection limits results to that agent. This discovery response never includes lease tokens. Use the agent claim endpoint to acquire new work or resume a saved lease.
Agent ID or lookup key injected by the nested route.
Optionalparams: { afterCursor?: string; execution?: string; limit?: number }Query parameters.
OptionalafterCursor?: stringOpaque cursor for the next page of older queued work.
Optionalexecution?: stringOptional durable execution ID filter.
Optionallimit?: numberMaximum work items per page. Defaults to 50; maximum is 100.
Successful response
Claim or resume workflow work for an agent Atomically claims the oldest queued or lease-expired item. To resume after a harness restart, pass both the saved
work_itemand the samelease_owner; the server refreshes that active lease without incrementing its attempt. Returnsdata: nullwhen no eligible item exists, including when another lease owns the explicitly requested item.