Create Agent Handoff
curl --request POST \
--url https://api.zerodrive.dev/v1/handoffs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "Render intro sequence",
"instructions": "<string>",
"paths": [
"<string>"
],
"to_agent": "<string>",
"drive_id": "primary",
"branch_name": "main",
"context": {}
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: 'Render intro sequence',
instructions: '<string>',
paths: ['<string>'],
to_agent: '<string>',
drive_id: 'primary',
branch_name: 'main',
context: {}
})
};
fetch('https://api.zerodrive.dev/v1/handoffs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/handoffs"
payload = {
"title": "Render intro sequence",
"instructions": "<string>",
"paths": ["<string>"],
"to_agent": "<string>",
"drive_id": "primary",
"branch_name": "main",
"context": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Create Agent Handoff
Create a structured, claim-once task handoff packet for another agent.
POST
https://api.zerodrive.dev
/
v1
/
handoffs
Create Agent Handoff
curl --request POST \
--url https://api.zerodrive.dev/v1/handoffs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "Render intro sequence",
"instructions": "<string>",
"paths": [
"<string>"
],
"to_agent": "<string>",
"drive_id": "primary",
"branch_name": "main",
"context": {}
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: 'Render intro sequence',
instructions: '<string>',
paths: ['<string>'],
to_agent: '<string>',
drive_id: 'primary',
branch_name: 'main',
context: {}
})
};
fetch('https://api.zerodrive.dev/v1/handoffs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/handoffs"
payload = {
"title": "Render intro sequence",
"instructions": "<string>",
"paths": ["<string>"],
"to_agent": "<string>",
"drive_id": "primary",
"branch_name": "main",
"context": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Authorizations
Body
application/json
Response
201
Handoff created

