POST
/
v5
/
oauth
/
token
curl --request POST \
  --url https://api.whop.com/api/v5/oauth/token \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "grant_type": "authorization_code",
  "code": "<string>",
  "client_id": "<string>",
  "client_secret": "<string>",
  "redirect_uri": "<string>"
}'
{
  "access_token": "<string>"
}

For more information about OAuth, follow our Webapp guide.

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
grant_type
enum<string>
required

The grant type

Available options:
authorization_code
code
string
required

The authorization code

client_id
string
required

The client ID of your oAuth application.

client_secret
string
required

The client secret of your oAuth application.

redirect_uri
string
required

The redirect URI

Response

201 - application/json
access_token
string
required

The access token of the user