Claim Agent Handoff
curl --request POST \
--url https://api.zerodrive.dev/v1/handoffs/{handoff_id}/claim \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_id": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({agent_id: '<string>'})
};
fetch('https://api.zerodrive.dev/v1/handoffs/{handoff_id}/claim', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/handoffs/{handoff_id}/claim"
payload = { "agent_id": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Claim Agent Handoff
Atomically claim an open handoff so concurrent workers cannot double-claim.
POST
https://api.zerodrive.dev
/
v1
/
handoffs
/
{handoff_id}
/
claim
Claim Agent Handoff
curl --request POST \
--url https://api.zerodrive.dev/v1/handoffs/{handoff_id}/claim \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"agent_id": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({agent_id: '<string>'})
};
fetch('https://api.zerodrive.dev/v1/handoffs/{handoff_id}/claim', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/handoffs/{handoff_id}/claim"
payload = { "agent_id": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}
