Use cases
Our API provides a powerful way to interact with whop programmatically. Some common use cases include- I’m a company owner and I want to pull payments made only to my company. -> Use Company API keys
- I’m a developer and I want to list memberships for any company that has installed my app. -> Use App API keys
- I’m a developer using whop for platforms I want to retrieve payment details for payments made to a connected account of my platform. -> Use Company API keys of the main “platform” company.
- I’m a developer and I want to let users sign in with Whop and access their data on their behalf. -> Use OAuth tokens
Access to different features of our api is controlled by a fine-grained permission system, allowing you to implement strong security practices in your applications.
Always make sure your api key has the required permissions enabled for your desired usage. Each endpoint will document the required permission scopes.
API Keys
Company API keys
Company API keys
Use company API keys when you only want to fetch data, or perform actions for your own company,
and or connected account companies.
- Go to your developer dashboard.
- Click the “Create” button in the “Company API Keys” section
- Give your api key a name. For example “Data pipeline” or “GHL Integration”
- Select a role or a custom set of permissions. (You can always update this later and add more if you need)
- Create the api key, and copy it from the modal.
App API keys
App API keys
Use app API keys when you are building an app and need to access data on companies that have installed your app.
- Go to your developer dashboard.
- Click the Create app button and give your app a name. You can change this name later.
- Your API key is the hidden text after
WHOP_API_KEYin theEnvironment variablessection. Use the reveal button to show the key, copy it and keep it in a safe place. You will need it to make API calls.
OAuth tokens
OAuth tokens
Use OAuth tokens when you want users to sign in with their Whop account and grant your app permission to act on their behalf. Unlike API keys which use your app’s permissions, OAuth tokens are scoped to what each individual user can access.Common use cases:
- “Sign in with Whop” authentication
- Accessing a user’s memberships, purchases, or profile
- Performing actions as a specific user (not as your app)
- Redirect users to Whop’s authorization page
- User logs in and approves your requested scopes
- Exchange the authorization code for access and refresh tokens
- Use the access token as your API key in SDK calls or the
Authorizationheader
Making API calls
Our public api is available athttps://api.whop.com/api/v1
You can test the api by using curl to fetch your public user profile data:
Authorization header using the Bearer scheme:
Whop SDKs
We recommending using our SDKs to make API calls in your apps. We currently supportExample usage
Make sure your api key has the required permissions to make api calls. If building an app, see
Permissions for more information.
MCP
You can also access the API via our mcp server available athttps://mcp.whop.com/mcp (cursor) or https://mcp.whop.com/sse (claude)
Learn more here
