# Zapier — Wexlyn Integrations
> zapier.com/apps/wexlyn/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
Wexlyn is an ad tracking and revenue attribution tool. Send sales and leads to Wexlyn to see which ads really made money.

- App slug: wexlyn
- Operations published here: 10 (4 events, 4 functions, 1 query, 1 search-or-write action)

## Authentication
Zapier connects to Wexlyn 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 wexlyn
```

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

### Getting Started
- **MCP**: connect Wexlyn 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 · create_lead`.
- **SDK**:

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

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

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

- **CLI**:

```bash
npx zapier-sdk run-action wexlyn write create_lead \
  --inputs '{}'
```

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

### Events (4)

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

#### Lead Stage Changed
Triggers when a lead moves to a new stage in Wexlyn, from a call outcome, a sale, the CRM or a Zap.

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

#### New Call Booked
Triggers when a call is booked in Wexlyn, from Calendly, GoHighLevel, iClosed, the API or a Zap.

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

#### New Lead
Triggers when a new lead appears in Wexlyn: an opt-in, a booking or a first sale from someone new.

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

#### New Sale
Triggers when Wexlyn records a sale, from any connected payment tool or the API.

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

### Functions (4)

Functions change something in Wexlyn.

#### Create or Update Lead
Creates a lead in Wexlyn, or updates the existing one with the same email or phone.

- Type: write · Key: `create_lead`
- Requires: email
- Optional: first_name, last_name, phone, tags, stage, external_id, utm_source, utm_medium, utm_campaign, utm_content, utm_term, fbclid, gclid, ttclid, msclkid, ip, user_agent
- SDK: `runAction({ app: "wexlyn", actionType: "write", action: "create_lead" })`
- CLI: `npx zapier-sdk run-action wexlyn write create_lead`

#### Log Call
Records a booked, qualified, showed or closed call against the lead, so call funnels attribute to the ad.

- Type: write · Key: `log_call`
- Requires: email, status
- Optional: first_name, last_name, phone, call_type, scheduled_at, amount, closer, outcome, call_id, notes
- SDK: `runAction({ app: "wexlyn", actionType: "write", action: "log_call" })`
- CLI: `npx zapier-sdk run-action wexlyn write log_call`

#### Send Sale / Conversion
Records a sale in Wexlyn and attributes it to the ad, campaign or link that brought the customer.

- Type: write · Key: `send_sale`
- Requires: email, amount
- Optional: first_name, last_name, phone, currency, product_name, order_id, occurred_at, status, utm_source, utm_medium, utm_campaign, utm_content, utm_term, fbclid, gclid, ttclid, msclkid, ip, user_agent
- SDK: `runAction({ app: "wexlyn", actionType: "write", action: "send_sale" })`
- CLI: `npx zapier-sdk run-action wexlyn write send_sale`

#### Update Lead Stage
Moves a lead to a stage (Qualified, Booked, Closed Won…). Creates the lead first if Wexlyn has never seen them.

- Type: write · Key: `update_lead_stage`
- Requires: stage
- Optional: email, phone, external_id, occurred_at, tags, first_name, last_name, utm_source, utm_medium, utm_campaign, utm_content, utm_term, fbclid, gclid, ttclid, msclkid, ip, user_agent
- SDK: `runAction({ app: "wexlyn", actionType: "write", action: "update_lead_stage" })`
- CLI: `npx zapier-sdk run-action wexlyn write update_lead_stage`

### Queries (1)

Queries read from Wexlyn and return data. They change nothing.

#### Find Lead
Finds a lead by email (or phone), with their stage, tags and attributed sources.

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

### Search or Write Actions (1)

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

#### Find or Create Lead
Finds the lead by email, or creates it when nothing matches.

- Type: search_or_write · Key: `find_lead`
- Requires: email
- Optional: phone, first_name, last_name, tags, stage, external_id, utm_source, utm_medium, utm_campaign, utm_content, utm_term, fbclid, gclid, ttclid, msclkid, ip, user_agent
- SDK: `runAction({ app: "wexlyn", actionType: "search_or_write", action: "find_lead" })`
- CLI: `npx zapier-sdk run-action wexlyn search_or_write find_lead`

## Popular integrations
- [Wexlyn + Airtable](zapier.com/apps/wexlyn/integrations/airtable.md)
- [Wexlyn + ActiveCampaign](zapier.com/apps/wexlyn/integrations/activecampaign.md)
- [Wexlyn + Xero](zapier.com/apps/wexlyn/integrations/xero.md)

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