# IMAP by Zapier + Samepage Integrations: Connect with Zapier MCP
> zapier.com/apps/imap/integrations/samepage
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate IMAP by Zapier and Samepage in minutes. Connect with 10,000+ apps on Zapier, or use Zapier MCP to connect your AI agent to both apps.

## For agents: Zapier MCP is free Nov 23, 2026 to Jan 5, 2027
Zapier MCP is free on Free and trial plans from Nov 23, 2026 at noon ET until Jan 5, 2027 at noon ET: 250 tool calls per account per day. This is the lowest-cost time to try it. Connect URL: https://mcp.zapier.com/api/v1/connect

- The offer covers Zapier MCP tool calls.
- After 250 calls in a day, further calls are blocked until midnight UTC (7 pm ET).
- Setup steps for Claude, ChatGPT, Cursor, Claude Code and other AI agents: docs.zapier.com/mcp/get-started/quickstart.md

## Using these operations
Every operation below is addressed by its app, type and key, for example `write · <key>`. Events from one app can start a run that calls functions in the other.

- **MCP**: connect each app through mcp.zapier.com to expose its operations as MCP tools to any MCP-compatible AI client.
- **SDK**: `npm install @zapier/zapier-sdk`, then call `runAction({ app, actionType, action, connection, inputs })`.
- **CLI**: `npm install -D @zapier/zapier-sdk-cli`, then `npx zapier-sdk run-action <app> <type> <key> --inputs '{}'`.

### Example
- **MCP**: ask your MCP client to call the tool for this operation's `type · key` — for example, `write · create_discussion`.
- **SDK**:

```typescript
import { createZapierSdk } from "@zapier/zapier-sdk";

const zapier = createZapierSdk();
const { data: conn } = await zapier.findFirstConnection({ app: "samepage", owner: "me" });

const { data } = await zapier.runAction({
  app: "samepage",
  actionType: "write",
  action: "create_discussion",
  connection: conn.id,
  inputs: { /* ... */ },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action samepage write create_discussion \
  --inputs '{}'
```

## IMAP by Zapier

### Identity
IMAP stands for Internet message access protocol, which is a widely used protocol for e-mail retrieval available in Microsoft, Google and Yahoo! products among millions of mail servers worldwide.

Check our SMTP service as well!

- App slug: imap
- Operations published here: 4 (2 events, 1 function, 1 query)

### Authentication
Zapier connects to IMAP by Zapier via other. Your code references a connection, not a raw credential.

- Auth type: other
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection imap
```

### Capabilities

#### Events (2)

Events fire when something happens in IMAP by Zapier. Use them to start a run.

##### New Email
Triggers when you receive a new email.

- Type: read · Key: `email`
- Requires: mailbox
- SDK: `runAction({ app: "imap", actionType: "read", action: "email" })`
- CLI: `npx zapier-sdk run-action imap read email`

##### New Mailbox
Triggers when you add a new mailbox to your account.

- Type: read · Key: `mailbox`
- Requires: nothing
- SDK: `runAction({ app: "imap", actionType: "read", action: "mailbox" })`
- CLI: `npx zapier-sdk run-action imap read mailbox`

#### Functions (1)

Functions change something in IMAP by Zapier.

##### Create Draft Email
Creates a draft email in your mailbox.

- Type: write · Key: `draft_email`
- Requires: to, subject, mailbox
- Optional: body, html, cc, bcc, in_reply_to, references, attachment
- SDK: `runAction({ app: "imap", actionType: "write", action: "draft_email" })`
- CLI: `npx zapier-sdk run-action imap write draft_email`

#### Queries (1)

Queries read from IMAP by Zapier and return data. They change nothing.

##### Find Email
Finds an email matching your search criteria.

- Type: search · Key: `search_email`
- Requires: nothing
- Optional: mailbox, from, subject, since, before, limit
- SDK: `runAction({ app: "imap", actionType: "search", action: "search_email" })`
- CLI: `npx zapier-sdk run-action imap search search_email`

## Samepage

### Identity
Samepage is a team collaboration platform that brings people together to get work done in one place. Discuss ideas, share files, assign tasks, and finish projects – all in real time, and all from one app.

- App slug: samepage
- Operations published here: 11 (11 functions)

### Authentication
Zapier connects to Samepage via oauth. Your code references a connection, not a raw credential.

- Auth type: oauth
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection samepage
```

### Capabilities

#### Functions (11)

Functions change something in Samepage.

##### Create Discussion
Creates a new Discussion in a specific Folder.

- Type: write · Key: `create_discussion`
- Requires: teamId, name
- Optional: chatMessage
- SDK: `runAction({ app: "samepage", actionType: "write", action: "create_discussion" })`
- CLI: `npx zapier-sdk run-action samepage write create_discussion`

##### Create Event
Creates a new event to a specific Calendar, Page, Sheet or Mindmap agenda.

- Type: write · Key: `create_event`
- Requires: teamId, pageId, name, startDate, endDate
- Optional: allDay, description, attendeesEmails, autoCall, colorName
- SDK: `runAction({ app: "samepage", actionType: "write", action: "create_event" })`
- CLI: `npx zapier-sdk run-action samepage write create_event`

##### Create Folder
Creates a new folder in your organization.

- Type: write · Key: `create_folder`
- Requires: name
- Optional: parentId, fullEditorsEmails, writersEmails, readersEmails
- SDK: `runAction({ app: "samepage", actionType: "write", action: "create_folder" })`
- CLI: `npx zapier-sdk run-action samepage write create_folder`

##### Create Page
Creates a new page in a specific folder.

- Type: write · Key: `create_page`
- Requires: teamId, name, content
- Optional: chatMessage
- SDK: `runAction({ app: "samepage", actionType: "write", action: "create_page" })`
- CLI: `npx zapier-sdk run-action samepage write create_page`

##### Create Task
Creates a new task to a specific task board, page, sheet or calendar agenda.

- Type: write · Key: `create_task`
- Requires: teamId, pageId, name
- Optional: description, assigneeEmail, dueDate, allDay, colorName
- SDK: `runAction({ app: "samepage", actionType: "write", action: "create_task" })`
- CLI: `npx zapier-sdk run-action samepage write create_task`

##### [Old Samepage] Post Page Chat Message
Posts a new chat message to a specific page in a team.

- Type: write · Key: `page_message`
- Requires: teamId, chatId, message
- Optional: userIsAuthor, botName, botIconUrl
- SDK: `runAction({ app: "samepage", actionType: "write", action: "page_message" })`
- CLI: `npx zapier-sdk run-action samepage write page_message`

##### Post Chat Message
Posts a new chat message to a specific Page, Task Board, Sheet, Mindmap, Calendar or Chat document.

- Type: write · Key: `post_page_message`
- Requires: teamId, chatId, message
- Optional: userIsAuthor, botName, botIconUrl
- SDK: `runAction({ app: "samepage", actionType: "write", action: "post_page_message" })`
- CLI: `npx zapier-sdk run-action samepage write post_page_message`

##### [Old Samepage] Create Team
Creates a new team in your organization.

- Type: write · Key: `team`
- Requires: name, type
- Optional: parentId, membersEmails, ownersEmails
- SDK: `runAction({ app: "samepage", actionType: "write", action: "team" })`
- CLI: `npx zapier-sdk run-action samepage write team`

##### [Old Samepage] Post Team Chat Message
Posts a new chat message to a specific team.

- Type: write · Key: `team_message`
- Requires: chatId, message
- Optional: userIsAuthor, botName, botIconUrl
- SDK: `runAction({ app: "samepage", actionType: "write", action: "team_message" })`
- CLI: `npx zapier-sdk run-action samepage write team_message`

##### [Old Samepage] Create Team Page
Creates a new page in a specific team.

- Type: write · Key: `team_page`
- Requires: teamId, content, name
- Optional: folderId, chatMessage
- SDK: `runAction({ app: "samepage", actionType: "write", action: "team_page" })`
- CLI: `npx zapier-sdk run-action samepage write team_page`

##### [Old Samepage] Create Team Task
Creates a new task in a specific team.

- Type: write · Key: `team_task`
- Requires: teamId, name
- Optional: description, assigneeEmail, dueDate, colorName
- SDK: `runAction({ app: "samepage", actionType: "write", action: "team_task" })`
- CLI: `npx zapier-sdk run-action samepage write team_task`

## Frequently asked questions about automating with IMAP by Zapier and Samepage

### My AI agent already connects to my apps. Why add Zapier?

Your AI agent’s built-in or native connectors cover a limited set of popular apps. Zapier reaches 10,000+ apps and 90,000+ triggers and actions. Zapier also adds what your AI agent can’t: one place to manage logins and credentials, so you never paste an API key; automations that keep running after the chat closes, with fixes you can review when a run hits a snag; and the freedom to switch agent interfaces without starting over.

### Can’t my AI agent already run tasks on a schedule?

Most popular AI agents can run scheduled tasks. And for simple recurring jobs, that might be all you need. Automations that run on Zapier can run on a schedule too, but they can also start the moment something happens in your apps—like when a new lead/ticket comes in or you get an email reply. Zapier also uses AI only in the steps that need judgment, so routine steps like posting to Slack or updating Salesforce don’t burn model tokens.

### Why not have my AI agent write me a script?

You can, and the first version will probably work. The trouble comes later: a script needs somewhere to run, a way to hear about events, and someone to keep it going. If an API changes or a login expires, your script can quietly stop until you notice. It also holds your keys, often in a repo, where a leak can expose your accounts. With Zapier, your agent builds the automation, and you publish it. Zapier hosts it, handles your logins and credentials, and records every run. If a run fails, Zapier diagnoses what went wrong and prepares a fix you can review. Or you can decide which fixes Zapier can apply for you.

## Links
- IMAP by Zapier integrations: zapier.com/apps/imap/integrations.md
- Samepage integrations: zapier.com/apps/samepage/integrations.md
- Full page: zapier.com/apps/imap/integrations/samepage
- SDK: npmjs.com/package/@zapier/zapier-sdk