Add Client to White-Label Brain
curl --request POST \
--url https://api.zerodrive.dev/v1/brains/{slug}/clients \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"slug": "northstar",
"name": "Northstar",
"allow_write": true
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({slug: 'northstar', name: 'Northstar', allow_write: true})
};
fetch('https://api.zerodrive.dev/v1/brains/{slug}/clients', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/brains/{slug}/clients"
payload = {
"slug": "northstar",
"name": "Northstar",
"allow_write": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Add Client to White-Label Brain
Provision an isolated client workspace and mint a one-time access key + setup kit.
POST
https://api.zerodrive.dev
/
v1
/
brains
/
{slug}
/
clients
Add Client to White-Label Brain
curl --request POST \
--url https://api.zerodrive.dev/v1/brains/{slug}/clients \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"slug": "northstar",
"name": "Northstar",
"allow_write": true
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({slug: 'northstar', name: 'Northstar', allow_write: true})
};
fetch('https://api.zerodrive.dev/v1/brains/{slug}/clients', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/brains/{slug}/clients"
payload = {
"slug": "northstar",
"name": "Northstar",
"allow_write": True
}
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
Client created with one-time access key

