Start Cloud Provider OAuth
curl --request POST \
--url https://api.zerodrive.dev/v1/clouds/{provider}/oauth/start \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"source": "cli"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({source: 'cli'})
};
fetch('https://api.zerodrive.dev/v1/clouds/{provider}/oauth/start', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/clouds/{provider}/oauth/start"
payload = { "source": "cli" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Start Cloud Provider OAuth
Start a 1-click OAuth connection flow for google_drive, dropbox, notion, or onedrive.
POST
https://api.zerodrive.dev
/
v1
/
clouds
/
{provider}
/
oauth
/
start
Start Cloud Provider OAuth
curl --request POST \
--url https://api.zerodrive.dev/v1/clouds/{provider}/oauth/start \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"source": "cli"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({source: 'cli'})
};
fetch('https://api.zerodrive.dev/v1/clouds/{provider}/oauth/start', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.zerodrive.dev/v1/clouds/{provider}/oauth/start"
payload = { "source": "cli" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Authorizations
Path Parameters
Response
Authorization URL to open in browser
The response is of type object.

