Check membership status and validate a license key via the Whop API
domain: whop.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗
Steps
Generate an Account API key (your own data) or App API key (data across companies with your app installed) from the Whop developer dashboard
Call the Whop API with Authorization: Bearer <api_key> to list or retrieve a membership by its ID or license key
To validate a license key for a given install, POST /api/v2/memberships/{id}/validate_license with a metadata object identifying the install
Read the response: HTTP 201 means valid (first use, or metadata matches a prior validation); HTTP 400 means invalid (e.g. metadata mismatch)
Use the membership's status field (active, trialing, past_due, canceled, expired, completed) to drive access decisions rather than license validity alone
Known gotchas
Whop has two live API generations (newer api.whop.com/api/v1 SDK-era API and older versioned v2/v5 REST references) — confirm which generation a doc page describes before relying on it
Account API keys and App API keys have different data scope — an App key only sees companies that installed your app
A metadata mismatch (e.g. validating from a second device) produces the 400 and is easy to misdiagnose as an invalid key
Give your agent this knowledge — and 15,500+ more routes
One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp
Need this verified for your stack — or a route we don't have yet?