# Zapier — Referral Factory Integrations
> zapier.com/apps/referral-factory/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
The Easy Way To Build A Referral Program

- App slug: referral-factory
- Operations published here: 6 (2 events, 4 functions)

## Authentication
Zapier connects to Referral Factory 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 referral-factory
```

## 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/referral-factory/integrations — useful for a human in the loop, not usually for an agent calling the SDK or MCP directly.

### Getting Started
- **MCP**: connect Referral Factory 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 · new_user`.
- **SDK**:

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

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

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

- **CLI**:

```bash
npx zapier-sdk run-action referral-factory write new_user \
  --inputs '{}'
```

Paginating results: some calls return more than fits in one response — for example, listing Referral Factory'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: "referral-factory" }).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 referral-factory --page-size 50 --max-items 200 --json
```

### Events (2)

Events fire when something happens in Referral Factory. Use them to start a run.

#### New User
Triggers when a new user has been referred to your campaign. This is often called a new referred lead.

- Type: read · Key: `new_user`
- Requires: campaign_id, source
- SDK: `runAction({ app: "referral-factory", actionType: "read", action: "new_user" })`
- CLI: `npx zapier-sdk run-action referral-factory read new_user`

#### Reward Issued
Triggers when rewards issued via zapier.

- Type: read · Key: `reward_issued`
- Requires: nothing
- Optional: reward_id
- SDK: `runAction({ app: "referral-factory", actionType: "read", action: "reward_issued" })`
- CLI: `npx zapier-sdk run-action referral-factory read reward_issued`

### Functions (4)

Functions change something in Referral Factory.

#### Add New User
Automatically add new users to your referral campaign and send their unique referral link back.

- Type: write · Key: `new_user`
- Requires: campaign_id, first_name, email
- Optional: notify
- SDK: `runAction({ app: "referral-factory", actionType: "write", action: "new_user" })`
- CLI: `npx zapier-sdk run-action referral-factory write new_user`

#### Qualify User With Code
Triggers when a referred user successfully converts. This is when a referred lead becomes qualified.

- Type: write · Key: `qualify_user`
- Requires: code
- SDK: `runAction({ app: "referral-factory", actionType: "write", action: "qualify_user" })`
- CLI: `npx zapier-sdk run-action referral-factory write qualify_user`

#### Qualify User With Coupon
Triggers when a referred user successfully converts. Usually that happens when they used their coupons. This is when a referred lead becomes qualified.

- Type: write · Key: `qualify_user_with_coupon`
- Requires: coupon
- SDK: `runAction({ app: "referral-factory", actionType: "write", action: "qualify_user_with_coupon" })`
- CLI: `npx zapier-sdk run-action referral-factory write qualify_user_with_coupon`

#### Qualify User With Email
Triggers when a referred user successfully converts. This is when a referred lead becomes qualified.

- Type: write · Key: `qualify_user_with_email`
- Requires: campaign_id, email
- SDK: `runAction({ app: "referral-factory", actionType: "write", action: "qualify_user_with_email" })`
- CLI: `npx zapier-sdk run-action referral-factory write qualify_user_with_email`

## Popular integrations
- [Referral Factory + monday.com](zapier.com/apps/referral-factory/integrations/monday.md)
- [Referral Factory + ServiceTitan](zapier.com/apps/referral-factory/integrations/servicetitan.md)
- [Referral Factory + Telegram](zapier.com/apps/referral-factory/integrations/telegram.md)
- [Referral Factory + Less Annoying CRM](zapier.com/apps/referral-factory/integrations/less-annoying-crm.md)
- [Referral Factory + Square](zapier.com/apps/referral-factory/integrations/square.md)
- [Referral Factory + Quo](zapier.com/apps/referral-factory/integrations/quo.md)
- [Referral Factory + MarketSharp](zapier.com/apps/referral-factory/integrations/marketsharp.md)
- [Referral Factory + Acuity Scheduling](zapier.com/apps/referral-factory/integrations/acuity-scheduling.md)
- [Referral Factory + ThriveCart](zapier.com/apps/referral-factory/integrations/thrivecart.md)
- [Referral Factory + DripJobs](zapier.com/apps/referral-factory/integrations/dripjobs.md)
- [Referral Factory + ZeroBounce](zapier.com/apps/referral-factory/integrations/zerobounce.md)
- [Referral Factory + SQL Server](zapier.com/apps/referral-factory/integrations/sql-server.md)
- [Referral Factory + Simplero](zapier.com/apps/referral-factory/integrations/simplero.md)
- [Referral Factory + BHN Rewards](zapier.com/apps/referral-factory/integrations/bhnrewards.md)
- [Referral Factory + YouTube](zapier.com/apps/referral-factory/integrations/youtube.md)
- [Referral Factory + Stripe (Legacy)](zapier.com/apps/referral-factory/integrations/stripe-legacy.md)
- [Referral Factory + Human in the Loop](zapier.com/apps/referral-factory/integrations/human-in-the-loop.md)
- [Referral Factory + Agents](zapier.com/apps/referral-factory/integrations/agents.md)
- [Referral Factory + Podium](zapier.com/apps/referral-factory/integrations/podium.md)
- [Referral Factory + Markate](zapier.com/apps/referral-factory/integrations/markate.md)
- [Referral Factory + Sunsama](zapier.com/apps/referral-factory/integrations/sunsama.md)
- [Referral Factory + Workable](zapier.com/apps/referral-factory/integrations/workable.md)
- [Referral Factory + Databricks](zapier.com/apps/referral-factory/integrations/databricks.md)
- [Referral Factory + 8x8](zapier.com/apps/referral-factory/integrations/8x8.md)

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