Create Sandbox Token
curl --request POST \
--url https://api.zerodrive.dev/v1/sandboxes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"drive_id": "primary",
"root_folder": "Agents/Worker-01",
"access_mode": "read",
"ttl_seconds": 3600,
"label": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
drive_id: 'primary',
root_folder: 'Agents/Worker-01',
access_mode: 'read',
ttl_seconds: 3600,
label: '<string>'
})
};
fetch('https://api.zerodrive.dev/v1/sandboxes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/sandboxes"
payload = {
"drive_id": "primary",
"root_folder": "Agents/Worker-01",
"access_mode": "read",
"ttl_seconds": 3600,
"label": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Create Sandbox Token
Mint a short-lived bearer token (zdx_...) locked to one drive and optional root folder.
POST
https://api.zerodrive.dev
/
v1
/
sandboxes
Create Sandbox Token
curl --request POST \
--url https://api.zerodrive.dev/v1/sandboxes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"drive_id": "primary",
"root_folder": "Agents/Worker-01",
"access_mode": "read",
"ttl_seconds": 3600,
"label": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
drive_id: 'primary',
root_folder: 'Agents/Worker-01',
access_mode: 'read',
ttl_seconds: 3600,
label: '<string>'
})
};
fetch('https://api.zerodrive.dev/v1/sandboxes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/sandboxes"
payload = {
"drive_id": "primary",
"root_folder": "Agents/Worker-01",
"access_mode": "read",
"ttl_seconds": 3600,
"label": "<string>"
}
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
Sandbox token created (secret returned once)

