# Zapier — PartnerPortal.io Integrations
> zapier.com/apps/partnerportalio/integrations
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

## 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

## Identity
PartnerPortal.io is a self-serve PRM platform designed to help you launch and grow a custom partner program. Formalize and scale partnerships with ease.

- App slug: partnerportalio
- Operations published here: 15 (4 events, 6 functions, 4 queries, 1 search-or-write action)

## Authentication
Zapier connects to PartnerPortal.io 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 partnerportalio
```

## Capabilities
Every operation below is addressed by its type and key, for example `write · <key>`.

Zap editor: every operation below is also configurable without code at zapier.com/apps/partnerportalio/integrations — useful for a human in the loop, not usually for an agent calling the SDK or MCP directly.

### Getting Started
- **MCP**: connect PartnerPortal.io through mcp.zapier.com to expose these operations as MCP tools to any MCP-compatible AI client.
- **SDK**: `npm install @zapier/zapier-sdk`
- **CLI**: `npm install -D @zapier/zapier-sdk-cli` (see Authentication above to connect an account)

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

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

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

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

- **CLI**:

```bash
npx zapier-sdk run-action partnerportalio write LeadAddComment \
  --inputs '{}'
```

Paginating results: some calls return more than fits in one response — for example, listing PartnerPortal.io's actions, or a search action's matches. In TypeScript, iterate with `.pages()` or `.items()` rather than assuming a single page:

```typescript
for await (const action of zapier.listActions({ app: "partnerportalio" }).items()) {
  console.log(action.key);
}
```

From the shell, the same `--cursor`/`--max-items`/`--page-size` flags work on `list-actions` and directly on `run-action`. Add `--json` for output a script can parse instead of formatted text:

```bash
npx zapier-sdk list-actions partnerportalio --page-size 50 --max-items 200 --json
```

### Events (4)

Events fire when something happens in PartnerPortal.io. Use them to start a run.

#### Lead Created
Triggers when a lead is created.

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

#### Lead Updated
Triggers when a lead is updated.

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

#### Partner Created
Triggers when a partner is created (invited or registered).

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

#### Partner Updated
Triggers on any change to a partner, including when a partner is approved (status becomes active). It fires on every edit — not only the moment of approval — so add a Filter step on the status field to narrow to active partners. Best paired with an idempotent action (e.g. upserting a CRM record).

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

### Functions (6)

Functions change something in PartnerPortal.io.

#### Add Comment to Lead
Add a comment to a Lead in PartnerPortal.io. The partner and their agent are notified by email, just like a comment left in the portal.

- Type: write · Key: `LeadAddComment`
- Requires: leadId, message
- SDK: `runAction({ app: "partnerportalio", actionType: "write", action: "LeadAddComment" })`
- CLI: `npx zapier-sdk run-action partnerportalio write LeadAddComment`

#### Create Lead
Create a Lead in PartnerPortal.io

- Type: write · Key: `LeadCreate`
- Requires: nothing
- Optional: __fake
- SDK: `runAction({ app: "partnerportalio", actionType: "write", action: "LeadCreate" })`
- CLI: `npx zapier-sdk run-action partnerportalio write LeadCreate`

#### Update Lead
Update an existing Lead in PartnerPortal.io, including its portal phase.

- Type: write · Key: `LeadUpdate`
- Requires: leadId
- SDK: `runAction({ app: "partnerportalio", actionType: "write", action: "LeadUpdate" })`
- CLI: `npx zapier-sdk run-action partnerportalio write LeadUpdate`

#### Create Partner
Create a partner (organization + owner) in PartnerPortal.io. Behaves exactly like inviting a partner from the portal: the partner is activated and the owner is emailed a set-password invite.

- Type: write · Key: `PartnerCreate`
- Requires: companyName, domain, firstName, lastName, email
- Optional: phone, paypalEmail
- SDK: `runAction({ app: "partnerportalio", actionType: "write", action: "PartnerCreate" })`
- CLI: `npx zapier-sdk run-action partnerportalio write PartnerCreate`

#### Add Partner User
Add a user to an existing partner in PartnerPortal.io. Behaves exactly like adding a user from the partner's page in the portal: the user is activated and emailed a set-password invite.

- Type: write · Key: `PartnerUserCreate`
- Requires: partnerOrganizationId, firstName, lastName, email
- Optional: phone
- SDK: `runAction({ app: "partnerportalio", actionType: "write", action: "PartnerUserCreate" })`
- CLI: `npx zapier-sdk run-action partnerportalio write PartnerUserCreate`

#### Mark Lesson Complete
Mark an External lesson complete for a partner user in PartnerPortal.io, for example when they finish the matching course in your training tool. Only lessons of type External accept this. Course completion and any certification follow automatically.

- Type: write · Key: `ResourceCompletionCreate`
- Requires: lessonId, email
- SDK: `runAction({ app: "partnerportalio", actionType: "write", action: "ResourceCompletionCreate" })`
- CLI: `npx zapier-sdk run-action partnerportalio write ResourceCompletionCreate`

### Queries (4)

Queries read from PartnerPortal.io and return data. They change nothing.

#### Find Course
Find a course in PartnerPortal.io by name. Returns the course with its lessons in order, plus First External Lesson ID: map that into Mark Lesson Complete. For a course with several external lessons, copy each lesson's ID from the lessons list instead.

- Type: search · Key: `CourseFind`
- Requires: name
- SDK: `runAction({ app: "partnerportalio", actionType: "search", action: "CourseFind" })`
- CLI: `npx zapier-sdk run-action partnerportalio search CourseFind`

#### Find Lead
Find an existing Lead in PartnerPortal.io by email and/or a custom field value. Returns a single lead so you can update it or add a comment.

- Type: search · Key: `LeadFind`
- Requires: nothing
- Optional: email
- SDK: `runAction({ app: "partnerportalio", actionType: "search", action: "LeadFind" })`
- CLI: `npx zapier-sdk run-action partnerportalio search LeadFind`

#### Find Partner
Find an existing partner in PartnerPortal.io by domain and/or owner email. Returns a single partner — pair it with Create Partner (via a "only continue if" filter or a search-or-create step) to avoid creating duplicates.

- Type: search · Key: `PartnerFind`
- Requires: nothing
- Optional: domain, email
- SDK: `runAction({ app: "partnerportalio", actionType: "search", action: "PartnerFind" })`
- CLI: `npx zapier-sdk run-action partnerportalio search PartnerFind`

#### Find Partner User
Find an active person at a partner in PartnerPortal.io by Partner ID. Returns one person: the partner's longest-standing active owner, or its longest-standing active user if no owner is active. Pair it with a partner trigger to sync that person to your CRM. Use the User Type or Email filters to pick a different person.

- Type: search · Key: `PartnerUserFind`
- Requires: partnerOrganizationId
- Optional: type, email, includeInactive
- SDK: `runAction({ app: "partnerportalio", actionType: "search", action: "PartnerUserFind" })`
- CLI: `npx zapier-sdk run-action partnerportalio search PartnerUserFind`

### Search or Write Actions (1)

These operations search for a match first, and create one only if nothing is found.

#### Find or Create Partner
Find a partner, or create one if it does not already exist.

- Type: search_or_write · Key: `PartnerFind`
- Requires: domain, email, companyName, firstName, lastName
- Optional: phone, paypalEmail
- SDK: `runAction({ app: "partnerportalio", actionType: "search_or_write", action: "PartnerFind" })`
- CLI: `npx zapier-sdk run-action partnerportalio search_or_write PartnerFind`

## Popular integrations
- [PartnerPortal.io + Mercury Connect](zapier.com/apps/partnerportalio/integrations/mercury-connect.md)
- [PartnerPortal.io + Attio](zapier.com/apps/partnerportalio/integrations/attio.md)

## Links
- Full app page: zapier.com/apps/partnerportalio/integrations
- MCP: zapier.com/mcp/partnerportalio
- SDK: npmjs.com/package/@zapier/zapier-sdk