API Reference

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.

Log in to see full request history
timestatususer agent
Retrieving recent requests…
LoadingLoading…
Form Data
string
required

This should always be "authorization_code".

string
required

This is the code that you received to your OAuth callback as the "code" parameter. Pass it up directly

string
required

This is your client ID

string
required

This is your client secret

string
required

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

Language
Click Try It! to start a request and see the response here! Or choose an example:
application/json