# Whop Docs: For Developers > Whop is on a mission to deliver everyone a sustainable income. Accept payments, pay out users, build apps, and embed chat with SDKs in TypeScript, Python, and Ruby. > ## Agent Instructions > Treat these docs and the Whop MCP server as the source of truth for Whop API behavior. Don't infer endpoint behavior from marketing pages. > MCP server: connect https://mcp.whop.com/mcp (streamable HTTP, browser sign-in, no API key in the client config) to search these docs and read or change live Whop data. Setup: https://docs.whop.com/developer/guides/ai_and_mcp.md > Whop CLI: install with `curl -fsSL https://whop.com/install.sh | sh` to scaffold, run, and deploy Whop apps and websites. It acts on production, not the sandbox. Agent mode: https://docs.whop.com/cli/agent-mode.md > Plugins: in Claude Code, run `/plugin marketplace add whopio/plugins`, then `/plugin install whop@whop`. Every agent tool: https://docs.whop.com/developer/ai/overview.md > Environments: build and test in the sandbox (API `https://sandbox-api.whop.com/api/v1`, keys at https://sandbox.whop.com/dashboard/developer, SDK environment `Sandbox`; no real money). Production (API `https://api.whop.com/api/v1`, keys at https://whop.com/dashboard/developer, SDK environment `Production`, the SDK default) moves real money, so use it only at launch. The two share no accounts, keys, products, or webhooks, and their keys look identical: never mix them. Comparison: https://docs.whop.com/developer/quickstart.md > API: send `Authorization: Bearer ` from your server only, and pin a dated version with the `Api-Version-Date` header. OpenAPI spec: https://api.whop.com/api/v1/openapi.json > Which API: build on the Current API, whose pages live under https://docs.whop.com/api-reference/ (start at https://docs.whop.com/api-reference/overview.md). Pages under /api-reference/legacy/ are the Legacy API. Use one only when https://docs.whop.com/api-reference/stability.md lists the resource as Legacy-only. ## For Developers - [For Developers / API Reference (851 pages)](https://docs.whop.com/_llms/for-developers/api-reference.txt): Documentation for For Developers / API Reference. - [For Developers / SDKs & Tools (67 pages)](https://docs.whop.com/_llms/for-developers/sdks-and-tools.txt): Documentation for For Developers / SDKs & Tools. ### Start Here #### Get Started - [What You Can Build with Whop](https://docs.whop.com/developer/start.md): Payments, payouts, identity, community, and distribution through one API. Hand the setup to your coding agent, or take your first payment in the sandbox. - [Quickstart](https://docs.whop.com/developer/quickstart.md): Make your first Whop API call, create a checkout, pay it with a test card, and receive the webhook, all in the sandbox. Then switch to production. - [Test in the Sandbox](https://docs.whop.com/developer/guides/sandbox.md): Point the Whop SDK and Elements at the sandbox, create test API keys and webhooks, simulate payments with test cards, and review sandbox limitations. #### Foundations - [Core Concepts](https://docs.whop.com/developer/concepts.md): The objects Whop's API is built from: what each one is, what it's called, and how they connect. - [Auth & API Keys](https://docs.whop.com/developer/guides/auth-scoping.md): The five Whop credential types, when to use each, and how to scope a credential down to the actions it actually needs. #### Support - [Troubleshooting](https://docs.whop.com/developer/troubleshooting.md): Fix common Whop API, OAuth, checkout, webhook, and Whop Elements errors. ### AI Tools - [AI Tools](https://docs.whop.com/developer/ai/overview.md): An MCP server, an installable skill, an LLM page index, and raw Markdown for every page: what Whop gives a coding agent. - [AI and MCP](https://docs.whop.com/developer/guides/ai_and_mcp.md): Connect AI agents to the Whop MCP server to call the API and search the docs, with browser sign-in and idempotent retries. - [Build with the CLI and Claude](https://docs.whop.com/developer/guides/cli-with-claude.md): Use the Whop CLI together with Claude to scaffold, build, and ship a Whop app from your terminal. - [Start a Project from a Blueprint](https://docs.whop.com/developer/guides/blueprints.md): Start from a working Whop business. Browse the blueprint gallery, deploy one in a step, or clone its code and hand it to your AI assistant. #### Plugins - [Claude Code](https://docs.whop.com/developer/guides/plugins/claude-code.md): Install the Whop plugin for Claude Code to run your business from the terminal — products, checkout, payments, payouts, ads, and stats. - [Grok](https://docs.whop.com/developer/guides/plugins/grok.md): Install the Whop plugin for Grok Build to run your business from the terminal — products, checkout, payments, payouts, ads, and stats. ### Build #### Payments - [Payments Overview](https://docs.whop.com/developer/payments/overview.md): Accept one-time and recurring payments, manage subscriptions, and handle refunds and disputes. - [Accept Payments](https://docs.whop.com/developer/guides/accept-payments.md): Accept one-time and recurring payments across 195 countries with 100+ payment methods - [Build a Checkout with Payment Elements](https://docs.whop.com/developer/guides/payment-elements.md): Design your own checkout around the payment elements: collect a confirmation token in the browser, charge it from your server, and fulfill from a webhook - [Embed a Checkout](https://docs.whop.com/developer/guides/embed-checkout.md): Drop Whop's whole checkout into your page with the Checkout element, straight from the browser, and fulfill from a webhook - [Add Express Checkout](https://docs.whop.com/developer/guides/express-checkout.md): Put one-press Apple Pay and Google Pay buttons on your page with the Express Checkout element, straight from the browser, and fulfill from a webhook - [Open a Wallet Sheet from Your Own Button](https://docs.whop.com/developer/guides/payment-request.md): Open the Apple Pay or Google Pay sheet from a button you render, price the order yourself, and charge the confirmation token from your server - [Enable Apple Pay and Google Pay](https://docs.whop.com/payments/apple-pay.md): Enable Apple Pay and Google Pay on your own domain by adding Apple Pay to it - [Save Payment Methods](https://docs.whop.com/developer/guides/save-payment-methods.md): Save a customer's card in setup mode with payment elements or a hosted checkout, or during checkout, then charge the saved method later off session. - [Invoices](https://docs.whop.com/developer/guides/invoices.md): Bill a customer with a numbered invoice through the API: create a draft, issue or email it, and collect payment from a saved method or hosted checkout. - [Refunds and Disputes](https://docs.whop.com/developer/guides/refunds-and-disputes.md): Issue refunds, respond to disputes with evidence, and listen for chargeback events. - [Manage Fraud](https://docs.whop.com/developer/guides/manage-fraud.md): Write payment rules that block risky checkouts, hold card payments for review, enforce 3D Secure on large orders, or let trusted buyers through. - [Tax IDs](https://docs.whop.com/developer/guides/tax-ids.md): Format VAT, GST, and other tax registration numbers so Whop accepts them and applies them to tax. ##### iOS Payments - [iOS Checkout SDK](https://docs.whop.com/developer/guides/ios/overview.md): Sell in-app purchases and subscriptions natively on iOS (2.7% + $0.30 vs Apple's 15-30%) - [Installation](https://docs.whop.com/developer/guides/ios/installation.md): Install the WhopCheckout SDK and configure it with an iap:read API key - [Build a Paywall](https://docs.whop.com/developer/guides/ios/build-a-paywall.md): Configure the WhopCheckout SDK in SwiftUI, show your subscription variants with pricing, and handle purchases, including cancelled or failed payments. - [Accept One-time Payments](https://docs.whop.com/developer/guides/ios/accept-one-time-payments.md): Sell physical goods and real-world services with native Apple Pay through Whop (2.7% + $0.30 fees) - [Check Entitlements](https://docs.whop.com/developer/guides/ios/check-entitlements.md): Gate premium iOS content with hasAccess(to:) or isSubscribed, list active memberships, log users in and out to sync devices, and support guest purchases. - [API Reference](https://docs.whop.com/developer/guides/ios/checkout-reference.md): Reference for every class, method, property, and type in the WhopCheckout SDK, including configure, purchase, hasAccess, restorePurchases, and PlanMapping. #### Payouts & Money Movement - [Payouts & Money Movement](https://docs.whop.com/developer/payouts/overview.md): Pay out users, move money between accounts, and read balances and ledgers. - [Preferred Settlement Currency](https://docs.whop.com/developer/payouts/preferred-settlement-currency.md): Convert each new sale into USD, EUR, GBP, CAD, or AUD. See which sales convert and how refunds, disputes, and platform fees settle. - [Add Funds to Your Balance](https://docs.whop.com/developer/platforms/add-funds-to-your-balance.md): Create a first top up in the dashboard to save a payment method, then list payment methods, create top ups through the API, and handle payment webhooks. - [Enable Subaccount Payouts](https://docs.whop.com/developer/platforms/render-payout-portal.md): Let your subaccounts manage their own payouts with Whop Elements or a hosted portal - [Manual Payouts to Subaccounts](https://docs.whop.com/developer/platforms/manual-payouts.md): Send payouts to subaccounts from your platform balance: onboard them through KYC, add a payout method, get the default method, and create a payout. - [Connect a PayPal Payout Method](https://docs.whop.com/developer/guides/connect-paypal-payout-method.md): Add PayPal as a payout method by having the account holder log in to PayPal, so payouts only go to a verified account in their name. - [Stats API](https://docs.whop.com/developer/guides/stats.md): Discover metrics and query revenue, payments, and engagement over time #### Communities & Chat ##### Get Started - [Communities & Chat](https://docs.whop.com/developer/communities/overview.md): Send messages, run channels and forums, and push notifications inside any Whop community. - [Playground](https://docs.whop.com/developer/guides/chat/playground.md): Try out Whop's embedded chat components in an interactive playground that renders a live chat demo right on the page, so you can see how they behave. ##### Setup - [Chat Quickstart](https://docs.whop.com/developer/guides/chat/quickstart.md): Embed Whop chat in your web or iOS app: create an API key, install the packages, add a token endpoint, create a channel or DM, and render chat. - [Chat Authentication](https://docs.whop.com/developer/guides/chat/authentication.md): Authenticate users for embedded chat with account-scoped tokens or OAuth - [Sync Your Users](https://docs.whop.com/developer/guides/chat/sync-users.md): Enroll your platform users as subaccounts before minting chat tokens, then set an account-specific name and profile picture with Update user. - [Chat OAuth](https://docs.whop.com/developer/guides/chat/oauth.md): Authenticate embedded chat users with Whop OAuth and SDK-managed sign-in. ##### Chat Types - [Channels](https://docs.whop.com/developer/guides/chat/channels.md): Use channels for shared chat rooms connected to products and memberships - [Direct Messages](https://docs.whop.com/developer/guides/chat/direct-messages.md): Set up private one-on-one or group direct messages for your app's users, scope them to your account, and manage DM channels and members through the API. - [Support Chats](https://docs.whop.com/developer/guides/chat/support-chats.md): Use support chats for one-on-one customer support conversations with your account ##### Components - [Chat Element](https://docs.whop.com/developer/guides/chat/chat-element.md): Render a real-time chat UI for a channel, DM, or support chat with React or vanilla JS, deep link to specific messages, and handle chat element events. - [DMs List Element](https://docs.whop.com/developer/guides/chat/dms-list-element.md): Mount the DMs list element to show a user's direct message conversations, filter them by companyId, and handle channelSelected events to open a chat. - [Theming & Styles](https://docs.whop.com/developer/guides/chat/theming-and-styles.md): Customize chat elements with a theme on web or WhopTheme in Swift, set accent, gray, and semantic colors, and choose Discord or iMessage chat style. #### Whop Apps - [Build Whop Apps](https://docs.whop.com/developer/apps/overview.md): Ship an app that thousands of Whop businesses can install from the App Store. - [App Store Listing Requirements](https://docs.whop.com/developer/apps/listing-requirements.md): Requirements for listing an app in the Whop App Store. - [Permissions](https://docs.whop.com/developer/guides/permissions.md): Configure the permissions your app needs and request approval from the creators who install it. - [App Installations](https://docs.whop.com/developer/guides/app-installations.md): Know when an account installs or removes your app, and link each installation to the record it belongs to in your own system. - [Scheduled Runs](https://docs.whop.com/developer/guides/scheduled-runs.md): Run your hosted app's code on a cron, either once per slot or once for every installation. - [App Views](https://docs.whop.com/developer/guides/app-views.md): Configure experience and dashboard views for your app in the Hosting settings, preview them, validate member or account access, and choose the right mix. - [Frosted UI](https://docs.whop.com/developer/guides/frosted_ui.md): Install Frosted UI, Whop's React component library and design system, and use its typography, color system, Tailwind classes, and dark mode support. - [Authentication](https://docs.whop.com/developer/guides/authentication.md): Verify the current user and check their access level inside your Whop app. - [OAuth](https://docs.whop.com/developer/guides/oauth.md): Add "Sign in with Whop" to your site with OAuth 2.1 and Proof Key for Code Exchange (PKCE). - [React Native](https://docs.whop.com/developer/guides/react-native.md): Build a React Native app that runs inside the Whop mobile app and on the web, with experience and dashboard views, SDK data fetching, styling, and deploys. - [Development Proxy](https://docs.whop.com/developer/guides/dev-proxy.md): Run the Whop development proxy to replicate production authentication and iframe behavior during development. - [Iframe SDK](https://docs.whop.com/developer/guides/iframe.md): Use the @whop/iframe SDK or WhopIframeSdkProvider to talk to Whop from your embedded app, open external links and user profiles, and run in-app purchases. - [Chat](https://docs.whop.com/developer/guides/chat.md): Send messages, manage channels, and react to events in any Whop community. - [Forums](https://docs.whop.com/developer/guides/forums.md): Create forum posts, fetch threads, and add comments or reactions inside any Whop community. - [Push Notifications](https://docs.whop.com/developer/guides/notifications.md): Send push notifications to users in your app, scoped by experience or account. - [Affiliates](https://docs.whop.com/developer/guides/affiliates.md): Create affiliate records, assign per-variant or rev-share commission overrides, and track referral earnings. - [Memberships](https://docs.whop.com/developer/guides/memberships.md): Manage subscription lifecycle. Pause, resume, cancel, restore, and add free days. - [Upload Files](https://docs.whop.com/developer/guides/upload-files.md): Create a file record, PUT the bytes to the presigned upload URL, choose public or private files, confirm the upload status, and attach files to resources. - [Upload Files Directly](https://docs.whop.com/developer/guides/direct-file-uploads.md): Upload files to Whop storage with presigned single-part and multipart uploads - [Example Integration](https://docs.whop.com/developer/guides/example-integration.md): Build a Mercor-style marketplace on Whop with Next.js: set up the pages, take payments with the Checkout element, and pay subaccounts at scale. #### Websites - [Host a Website on Whop](https://docs.whop.com/developer/websites/overview.md): Ship a fully hosted website on Whop — served at a whop.site address or your own domain, versioned on every deploy, and wired to payments and analytics. - [Build a Website with the CLI](https://docs.whop.com/developer/websites/quickstart.md): Scaffold a Vite app, run it locally against real Whop data, and deploy it to a whop.site address or your own domain. - [Deploy a Blueprint Business](https://docs.whop.com/developer/websites/blueprints.md): Deploy a working Whop business — products, pricing, and a live website — in one step, or clone its code with the CLI. - [Hosting](https://docs.whop.com/developer/websites/hosting.md): What Whop runs when someone visits your site: builds and rollbacks, app secrets, automatic API authentication, and server logs. - [Track Visitors](https://docs.whop.com/developer/websites/tracking.md): Sites on whop.site include the Whop pixel with automatic page view and checkout tracking. Add whop.track calls for leads, bookings, and custom events. #### Marketplaces & Platforms - [Marketplaces & Platforms](https://docs.whop.com/developer/marketplaces/overview.md): Build on Whop's payment and payout rails: subaccounts, affiliates, and identity verification. - [Platform Quickstart](https://docs.whop.com/developer/platforms/quickstart.md): Embed a payout portal for your subaccounts with Whop Elements in minutes - [Enroll Subaccounts](https://docs.whop.com/developer/platforms/enroll-subaccounts.md): Onboard businesses or individuals to your platform and facilitate payments - [Collect Payments for Subaccounts](https://docs.whop.com/developer/platforms/collect-payments-for-subaccounts.md): Collect payments for subaccounts with direct charges and an application fee, or transfers from your platform account, plus limitations and failures. - [Fee Markups & Subsidies](https://docs.whop.com/developer/platforms/fee-markups.md): Configure platform fee markups and payout subsidies for subaccounts, with examples, supported limits, and available balance requirements. ##### Verification - [Verify User Identities with KYC](https://docs.whop.com/developer/verification/overview.md): Verify your users' identities before they can receive payouts. One API call starts Know Your Customer (KYC) verification, and Whop handles everything else. - [Check Status](https://docs.whop.com/developer/verification/retrieve.md): List the KYC and KYB verifications for an account or retrieve one by ID, then read verification statuses, response fields, required scopes, and API errors. - [Handle RFIs](https://docs.whop.com/developer/verification/rfis.md): Respond when Whop needs more information — a document, tax ID, or business detail. - [Update & Delete](https://docs.whop.com/developer/verification/manage.md): Update identity fields before verification, or remove a verification entirely. - [Identity Documents](https://docs.whop.com/developer/verification/identity-documents.md): Which identity documents the API accepts, and the exact file keys to send for each. - [Business Structures](https://docs.whop.com/developer/verification/business-structures.md): Look up the business_structure values each country supports when creating or updating a KYB or KYC verification for a business entity, by country or value. #### Ads - [Advertising](https://docs.whop.com/developer/ads/overview.md): Run ads through Whop with account-level billing. Learn how shared payments, delivery failures, and account payment retries work. - [Install the Whop Pixel](https://docs.whop.com/developer/ads/pixel.md): Add the Whop Pixel snippet to every funnel page, then send standard and custom events, track sales on your own checkout, and attach customer information. - [Send Server-Side Events](https://docs.whop.com/developer/ads/events-api.md): Send conversion events from your server and tie them to the visitor the Whop Pixel already tracks. ##### Integrate with Hosting Platforms - [Install the Whop Pixel on ClickFunnels](https://docs.whop.com/developer/ads/platforms/clickfunnels.md): Add the Whop Pixel to the Head Code field in your ClickFunnels Funnel Settings so every step is tracked, then confirm page views and add lead events. - [Install the Whop Pixel on GoHighLevel](https://docs.whop.com/developer/ads/platforms/gohighlevel.md): Add the Whop Pixel to a GoHighLevel site or funnel so every step is tracked. - [Install the Whop Pixel on Kajabi](https://docs.whop.com/developer/ads/platforms/kajabi.md): Track every page of a Kajabi site by adding the Whop Pixel to the Header Page Scripts field, then confirm page views on the Websites page and add events. - [Install the Whop Pixel on WordPress](https://docs.whop.com/developer/ads/platforms/wordpress.md): Install the Whop Pixel on WordPress using a header plugin or your theme's custom code field, covering Elementor and Divi pages, then track lead events. - [Install the Whop Pixel on WooCommerce](https://docs.whop.com/developer/ads/platforms/woocommerce.md): Add the Whop Pixel to a WooCommerce store with a header script plugin like WPCode so it tracks shop, product, and cart pages, then confirm page views. - [Install the Whop Pixel on Shopify](https://docs.whop.com/developer/ads/platforms/shopify.md): Add the Whop Pixel to a Shopify storefront with a theme snippet, plus a custom pixel that covers checkout. ##### Integrate with Sales Tools - [Install the Whop Pixel on WebinarJam](https://docs.whop.com/developer/ads/platforms/webinarjam.md): Paste the Whop Pixel into WebinarJam's custom tracking fields for registration, thank-you, live room, and replay pages, and fire a lead event on signup. - [Install the Whop Pixel with iClosed](https://docs.whop.com/developer/ads/platforms/iclosed.md): Track iClosed bookings with the Whop Pixel using a custom confirmation page. - [Install the Whop Pixel with Calendly](https://docs.whop.com/developer/ads/platforms/calendly.md): Track Calendly bookings by sending bookers to a Thank You page with the Whop Pixel and a schedule event, or listen for bookings on an embedded calendar. #### Integrations ##### CRM & Sales - [HubSpot](https://docs.whop.com/third-party-integrations/hubspot.md): Sync Whop payments, subscriptions, and products into HubSpot, and send Whop checkout links from deals and contacts, with the Whop Payments app. - [GoHighLevel](https://docs.whop.com/third-party-integrations/gohighlevel.md): Use Whop as a native payment provider in GoHighLevel for payment links, checkout pages, invoices, and subscriptions. ##### Accounting - [QuickBooks](https://docs.whop.com/third-party-integrations/quickbooks.md): Record Whop sales, refunds, and payouts in QuickBooks Online, and let customers pay QuickBooks invoices through Whop, with the QuickBooks Sync app. - [Xero](https://docs.whop.com/third-party-integrations/xero.md): Send Whop sales, fees, refunds, and payouts to Xero as bank statement lines with the Xero Sync app, then match them to your invoices. ##### Automation - [Zapier](https://docs.whop.com/third-party-integrations/zapier.md): Automate Whop with Zapier: start Zaps from Whop events, and manage memberships, payments, invoices, and leads from other apps. #### Bounties - [Bounties](https://docs.whop.com/developer/bounties/overview.md): Post paid tasks with an escrowed reward, collect submitted work from workers, and pay out on approval. - [Run a Bounty Program](https://docs.whop.com/developer/bounties/run-a-bounty-program.md): Post paid bounties through the API, fund the escrow from an account balance, schedule repeats, take and review submissions, and cancel bounties. #### Partners - [Whop Partners API](https://docs.whop.com/developer/partners/overview.md): Refer businesses onto Whop and earn on their activity, with a referral link and earnings you can read from the API. #### All Products - [Platform Map](https://docs.whop.com/developer/platform-map.md): Every Whop capability in one table, from payments and payouts to chat and ads, with its API, its prebuilt element, its hosted page, and the guide to start with. ## OpenAPI Specs - [api-v1-native](/openapi/api-v1-native.json) - [api-v1-stable](/openapi/api-v1-stable.json)