Create authorized user
Changed onAdds a user to an account's team as an authorized user with the given role.
Required permissions:
- authorized_user:create
- member:email:read
Request
- Base URLhttps://api.whop.com/api/v1
- AuthHTTP bearer
Request body
Parameters for CreateAuthorizedUser
The ID of the company to add the authorized user to.
Re-authentication proof required to perform this sensitive action.
The role to assign to the authorized user within the company. Supported roles: 'moderator', 'sales_manager'.
Whether to send notification emails to the user on creation.
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
A user who belongs to a company's team with access determined by their assigned role.
The company this authorized user has access to.
The team member's ID. It may start with ausr_ or mber_; treat it as opaque.
The permission role assigned to this authorized user within the company.
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
partnerenum value to theroleresponse property for the response status - info
added the new
partnerenum value to the request propertyrole
- warning
- breaking
added the new required request property
account_id
1 more change in this revision
- breaking