Claim run

http
POST /agent-workers/workers/{worker_id}/claim

Claim the next available run, or only the selected canonical run when canonical_run_id is provided.

Parameters

NameInRequiredDescription
worker_idpathYes

Request body

FieldTypeRequiredDescription
lease_duration_secondsinteger
canonical_run_idstringClaim only this canonical run; omit to claim the next available run.

Responses

StatusDescription
200Claim result, with lease metadata when a runnable agent run was available.
400Bad request
401Unauthorized
403Forbidden
404Not found
500Server error
503internal: authentication state is temporarily unavailable and the request was not processed; retry shortly.