Create User

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Sample Request

This API allows you to create a new User.

curl --request POST \
     --url https://api-smartflo.tatateleservices.com/v1/user \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
     {
  "create_agent": true,
  "status": true,
  "block_web_login": true,
  "login_based_calling": true
}
'

📘 Important!

Before we begin, note that the * sign denotes the mandatory variables in each table.

Request Variables (BODY PARAMS)

The following parameter is required to create a user:

Variable NameDescriptionData-Type
create_agent*Whether you want to create the user or not.boolean
status*Status of the user. Enabled/Disabledboolean
block_web_loginBlock access to web login.boolean
login_based_callingWhether calling would work based on logging to the application.boolean
user_for_cdrUsers defined for user to see the CDRs.object (user_for_cdr)
agent_groupThe agent groups to allot on a user. For example, sales group.array_string
departmentThe departments to allot to a user. For example, Sales Department, Finance Department.array_int
time_groupThe timegroup to allot to a user. For example, Evening Shift.string
name*Name of the user.string
number*Mobile number of the user.string
email*Email ID of the user.string
login_id*Define login ID for web login. For example: testuser.string
user_role*Role ID defined for the user, it can be extracted by editing the role on the web panel and copying it from the URL.int
password*Define password for web login.string
caller_id*Define IDs of the numbers allotted to user. It can be extracted via the GET MyNumbers API.array_int
route_call_through

Whether you want to create login for user or not.

Values:
ONLY_AGENT=0,
ONLY_EXTENSION = 1
BOTH = 2

boolean
failover_destinationDestination(s) for call failover.array_string
assign_extensionWhether an extension is to be created for the user.boolean

Response Variables

The response returned is as follows:

Variable NameDescriptionData Type
SuccessThe request success status, the possible values are: True (default) for success. False for failure.Boolean
MessageThe message corresponding to the success status. For example, in 400 Response where the "success" variable pops as True, the message displayed is shown here.String
ErrorThe error type is shown is here, if any variable input is not selected properly.Object
Body Params
boolean
required
boolean
required
boolean
required
Defaults to false
boolean
required
agent_group
array of integers
agent_group
department
array of integers
department
integer
string
required
string
required
string
required
string
required
integer
string
caller_id
array of integers
caller_id
integer
boolean
Headers
string
required

Bearer (Token)

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json