Skip to main content
GET
/
users
/
{id}
JavaScript
import Whopsdk from 'whopsdk';

const client = new Whopsdk({
  apiKey: 'My API Key',
});

const user = await client.users.retrieve('user_xxxxxxxxxxxxx');

console.log(user.id);
{
  "id": "user_xxxxxxxxxxxxx",
  "username": "<string>",
  "name": "<string>",
  "created_at": 1701406800,
  "bio": "<string>"
}

Authorizations

Authorization
string
header
required

The app API key from an app from the /dashboard/developer page

Path Parameters

id
string
required
Example:

"user_xxxxxxxxxxxxx"

Response

A successful response

An object representing a (sanitized) user of the site.

id
string
required

The internal ID of the user.

Example:

"user_xxxxxxxxxxxxx"

username
string
required

The username of the user from their Whop account.

name
string | null
required

The name of the user from their Whop account.

created_at
integer
required

When the user was created.

Example:

1701406800

bio
string | null
required

The user's bio

I