Authorized users

Create authorized user

Changed on

Adds a user to an account's team as an authorized user with the given role.

Required permissions:

  • authorized_user:create
  • member:email:read
post/authorized_users

Request

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

Request body

object required

Parameters for CreateAuthorizedUser

account_id, string required

The ID of the company to add the authorized user to.

elevation, object nullable

Re-authentication proof required to perform this sensitive action.

role, 'owner' | 'admin' | 'partner' | 'sales_manager' | 'moderator' | 'advertiser' required

The role to assign to the authorized user within the company. Supported roles: 'moderator', 'sales_manager'.

send_emails, boolean nullable

Whether to send notification emails to the user on creation.

user_id, string required

The ID of the user to add as an authorized user.

Example request

{
  "account_id": "biz_xxxxxxxxxxxxxx",
  "user_id": "user_xxxxxxxxxxxxx"
}

Response

A successful response

AuthorizedUser required

A user who belongs to a company's team with access determined by their assigned role.

company, object required

The company this authorized user has access to.

id, string required

The team member's ID. It may start with ausr_ or mber_; treat it as opaque.

role, 'owner' | 'admin' | 'partner' | 'sales_manager' | 'moderator' | 'advertiser' | 'app_manager' | 'support' | 'manager' | 'workforce' | 'custom' required

The permission role assigned to this authorized user within the company.

user, object required

The user account linked to this authorized user record.

Example response

{
  "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 role response property for the response status

    • info

      added the new partner enum value to the request property role

    • breaking

      added the new required request property account_id

    1 more change in this revision