Create a webhook
1
Go to your app's webhook settings
- Go to the developer dashboard
- Create a new app or select an existing one
- Click on Webhooks

2
Create a webhook
- Click on Create webhook
- Set your endpoint URL

When testing locally, you’ll need to tunnel your requests to your localhost endpoint. You can use ngrok to do this.
- Select the events you want to receive and click on Save

3
Copy your webhook secret
Copy the webhook secret by clicking on it and safely store it in your environment variables.

Handle webhook events
Set up a webhook route to handle the selected events:app/api/webhook/whop/route.ts
Test webhook events
You can send dummy webhook events to your endpoint for testing purposes.1
Open the test webhook popup

2
Select and send the event you want to test
