# Zoho WorkDrive — Pipedream Connect

> Online file management for teams

- API slug: `zoho_workdrive` (use in MCP headers and tool keys)
- Auth: OAuth (Pipedream-managed)
- Categories: File Storage
- Website: https://zoho.com/workdrive
- Managed OAuth scopes: `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`
- This page (HTML): https://pipedream.com/apps/zoho-workdrive
- Tools: 4 actions · 2 triggers

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: zoho_workdrive`

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "zoho_workdrive",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run Download File to Tmp Direcory:
const result = await mcp.callTool({
  name: "zoho_workdrive-download-file",
  arguments: {
    teamId: "Team ID",
    folderType: "Folder Type",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## API proxy

For a Zoho WorkDrive endpoint with no pre-built tool, the proxy forwards your request with the connected user's credentials attached.

```bash
# The path segment is the target URL, URL-safe base64 encoded:
# https://api.example.com/v1/me

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcGkuZXhhbXBsZS5jb20vdjEvbWU?external_user_id={external_user_id}&account_id=apn_xxxxxxx" \
  -H "Authorization: Bearer {access_token}" \
  -H "x-pd-environment: production"
```

Docs: [API proxy guide](https://pipedream.com/docs/connect/api-proxy.md)

## SDK

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "zoho_workdrive-download-file",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    zoho_workdrive: { authProvisionId: "apn_xxxxxxx" },
    teamId: "Team ID",
    folderType: "Folder Type",
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (4)

### `zoho_workdrive-download-file` — Download File to Tmp Direcory (Write)

Download a file to the /tmp directory. See the documentation

Full schema: https://pipedream.com/apps/zoho-workdrive/actions/download-file.md

### `zoho_workdrive-list-folder-type-options` — List Folder Type Options (Read-only)

Retrieves available options for the Folder Type field.

Full schema: https://pipedream.com/apps/zoho-workdrive/actions/list-folder-type-options.md

### `zoho_workdrive-list-team-id-options` — List Team ID Options (Read-only)

Retrieves available options for the Team ID field.

Full schema: https://pipedream.com/apps/zoho-workdrive/actions/list-team-id-options.md

### `zoho_workdrive-upload-file` — Upload File (Write)

Upload a new file to your WorkDrive account. See the documentation

Full schema: https://pipedream.com/apps/zoho-workdrive/actions/upload-file.md

## Triggers (2)

### `zoho_workdrive-new-file-in-folder` — New File In Folder (Polling)

Emit new event when a new file is created in a specific folder.

Full schema: https://pipedream.com/apps/zoho-workdrive/triggers/new-file-in-folder.md

### `zoho_workdrive-new-folder` — New Folder (Polling)

Emit new event when a new folder is created in a specific folder.

Full schema: https://pipedream.com/apps/zoho-workdrive/triggers/new-folder.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
