POST
/
company
/
add-user
curl --request POST \
  --url http://sandbox.mintlify.com/company/add-user \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "email": "jsmith@example.com",
  "password": "<string>",
  "fullname": "<string>",
  "permissions": [
    123
  ]
}'
{
  "status": "success",
  "message": "<string>",
  "data": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
User details
email
string
required

The email address of the new user

fullname
string
required

The full name of the new user

permissions
integer[]
required

Array of permission IDs to assign to the user

password
string

Optional password for the new user. If omitted, a random password is generated

Response

200 - application/json
User added successfully
status
enum<string>
Available options:
success,
error
message
string
data
string