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

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

const authorizedUser = await client.authorizedUsers.retrieve('ausr_xxxxxxxxxxxxx');

console.log(authorizedUser.id);
{
  "id": "ausr_xxxxxxxxxxxxx",
  "role": "owner",
  "user": {
    "id": "user_xxxxxxxxxxxxx",
    "name": "<string>",
    "username": "<string>",
    "email": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string
required
Example:

"ausr_xxxxxxxxxxxxx"

Response

A successful response

A user who has elevated security privileges for a company

id
string
required

A unique ID representing the authorized user object.

Example:

"ausr_xxxxxxxxxxxxx"

role
enum<string>
required

The role of the authorized user in the company.

Available options:
owner,
admin,
sales_manager,
moderator,
app_manager,
support,
manager
user
object
required

The user associated with the authorized user.

I