GET
/
v5
/
app
/
users
/
{user_id}
/
social_accounts
curl --request GET \
  --url https://api.whop.com/api/v5/app/users/{user_id}/social_accounts \
  --header 'Authorization: Bearer <token>'
[
  {
    "service": "discord",
    "username": "<string>",
    "default": true,
    "account_id": "<string>",
    "image_url": "<string>"
  }
]

Authorizations

Authorization
string
headerrequired

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

Path Parameters

user_id
string
required

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

Response

200 - application/json
service
enum<string>
required

The type of social account that it is.

Available options:
discord,
twitter
username
string

The username of the social account

default
boolean
required

Whether or not this is the default social account for the user's account for the provider.

account_id
string
required

The ID of the social account from the provider, like a discord ID or twitter ID.

image_url
string

A URL for the image of the social account.