Users
List a User's social accounts
Returns a User's social accounts
GET
/
v5
/
app
/
users
/
{user_id}
/
social_accounts
Authorization
Path
curl --request GET \
--url https://api.whop.com/api/v5/app/users/{user_id}/social_accounts \
--header 'Authorization: <authorization>'
[
{
"account_id": "<string>",
"default": true,
"image_url": "<string>",
"service": "discord",
"username": "<string>"
}
]
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
user_id
string
requiredThe ID of the User, which will look like user_*************
Response
200 - application/json
account_id
string
requiredThe ID of the social account from the provider, like a discord ID or twitter ID.
default
boolean
requiredWhether or not this is the default social account for the user's account for the provider.
image_url
string
A URL for the image of the social account.
service
enum<string>
requiredThe type of social account that it is.
Available options:
discord
, twitter
username
string
The username of the social account
Was this page helpful?
curl --request GET \
--url https://api.whop.com/api/v5/app/users/{user_id}/social_accounts \
--header 'Authorization: <authorization>'
[
{
"account_id": "<string>",
"default": true,
"image_url": "<string>",
"service": "discord",
"username": "<string>"
}
]