GET

/v2/oauth/user

Authorization
curl --request GET \
  --url https://api.whop.com/v2/oauth/user
{
  "authorized_user": {
    "company": "string",
    "permission_level": "string",
    "role": "owner"
  },
  "email": "string",
  "id": "string",
  "profile_pic_url": "string",
  "roles": "string",
  "social_accounts": {
    "id": "string",
    "service": "string",
    "username": "string"
  },
  "username": "string"
}

Headers

Authorization
string

A user's access token, which must be retrieved from the Whop OAuth2 authentication flow. You must prepend your key with the word 'Bearer', which will look like Bearer ***************************

Response

200 - application/json
authorized_user
object
email
string

The User's email address

id
string

The ID of the User, which will look like user_*************

profile_pic_url
string

An image URL of the User's profile photo, primarily pulled from Discord

roles
string
social_accounts
object
username
string

The User's Whop username