Access the Whop API with managed authentication. Read the company's products, plans, memberships, payments, and payouts, and create or change products, plans, promo codes, and memberships. Payments, refunds, and payouts move real money and memberships control customers' paid access. All access runs through the Maton gateway and the maton CLI.
Permissions
Suggested read access
In the Console, Read limits the connection to these 218 read-only endpoints, plus deny rules for any write endpoint a broader rule would otherwise match. Endpoints Maton has found to return credentials, start jobs, or spend credits are left out; a few reads that can change state or return a secret depending on their parameters stay in, and their descriptions say how. It is a suggestion: the saved rules are exactly the ones you see, and you can change them with Custom. See Access policy.
Reference
Account
Get the Key's Account
maton api '/whop/api/v1/accounts/me'Response (trimmed; the full account also carries balances, tax details, the business address, and settings):
{
"id": "biz_7Kc2nLq9XyZ0aB",
"title": "Acme Academy",
"route": "acme-academy",
"email": "owner@example.com",
"description": null,
"country": "US",
"business_type": "llc",
"status": "active",
"created_at": "2026-11-12T18:04:11.000Z",
"owner": {"id": "user_Qm4tV8sPz1", "name": "Jane Doe", "username": "janedoe"}
}Returns the account (business) the API key belongs to; its id is the account_id the other endpoints take. The key needs the company:balance:read permission; without it Whop answers 403 naming that scope, and account_id has to come from the user. companies/{id} also takes a company's route as {id}, so companies/me is a different business whose route is me, not the key's own.
Products
Products (formerly called access passes) are what customers buy; each has a default variant with its price and billing type.
List Products
maton api '/whop/api/v1/products?account_id={account_id}&first=20'Query parameters: first and after (see Pagination), account_id (without it, the list searches the public Whop marketplace instead of the business's own products), query (search by title), visibilities (such as visible and hidden), billing_types, order, direction.
Response:
{
"data": [
{
"id": "prod_Jhk4Lvcse6TBl",
"created_at": "2026-11-12T18:05:02.000Z",
"updated_at": "2026-11-12T18:05:02.000Z",
"title": "Pro Membership",
"visibility": "visible",
"headline": "Weekly trading lessons",
"description": "Access to every course and the members' chat.",
"verified": false,
"member_count": 0,
"route": "pro-membership",
"account": {"id": "biz_7Kc2nLq9XyZ0aB", "route": "acme-academy", "title": "Acme Academy"},
"default_variant": {
"id": "plan_Xb2qL7",
"title": "Monthly",
"billing_type": "renewal",
"billing_period": 30,
"initial_price": 0,
"renewal_price": 29,
"trial_period_days": null,
"visibility": "visible"
},
"experiences": [{"id": "exp_3Lm8Qz", "name": "Courses"}]
}
],
"page_info": {
"start_cursor": "MQ",
"end_cursor": "MQ",
"has_next_page": false,
"has_previous_page": false
}
}Get a Product
maton api '/whop/api/v1/products/{product_id}'Create a Product
maton api '/whop/api/v1/products' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
{"title": "Pro Membership", "account_id": "biz_7Kc2nLq9XyZ0aB", "visibility": "hidden"}
JSONtitle is required; account_id names the business to create it for. New products can be created hidden; products/{id}/publish and products/{id}/unpublish change that later.
Update or Delete a Product
maton api '/whop/api/v1/products/{product_id}' -X PATCH -H 'Content-Type: application/json' --input - <<'JSON'
{"title": "Pro Membership (2027)"}
JSON
maton api '/whop/api/v1/products/{product_id}' -X DELETEDelete returns {"id": "prod_...", "deleted": true}. Deleting a product ends access through it for its members.
Plans
Plans are a product's prices: one-time or renewal, with trial, stock, and visibility settings.
maton api '/whop/api/v1/plans?account_id={account_id}&first=20'
maton api '/whop/api/v1/plans/{plan_id}'account_id is required (400 account_id is required without it), and the key needs the plan:basic:read scope. Filter with product_ids, billing_types, visibilities, or release_methods. Plans are created with POST plans, changed with PATCH plans/{id}, and deleted with DELETE plans/{id}.
Memberships
A membership is one customer's access to one product.
List Memberships
maton api '/whop/api/v1/memberships?first=20&statuses=active'Query parameters: account_id, user_id, member_id, product_ids, statuses (such as active, trialing, past_due, paused, canceling, canceled, expired, completed), created_after, and the pagination parameters.
maton api '/whop/api/v1/memberships/{membership_id}'Change a Membership
maton api '/whop/api/v1/memberships/{membership_id}/cancel' -X POSTThe other actions follow the same shape: pause, resume, reactivate, extend, transfer, apply_promo_code, and resync_access. memberships/invite invites someone to a product.
Members and Users
maton api '/whop/api/v1/members?first=20'
maton api '/whop/api/v1/members/{member_id}'
maton api '/whop/api/v1/members/{member_id}/notes'
maton api '/whop/api/v1/users/{user_id}'A member is a person's record with the company: display_name, email, access_level, status, joined_at, usd_total_spent, and the linked user. Notes are created with POST members/{member_id}/notes.
Payments and Refunds
List Payments
maton api '/whop/api/v1/payments?first=20&status=paid'Query parameters: account_id, status, currency, user_id, member_id, membership_id, product_id, query, billing_reason, and the pagination parameters.
maton api '/whop/api/v1/payments/{payment_id}'
maton api '/whop/api/v1/payments/{payment_id}/fees'
maton api '/whop/api/v1/payments/summary'payments/summary returns total and groups for the company's payments.
Refund a Payment
maton api '/whop/api/v1/payments/{payment_id}/refund' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
{}
JSONRefunds the payment in full, or partial_amount of it, through the processor that charged it. Whop emails the buyer, claws back the affiliate commission, and updates the membership to match. payments/{id}/void voids an uncaptured payment and payments/{id}/retry retries a failed one.
maton api '/whop/api/v1/refunds?first=20'
maton api '/whop/api/v1/refunds/{refund_id}'Payouts and Transfers
maton api '/whop/api/v1/payouts?account_id={account_id}&first=20'
maton api '/whop/api/v1/payouts/{payout_id}'
maton api '/whop/api/v1/transfers?first=20'payouts requires account_id or user_id and the payout:withdrawal:read scope. POST payouts withdraws the balance and POST transfers sends money to another Whop account; both move real money.
Promo Codes
maton api '/whop/api/v1/promo_codes?account_id={account_id}&first=20'
maton api '/whop/api/v1/promo_codes/{promo_code_id}'account_id is required, and the key needs the promo_code:basic:read scope. Codes are created with POST promo_codes, turned on and off with promo_codes/{id}/activate and deactivate, and deleted with DELETE promo_codes/{id}.
Experiences
Experiences are the apps a product unlocks (courses, chat, files, and so on).
maton api '/whop/api/v1/experiences?account_id={account_id}&first=20'
maton api '/whop/api/v1/experiences/{experience_id}'account_id is required. experiences/{id}/attach and detach add an experience to a product or remove it.
Channels and Messages
maton api '/whop/api/v1/channels?first=20'
maton api '/whop/api/v1/messages?channel_id={channel_id}'messages requires channel_id. POST messages sends a message into a channel that members read.
Webhooks and API Keys
webhooks and webhooks/{id} return each webhook's webhook_secret, and api_keys and api_keys/{id} return each key's secret_key. They are kept out of the read-only access policy. webhooks/{id}/deliveries lists past deliveries.
Pagination
Lists are cursor-based: pass first (page size) and after (the previous page's page_info.end_cursor), or last and before to page backwards.
maton api '/whop/api/v1/products?first=20&after=MjA'page_info.has_next_page is false on the last page.
Notes
- Connection. The connection holds a Whop company API key, created in the Developer section of the Whop dashboard. The permissions a key has are chosen when it is created, and a call outside them answers
403naming the missing scope (for exampleCompany API key is not authorized for the plan:basic:read scope.); a read-only key answers403to every create, update, and delete. The connection's metadata names the business (company_id,company_name,route) fromGET api/v1/accounts/mewhen the key has thecompany:balance:readpermission, and is empty otherwise. Use theapi/v1paths below: Whop's older v2 and v5 APIs are retired or legacy. - Many list endpoints take
account_id, the business's ID (biz_...) fromaccounts/me; some require it. - Deprecated:
payment_method_domainsstops working after December 23, 2026; the Domains API (domains) replaces it, and each payment method domain is already a domain with the same ID, with its Apple Pay setup inapple_pay. - Other reads kept out of the read-only policy:
cardsandcards/{id}(card number, CVC, and PIN),claim_links/{id}andfinancial_activity(claim URLs that let whoever holds them claim the funds),email_addresses(mailbox passwords),setup_intents(client secrets), andapps/{id}(the app's API key). Payments created through the API can include aclient_secret, which lets a buyer's screen poll and resume the payment. - Scopes. A missing permission answers
403withCompany API key is not authorized for the <scope> scope.; the key's permissions can only be changed in the Whop dashboard. - Required filters. Plans, promo codes, and experiences require
account_id; payouts requireaccount_idoruser_id; messages requirechannel_id. Without them Whop answers400naming the parameter. - Errors are JSON
{"error": {"type": "...", "message": "..."}}. - Prices are in the plan's currency as decimal amounts (
29is $29.00 for a USD plan). - Timestamps are ISO 8601 in UTC.
- Some list responses include a
recommended_actionstring with Whop's suggestion for the company.