Skip to main content
Version: v1

Create a user

Create a user with the provided details.

POST/integrations/users/

Headers

NameValue
AuthorizationBearer Access Token
Content-Typeapplication/json

Payload

creator
required
string <email>

Email of creator (Active FreJun user)

email
required
string <email>

Email of user to be created

roles
required
Array of integers

List of role ids of user to be created

license
required
string

One of 'Plan' or 'Viewer'

number
required
string

Phone number of user to be created (E.164 format)

first_name
required
string

First name of user to be created

last_name
string

Last name of user to be created

addon_licenses
Array of strings

List of addon licenses if applicable. Possible values are: "AUTODIAL", "BROWSER CALLING" (For INR accounts only), "WHATSAPP BUSINESS"

disable_invitation_email
boolean

If set to True, no invitation email will be sent to the user. By default, it is set to False

Response

{
"success": true,
"message": "Successfully created User",
"data": {
"email": "johndoe@example.com",
"is_active": true,
"roles": [
"list of role ids"
],
"license": "Plan",
"addon_licenses": [
"list of addon licenses if applicable"
],
"number": {
"id": 332,
"country_code": "+91",
"phone_number": "81********",
"loc": "India"
},
"first_name": "John",
"last_name": "Doe"
}
}