Skip to main content

Create User

Add a new user to your Exotel Contact Center account.

HTTP Request​

POST /v2/accounts/<account_sid>/users

Request Parameters​

ParameterRequiredDescription
first_nameYes3–20 characters, alphanumeric and special chars (. ' -)
last_nameYes3–20 characters, alphanumeric and special chars (. ' -)
emailNoUnique valid email address
device_contact_uriConditionalPhone number in E.164 format
roleNoadmin, supervisor, or user (default: user)
device_nameNoFriendly device identifier

Response​

{
"request_id": "string",
"method": "POST",
"http_code": 200,
"response": {
"code": 200,
"status": "success",
"data": {
"id": "user_uuid",
"first_name": "John",
"last_name": "Doe",
"email": "john@example.com",
"email_verified": false,
"role": "user",
"devices": [
{
"id": 1,
"name": "John's Phone",
"contact_uri": "+919999999999",
"type": "tel",
"available": false,
"verified": false,
"status": null
}
]
}
}
}

Error Codes​

CodeHTTP StatusDescription
1001400first_name is mandatory
1402400device_contact_uri is mandatory
1401400Invalid phone number format
10812409Device already exists
10813409Email conflicts with another account
10814403Incomplete KYC
10815403Trial account limitation