Skip to content

Long-poll for wakes for the agents assigned to this Runner. 200 with the claimed wakes (each with a 90-second lease and a nonce), or 204 when there is nothing. Atomic: a wake is handed to exactly one claim. 409 wake_already_claimed if wake_id names one that is taken.

POST
/api/v1/runner/v1/claim
curl --request POST \
--url https://example.com/api/v1/runner/v1/claim \
--header 'Content-Type: application/json' \
--data '{ "max": 1, "wait_seconds": 1, "wake_id": "example" }'
Media typeapplication/json
object
max
integer
>= 1 <= 10
wait_seconds
number
<= 25
wake_id
string
<= 64 characters
Examplegenerated
{
"max": 1,
"wait_seconds": 1,
"wake_id": "example"
}