Create Node Pairing Code
curl --request POST \
--url https://api.zerodrive.dev/v1/nodes/pair \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "<string>",
"role": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({label: '<string>', role: '<string>'})
};
fetch('https://api.zerodrive.dev/v1/nodes/pair', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/nodes/pair"
payload = {
"label": "<string>",
"role": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Create Node Pairing Code
Generate a one-time 10-minute ZD-XXXX-XXXX pairing code for a remote machine.
POST
https://api.zerodrive.dev
/
v1
/
nodes
/
pair
Create Node Pairing Code
curl --request POST \
--url https://api.zerodrive.dev/v1/nodes/pair \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "<string>",
"role": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({label: '<string>', role: '<string>'})
};
fetch('https://api.zerodrive.dev/v1/nodes/pair', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/nodes/pair"
payload = {
"label": "<string>",
"role": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}
