v1

latestOpenAPI 3.0.02026-07-14198572488.4 KB
Account Users

Create new user who can access your Rocket.net account. An email will be sent for them to set their password.

Create new user.

post/v1/users

Request body

firstnamestring required

User's first name

lastnamestring required

User's last name

emailstring required

User's email address

twofactor_requiredboolean

Require this user to enable 2-factor authentication in order to user their account

rolesstring[]

If passed, the user will have these roles rather than the default (account_user)

Example request

{
  "firstname": "Rocket",
  "lastname": "Customer",
  "email": "email@domain.tld",
  "twofactor_required": true,
  "roles": [
    "user_admin"
  ]
}

Response

OK

successboolean

whether the request succeeded

errorsstring[]
messagesstring[] nullable

Example response

{
  "success": true,
  "errors": [],
  "messages": []
}