Batch Create Sandbox Tokens
curl --request POST \
--url https://api.zerodrive.dev/v1/sandboxes/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sandboxes": [
{}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({sandboxes: [{}]})
};
fetch('https://api.zerodrive.dev/v1/sandboxes/batch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/sandboxes/batch"
payload = { "sandboxes": [{}] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Batch Create Sandbox Tokens
Mint up to 100 short-lived scoped sandbox tokens (zdx_...) in one call for worker swarms.
POST
https://api.zerodrive.dev
/
v1
/
sandboxes
/
batch
Batch Create Sandbox Tokens
curl --request POST \
--url https://api.zerodrive.dev/v1/sandboxes/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sandboxes": [
{}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({sandboxes: [{}]})
};
fetch('https://api.zerodrive.dev/v1/sandboxes/batch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/sandboxes/batch"
payload = { "sandboxes": [{}] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}
