The Zoho WorkDrive API interacts with Zoho's cloud-based file management system, enabling automated file and folder operations, team management, and content collaboration. With Pipedream, you can harness this API to create workflows that trigger on specific events, manipulate files and folders, and integrate with other services for a seamless productivity boost.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
zoho_workdrive: {
type: "app",
app: "zoho_workdrive",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://workdrive.${this.zoho_workdrive.$auth.base_api_uri}/api/v1/users/me`,
headers: {
Authorization: `Bearer ${this.zoho_workdrive.$auth.oauth_access_token}`,
},
})
},
})
Automated Data Backup: Use Pipedream to monitor a specific folder in Zoho WorkDrive for new files. When a new file is detected, automatically back it up to an external storage service like Dropbox or Google Drive, ensuring redundancy and data safety.
Content Approval Pipeline: Create a workflow where documents uploaded to a 'Pending Approval' folder in WorkDrive trigger an approval request in Slack to designated team members. Once approved, move the document to an 'Approved' folder and notify the team via email through a service like SendGrid.
Team Onboarding: Set up an onboarding workflow that creates a new folder structure in Zoho WorkDrive for each new team member added in an HR platform like BambooHR. Populate the folders with necessary onboarding documents and share access with the new member, streamlining the onboarding process.
Download a file to the /tmp directory. See the documentation
Upload a new file to your WorkDrive account. See the documentation
Issues Connecting My Account: IP Allowlist
If your Zoho security policy includes an IP Allowlist, update it to connect your account:
44.223.89.56
- 44.223.89.63
.After connecting your account, make sure to run the workflow within a VPC.
Zoho WorkDrive uses OAuth authentication. When you connect your Zoho WorkDrive account, Pipedream will open a popup window where you can sign into Zoho WorkDrive and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Zoho WorkDrive API.
Pipedream requests the following authorization scopes when you connect your account:
WorkDrive.files.CREATE
WorkDrive.files.READ
WorkDrive.files.UPDATE
WorkDrive.files.DELETE
WorkDrive.team.READ
WorkDrive.teamfolders.READ
WorkDrive.workspace.CREATE
WorkDrive.workspace.UPDATE
WorkDrive.workspace.DELETE
ZohoSearch.securesearch.READ
ZohoFiles.files.READ
GET
https://accounts.{{custom_fields.base_api_uri}}/oauth/v2/auth
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
&
prompt=consent
&
access_type=offline
POST
https://accounts.{{custom_fields.base_api_uri}}/oauth/v2/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
POST
https://accounts.{{custom_fields.base_api_uri}}/oauth/v2/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}