Obtain a user's access token
This is how you obtain an access token for a user. In the OAuth flow, your backend will receive a one time use “code” parameter. You will then exchange the code you received for a long lived access token by calling this endpoint.
Body
This should always be "authorization_code".
authorization_code
This is the code that you received to your OAuth callback as the "code" parameter. Pass it up directly
This is your client ID
This is your client secret
This is your redirect URL. If you are just gating your webapp, this redirect URL will be registered on your developer portal in the Whop Dashboard. If you are building general purpose software, aka an experience, this should be your "{base_url}/{your_hub_path}".
Response
The token you will use to authenticate your user
Was this page helpful?