A simple to use and deploy api for validating Whop license keys
Swagger documentation: https://whop-license-middleware.vercel.app/
POST
/api/license/[key]/validate
Body:
{
"metadata": {
"anything": "you want"
}
}
POST
/api/license/[key]/reset
POST
/api/license/[key]/update
Body:
{
"metadata": {
"anything": "you want"
}
}
- Create a
.env.local
file in the project directory and add your Whop API key
WHOP_API_KEY=xxx
- Install the project dependencies:
npm ci
- Start the project:
npm run dev
The project will run at http://localhost:3000