# Keygen + Whop Integrations: Connect with Zapier MCP
> zapier.com/apps/keygen/integrations/whop
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate Keygen and Whop 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 · add_free_days_to_membership`.
- **SDK**:

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

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

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

- **CLI**:

```bash
npx zapier-sdk run-action whop write add_free_days_to_membership \
  --inputs '{}'
```

## Keygen

### Identity
Keygen is a key generation service that makes it easy for businesses to license and distribute their software.

- App slug: keygen
- Operations published here: 35 (13 events, 16 functions, 6 queries)

### Authentication
Zapier connects to Keygen 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 keygen
```

### Capabilities

#### Events (13)

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

##### License Created
Triggers when a new license is created.

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

##### License Deleted
Triggers when a license is deleted.

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

##### License Expired
Triggers when a license has expired.

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

##### License Expiring
Triggers when a license is expiring soon.

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

##### License Renewed
Triggers when a license is renewed.

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

##### License Used
Triggers when a license's usage is incremented.

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

##### Machine Activated
Triggers when a machine is activated.

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

##### Machine Deactivated
Triggers when a machine is deactivated.

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

##### New Event
Triggers when a new event like a license validation, an activation, or an expiration occurs.

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

##### Password Reset
Triggers when a user requests a password reset.

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

##### Release Created
Triggers when a new release is created.

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

##### Release Published
Triggers when a release is published.

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

##### User Created
Triggers when a new user is created.

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

#### Functions (16)

Functions change something in Keygen.

##### Activate Machine
Activates a new machine for a license using a known fingerprint.

- Type: write · Key: `activateMachine`
- Requires: licenseId, fingerprint
- Optional: name, metadata
- SDK: `runAction({ app: "keygen", actionType: "write", action: "activateMachine" })`
- CLI: `npx zapier-sdk run-action keygen write activateMachine`

##### Checkout License
Checks out a license file.

- Type: write · Key: `checkoutLicense`
- Requires: id
- Optional: ttl, encrypt
- SDK: `runAction({ app: "keygen", actionType: "write", action: "checkoutLicense" })`
- CLI: `npx zapier-sdk run-action keygen write checkoutLicense`

##### Checkout Machine
Checks out a machine file.

- Type: write · Key: `checkoutMachine`
- Requires: id
- Optional: ttl, encrypt
- SDK: `runAction({ app: "keygen", actionType: "write", action: "checkoutMachine" })`
- CLI: `npx zapier-sdk run-action keygen write checkoutMachine`

##### Create License
Creates a new license according to a policy.

- Type: write · Key: `createLicense`
- Requires: policyId
- Optional: userId, name, key, expiry, maxMachines, metadata
- SDK: `runAction({ app: "keygen", actionType: "write", action: "createLicense" })`
- CLI: `npx zapier-sdk run-action keygen write createLicense`

##### Create Token
Creates a new API token for a license.

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

##### Create User
Creates a new user.

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

##### Download Artifact
Creates a download link for a release artifact.

- Type: write · Key: `downloadArtifact`
- Requires: releaseId, id
- SDK: `runAction({ app: "keygen", actionType: "write", action: "downloadArtifact" })`
- CLI: `npx zapier-sdk run-action keygen write downloadArtifact`

##### Reinstate License
Reinstates a suspended license.

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

##### Renew License
Renews a license by extending its expiration date.

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

##### Reset License Usage
Resets a license's usage counter.

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

##### Reset Password
Requests a password reset for an email.

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

##### Suspend License
Suspends a license.

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

##### Transfer License
Transfer an existing license to a different policy.

- Type: write · Key: `transferLicense`
- Requires: id, policyId
- SDK: `runAction({ app: "keygen", actionType: "write", action: "transferLicense" })`
- CLI: `npx zapier-sdk run-action keygen write transferLicense`

##### Update License
Updates a license.

- Type: write · Key: `updateLicense`
- Requires: id
- Optional: name, expiry, maxMachines, metadata
- SDK: `runAction({ app: "keygen", actionType: "write", action: "updateLicense" })`
- CLI: `npx zapier-sdk run-action keygen write updateLicense`

##### Update Machine
Updates a machine.

- Type: write · Key: `updateMachine`
- Requires: id
- Optional: name, metadata
- SDK: `runAction({ app: "keygen", actionType: "write", action: "updateMachine" })`
- CLI: `npx zapier-sdk run-action keygen write updateMachine`

##### Update User
Updates a user.

- Type: write · Key: `updateUser`
- Requires: id
- Optional: metadata
- SDK: `runAction({ app: "keygen", actionType: "write", action: "updateUser" })`
- CLI: `npx zapier-sdk run-action keygen write updateUser`

#### Queries (6)

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

##### Find Artifact
Finds an existing release artifact by its filename or Keygen ID.

- Type: search · Key: `artifact`
- Requires: nothing
- Optional: releaseId, id
- SDK: `runAction({ app: "keygen", actionType: "search", action: "artifact" })`
- CLI: `npx zapier-sdk run-action keygen search artifact`

##### List Entitlements
Lists a license's entitlements by license key or license ID.

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

##### Find License
Finds an existing license by its license key or Keygen ID.

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

##### Find Machine
Finds an existing machine by its machine fingerprint or Keygen ID.

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

##### Find Release
Finds an existing release by its version, tag or Keygen ID.

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

##### Find User
Finds an existing user by their email address or Keygen ID.

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

## Whop

### Identity
Whop is a platform that let's you build businesses.

- App slug: whop
- Operations published here: 48 (16 events, 20 functions, 12 queries)

### Authentication
Zapier connects to Whop 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 whop
```

### Capabilities

#### Events (16)

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

##### New Dispute Alert
Triggers when an early warning dispute alert is received.

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

##### New Dispute
Triggers when a customer creates a dispute/chargeback.

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

##### Dispute Updated
Triggers when a dispute status changes.

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

##### Waitlist Approved
Triggers when a waitlist entry is approved.

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

##### New Waitlist
Triggers when a new waitlist entry is created.

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

##### New Invoice
Triggers when a new invoice is created.

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

##### Invoice Paid
Triggers when a invoice is paid.

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

##### Invoice Past Due
Triggers when a invoice becomes past due.

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

##### New Member Joined
Triggers when a membership becomes active.

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

##### Membership Scheduled to Cancel
Triggers when a membership is scheduled to cancel at the end of the billing period.

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

##### Membership Canceled
Triggers when a membership is canceled, expired, or past due.

- Type: read · Key: `membership_deactivated`
- Requires: nothing
- Optional: status, product_id
- SDK: `runAction({ app: "whop", actionType: "read", action: "membership_deactivated" })`
- CLI: `npx zapier-sdk run-action whop read membership_deactivated`

##### Failed Payment
Triggers when a payment attempt fails.

- Type: read · Key: `payment_failed`
- Requires: nothing
- Optional: payment_type, payment_method, product_id
- SDK: `runAction({ app: "whop", actionType: "read", action: "payment_failed" })`
- CLI: `npx zapier-sdk run-action whop read payment_failed`

##### Payment Pending
Triggers when a payment is initiated but not yet completed (e.g., ACH/bank transfer processing, crypto confirmation pending).

- Type: read · Key: `payment_pending`
- Requires: nothing
- Optional: payment_type, payment_method, product_id
- SDK: `runAction({ app: "whop", actionType: "read", action: "payment_pending" })`
- CLI: `npx zapier-sdk run-action whop read payment_pending`

##### New Payment
Triggers when a payment is successfully completed.

- Type: read · Key: `payment_succeeded`
- Requires: nothing
- Optional: payment_type, payment_method, product_id
- SDK: `runAction({ app: "whop", actionType: "read", action: "payment_succeeded" })`
- CLI: `npx zapier-sdk run-action whop read payment_succeeded`

##### Payment Refunded
Triggers when a payment is refunded (full or partial).

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

##### Payment Method Saved
Triggers when a customer successfully saves a payment method via a Setup Mode Session.

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

#### Functions (20)

Functions change something in Whop.

##### Add Free Days to Membership
Extend a membership by adding free days to the renewal or expiration date. Useful for promotions, rewards, or customer support adjustments.

- Type: write · Key: `add_free_days_to_membership`
- Requires: id, days
- SDK: `runAction({ app: "whop", actionType: "write", action: "add_free_days_to_membership" })`
- CLI: `npx zapier-sdk run-action whop write add_free_days_to_membership`

##### Approve Waitlist
Approve a waitlist application.

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

##### Archive Affiliate
Archive an affiliate to stop them from earning commissions on new referrals.

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

##### Cancel Membership
Cancel an active membership so it will no longer renew and access can be revoked.

- Type: write · Key: `cancel_membership`
- Requires: id, cancellation_mode
- SDK: `runAction({ app: "whop", actionType: "write", action: "cancel_membership" })`
- CLI: `npx zapier-sdk run-action whop write cancel_membership`

##### Find or Create Affiliate
Find an existing affiliate or create a new one from a Whop username, email, or user ID.

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

##### Create Checkout Session
Create a checkout session for a plan and get a unique checkout link. Optionally embed metadata (like an external user ID) that is returned in the payment webhook when the customer completes their purchase.

- Type: write · Key: `create_checkout_configuration`
- Requires: nothing
- Optional: plan_id, metadata, redirect_url, affiliate_code, currency, allowed_payment_methods
- SDK: `runAction({ app: "whop", actionType: "write", action: "create_checkout_configuration" })`
- CLI: `npx zapier-sdk run-action whop write create_checkout_configuration`

##### Create Invoice
Creates an invoice for any recipient, including existing members or external customers.

- Type: write · Key: `create_invoice`
- Requires: collection_method, due_date, product_setup, plan_initial_price
- Optional: member_id, member_email, customer_name, charge_buyer_fee
- SDK: `runAction({ app: "whop", actionType: "write", action: "create_invoice" })`
- CLI: `npx zapier-sdk run-action whop write create_invoice`

##### Create Lead
Add a prospect to track interest before they purchase. Leads can be company-wide or product-specific.

- Type: write · Key: `create_lead`
- Requires: nothing
- Optional: user_id, product_id, referrer, metadata
- SDK: `runAction({ app: "whop", actionType: "write", action: "create_lead" })`
- CLI: `npx zapier-sdk run-action whop write create_lead`

##### Create Payment
Create a new payment by charging a member's saved payment method.

- Type: write · Key: `create_payment`
- Requires: member_id, plan_mode
- Optional: metadata
- SDK: `runAction({ app: "whop", actionType: "write", action: "create_payment" })`
- CLI: `npx zapier-sdk run-action whop write create_payment`

##### Create Plan
Create a new pricing plan for a product. Plans define how customers purchase a product, including price, billing period, and availability.

- Type: write · Key: `create_plan`
- Requires: product_id
- Optional: billing_period, currency, custom_fields, description, expiration_days, image, initial_price, internal_notes, legacy_payment_method_controls, override_tax_type, payment_method_configuration, plan_type, release_method, renewal_price, split_pay_required_payments, stock, title, trial_period_days, unlimited_stock, visibility
- SDK: `runAction({ app: "whop", actionType: "write", action: "create_plan" })`
- CLI: `npx zapier-sdk run-action whop write create_plan`

##### Create Promo Code
Create a promo code that applies discounts or free periods to selected plans or all plans.

- Type: write · Key: `create_promo_code`
- Requires: code, promo_type, amount_off, base_currency, promo_duration_months, new_users_only
- Optional: churned_users_only, existing_memberships_only, one_per_customer, expires_at, product_id, plan_id, unlimited_stock, stock
- SDK: `runAction({ app: "whop", actionType: "write", action: "create_promo_code" })`
- CLI: `npx zapier-sdk run-action whop write create_promo_code`

##### Deny Waitlist
Deny a waitlist application.

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

##### Pause Membership
Pause payment collection on a membership. The member keeps access but billing stops.

- Type: write · Key: `pause_membership`
- Requires: id
- Optional: void_payments
- SDK: `runAction({ app: "whop", actionType: "write", action: "pause_membership" })`
- CLI: `npx zapier-sdk run-action whop write pause_membership`

##### Refund Payment
Refund a payment.

- Type: write · Key: `refund_payment`
- Requires: id
- Optional: partial_amount
- SDK: `runAction({ app: "whop", actionType: "write", action: "refund_payment" })`
- CLI: `npx zapier-sdk run-action whop write refund_payment`

##### Resume Membership
Resume payment collection on a paused membership. Billing will restart.

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

##### Unarchive Affiliate
Reactivate an archived affiliate so they can earn commissions on new referrals again.

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

##### Uncancel Membership
Reverse a scheduled cancellation. The membership will continue to renew instead of ending.

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

##### Update Lead
Update a lead's referrer or metadata for tracking.

- Type: write · Key: `update_lead`
- Requires: id
- Optional: metadata, referrer
- SDK: `runAction({ app: "whop", actionType: "write", action: "update_lead" })`
- CLI: `npx zapier-sdk run-action whop write update_lead`

##### Update Membership
Modify a membership's metadata.

- Type: write · Key: `update_membership`
- Requires: id
- Optional: metadata
- SDK: `runAction({ app: "whop", actionType: "write", action: "update_membership" })`
- CLI: `npx zapier-sdk run-action whop write update_membership`

##### Void Invoice
Void an invoice.

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

#### Queries (12)

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

##### Get Payment Fees
Retrieve the fee breakdown for a payment. Shows platform fees, processing fees, and net amount.

- Type: search · Key: `fees_payment`
- Requires: id
- Optional: after, before, first, last
- SDK: `runAction({ app: "whop", actionType: "search", action: "fees_payment" })`
- CLI: `npx zapier-sdk run-action whop search fees_payment`

##### Find Member
Find a member by ID, email, username, or name.

- Type: search · Key: `find_member`
- Requires: nothing
- Optional: member_id, query
- SDK: `runAction({ app: "whop", actionType: "search", action: "find_member" })`
- CLI: `npx zapier-sdk run-action whop search find_member`

##### Find Entries
Search for waitlist entries with optional filters.

- Type: search · Key: `list_entry`
- Requires: nothing
- Optional: product_id, plan_id, status, created_after, created_before, first
- SDK: `runAction({ app: "whop", actionType: "search", action: "list_entry" })`
- CLI: `npx zapier-sdk run-action whop search list_entry`

##### Find Products
Search for products.

- Type: search · Key: `list_product`
- Requires: company_id
- Optional: after, before, first, last, product_types, visibilities, order, direction, created_before, created_after
- SDK: `runAction({ app: "whop", actionType: "search", action: "list_product" })`
- CLI: `npx zapier-sdk run-action whop search list_product`

##### Find Entry
Find a entry by ID.

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

##### Find Invoice
Retrieve an invoice by its unique ID. Invoices are bills sent to customers for payment.

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

##### Find Lead
Retrieve a lead by its unique ID. Leads are potential customers who have shown interest.

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

##### Find Membership
Retrieve a membership by its unique ID. A membership represents a user's access to a purchased product.

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

##### Find Payment
Retrieve a payment by its unique ID. Payments represent completed or attempted transactions.

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

##### Find Plan
Retrieve a plan by its unique ID. Plans define pricing, billing behavior, and how a product is sold.

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

##### Find Product
Retrieve a product by its unique ID. Products represent what customers purchase from your organization.

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

##### Find Refund
Retrieve a refund by its unique ID. Refunds represent money returned to customers.

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

## Frequently asked questions about automating with Keygen and Whop

### 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
- Keygen integrations: zapier.com/apps/keygen/integrations.md
- Whop integrations: zapier.com/apps/whop/integrations.md
- Full page: zapier.com/apps/keygen/integrations/whop
- SDK: npmjs.com/package/@zapier/zapier-sdk