# Zoho Calendar + Zoho Mail — Pipedream Connect

> Connect a user's Zoho Calendar and Zoho Mail accounts and expose tools for both apps directly in your product or your agent.

- Apps: Zoho Calendar (`zoho_calendar`) + Zoho Mail (`zoho_mail`)
- This page (HTML): https://pipedream.com/apps/zoho-calendar/integrations/zoho-mail
- One `external_user_id` owns both connected accounts, and each account stays independently revocable.

## One session, both toolsets (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_calendar,zoho_mail`
- `x-pd-app-slug` takes a comma-separated list, so `zoho_calendar,zoho_mail` is one session on one transport. Both toolsets arrive from a single `listTools()`, and a tool is called exactly as it would be in a single-app session.

```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_calendar,zoho_mail",
      },
    },
  },
)

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

const { tools } = await mcp.listTools()

// One list, both toolsets: Zoho Calendar and Zoho Mail tools arrive
// together, each keyed by its own app's slug.

// e.g. run Create event using Smart Add:
const result = await mcp.callTool({
  name: "zoho_calendar-create-event-smart-add",
  arguments: {
    eventDesc: "Event Description",
  },
})
```

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

## Both apps from your backend

```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 externalUserId = "{external_user_id}" // any stable ID for this user in your system

const [zohoCalendarTools, zohoMailTools] =
  await Promise.all([
    pd.components.list({ app: "zoho_calendar" }),
    pd.components.list({ app: "zoho_mail" }),
  ])

// One external user owns both connected accounts, so either app's tools
// run on their behalf with the same externalUserId.
```

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

## Zoho Calendar

- API slug: `zoho_calendar` (use in MCP headers and tool keys)
- Auth: OAuth (Pipedream-managed)
- Categories: Productivity
- Website: https://www.zoho.com/calendar/
- Managed OAuth scopes: `ZohoCalendar.calendar.ALL` · `ZohoCalendar.event.READ` · `ZohoCalendar.event.UPDATE` · `ZohoCalendar.event.CREATE`
- App page (HTML): https://pipedream.com/apps/zoho-calendar
- Tools: 4 actions · 2 triggers

Full tool list, API proxy, and SDK quickstart: https://pipedream.com/apps/zoho-calendar.md

### Actions (4)

- [Create event using Smart Add](https://pipedream.com/apps/zoho-calendar/actions/create-event-smart-add.md) — `zoho_calendar-create-event-smart-add`
- [Create or Update Event](https://pipedream.com/apps/zoho-calendar/actions/create-or-update-event.md) — `zoho_calendar-create-or-update-event`
- [List Calendar ID Options](https://pipedream.com/apps/zoho-calendar/actions/list-calendar-id-options.md) — `zoho_calendar-list-calendar-id-options`
- [List Events](https://pipedream.com/apps/zoho-calendar/actions/list-events.md) — `zoho_calendar-list-events`

### Triggers (2)

- [New Event Created](https://pipedream.com/apps/zoho-calendar/triggers/new-event-created.md) — `zoho_calendar-new-event-created`
- [New Updated Event](https://pipedream.com/apps/zoho-calendar/triggers/event-updated.md) — `zoho_calendar-event-updated`

## Zoho Mail

- API slug: `zoho_mail` (use in MCP headers and tool keys)
- Auth: OAuth (Pipedream-managed)
- Categories: Communication
- Website: http://mail.zoho.com/
- Managed OAuth scopes: `ZohoMail.accounts.read` · `ZohoMail.accounts.update` · `ZohoMail.organization.subscriptions.read` · `ZohoMail.organization.subscriptions.update` · `ZohoMail.organization.spam.read` · `ZohoMail.organization.accounts.read` · `ZohoMail.organization.accounts.create` · `ZohoMail.organization.accounts.update` · `ZohoMail.messages.create` · `ZohoMail.messages.read` · `ZohoMail.messages.update` · `ZohoMail.messages.delete` · `ZohoMail.attachments.create` · `ZohoMail.attachments.read` · `ZohoMail.attachments.update` · `ZohoMail.attachments.delete` · `ZohoMail.organization.groups.create` · `ZohoMail.organization.groups.read` · `ZohoMail.organization.groups.update` · `ZohoMail.organization.groups.delete` · `ZohoMail.tags.create` · `ZohoMail.tags.read` · `ZohoMail.tags.update` · `ZohoMail.tags.delete` · `ZohoMail.folders.create` · `ZohoMail.folders.read` · `ZohoMail.folders.update` · `ZohoMail.folders.delete` · `ZohoMail.organization.domains.create` · `ZohoMail.organization.domains.read` · `ZohoMail.organization.domains.update` · `ZohoMail.organization.domains.delete` · `ZohoMail.tasks.create` · `ZohoMail.tasks.read` · `ZohoMail.notes.all`
- App page (HTML): https://pipedream.com/apps/zoho-mail
- Tools: 3 actions · 1 trigger

Full tool list, API proxy, and SDK quickstart: https://pipedream.com/apps/zoho-mail.md

### Actions (3)

- [Create Task](https://pipedream.com/apps/zoho-mail/actions/create-task.md) — `zoho_mail-create-task`
- [List Account ID Options](https://pipedream.com/apps/zoho-mail/actions/list-account-options.md) — `zoho_mail-list-account-options`
- [Send Email](https://pipedream.com/apps/zoho-mail/actions/send-email.md) — `zoho_mail-send-email`

### Triggers (1)

- [New Email](https://pipedream.com/apps/zoho-mail/triggers/new-email.md) — `zoho_mail-new-email`

---

- Zoho Calendar: https://pipedream.com/apps/zoho-calendar.md · Zoho Mail: https://pipedream.com/apps/zoho-mail.md
- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
