Authorized users

List authorized users

Changed on

Lists the authorized users on an account's team.

Required permissions:

  • company:authorized_user:read
  • member:email:read
get/authorized_users

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    HTTP bearer

Query parameters

after, string

Returns the elements in the list that come after the specified cursor.

before, string

Returns the elements in the list that come before the specified cursor.

first, integer

Returns the first n elements from the list.

Example:42
last, integer

Returns the last n elements from the list.

Example:42
user_id, string

Filter results to a specific user to check if they are an authorized team member.

Example:user_xxxxxxxxxxxxx
role, 'owner' | 'admin' | 'partner' | 'sales_manager' | 'moderator' | 'advertiser' | 'app_manager' | 'support' | 'manager' | 'workforce' | 'custom'

Filter authorized users by their assigned role within the company.

created_before, string date-time

Only return authorized users created before this timestamp.

Example:2023-12-01T05:00:00.401Z
created_after, string date-time

Only return authorized users created after this timestamp.

Example:2023-12-01T05:00:00.401Z
account_id, string

The unique identifier of the company to list authorized users for.

Example:biz_xxxxxxxxxxxxxx

Response

A successful response

object required

The connection type for AuthorizedUser.

data, AuthorizedUserListItem[] required

A list of nodes.

page_info, PageInfo required

Information to aid in pagination.

Example response

{
  "data": [
    {
      "company": {
        "id": "biz_xxxxxxxxxxxxxx",
        "title": "Shine Time Auto Detailing"
      },
      "id": "ausr_xxxxxxxxxxxxx",
      "user": {
        "email": "john.doe@example.com",
        "id": "user_xxxxxxxxxxxxx",
        "name": "Marcus Webb",
        "username": "marcuswebb"
      }
    }
  ]
}

Changes

    • warning

      added the new partner enum value to the data/items/role response property for the response status

    • info

      added the new enum value partner to the query request parameter role

    • warning

      deleted the query request parameter company_id

    1 more change in this revision