Users CRUD APIs
Authorization
HeaderKey | Description |
Authorization * | Zoho-oauthtoken<space><ACCESS_TOKEN> |
Accept * | Set to application/json. |
*All APIs are accessible under zohovoice.agents.ALL scope.
Use this API to get all the users.
READ https://voice.zoho.com/rest/json/zv/api/users |
Scope: zohovoice.agents.READ
Key | Type | Description |
userid | Long | Unique ID |
agentId | Long | Unique agent ID |
searchKey | String | Search by Name / EMail ID/Department Name |
sortBy | String | NAME EMAILID ROLE_ID DEPARTMENT_ID CREATED_TIME ONLINE_STATUS STATUS |
status | Integer | 1-Active |
agentStatus | Integer | 0-Available 2-Onbreak 3-Offline 4-Oncall 5-Busy |
role | Integer | 0-Super Admin 1-Admin 2-Technician 3-Supervisor 4-Supervisor Plus 5-Telephony Agent |
from * | Integer | starting index |
offset * | Integer | No of row Max: 50 records per API |
Response:
Use this API to get single users.
READ https://voice.zoho.com/rest/json/zv/api/users/[userid] |
Scope: zohovoice.agents.READ
Response:
Create User
Use this API to create a user record.
POST https://voice.zoho.com/rest/json/zv/api/users |
Scope: zohovoice.agents.CREATE
Parameters:
Param Name | DataType | Description |
data * | JSONObject | user data as json. Example request body: { "name":"Name ABC", "emailid":"abc@zohocorp.com", "lang":"en", "timezone":"GMT", "departmentName":"CRM Solutions", "zvtRole":"4", "isModerator":false, "associatedNumbers"[ {"numberMapId":"4061000000335017", "allowNumberEdit":false},{"numberMapId":"4061000000336003", "allowNumberEdit":false}], "associatedAgents":["4061000000237005", "4061000001129005"]} Name, Email ID, Role required * |
Response:
Success
{"code":"200", "userId":"406100000118000", "status":"SUCCESS"}
Failure
{
"code": "ZVTL001",
"message": "Licensed users limit exceeded. Please purchase more user licenses.",
"status": "ERROR"
}
Update User
Use this API to update a user.
PUT https://voice.zoho.com/rest/json/zv/api/users |
Scope: zohovoice.agents.UPDATE
Parameters:
Param Name | DataType | Description |
data * | JSONObject | user data as json. Example request body:
Name, Email ID, Role required * |
Response:
Success
{"code":"200", "userId":"406100000118000", "status":"SUCCESS"}
Failure
{
"code": "ZVTL001",
"message": "Licensed users limit exceeded. Please purchase more user licenses.",
"status": "ERROR"
}
Delete User
Use this API to delete users.
DELETE https://voice.zoho.com/rest/json/zv/api/users |
Scope: zohovoice.agents.DELETE
Parameters:
Param Name | DataType | Description |
userids * | String | List of user IDs separated by commas
|
Response:
Success
{
"code": "200",
"users": [
{
"userid": "4061000001164001",
"status": "SUCCESS"
}
],
"status": "SUCCESS"
}
Failure
{
"code": "200",
"users": [
{
"agentId": "4061000001181005",
"userid": 4061000001181001,
"queue": {
"queueList": [
"NQ",
"TESTq"
],
"errorCode": "ZVT0037",
"message": "User is configured in Queue. ",
"status": "ERROR"
},
"status": "ERROR"
}
],
"status": "SUCCESS"
}
Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.
If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.
All-in-one knowledge management and training platform for your employees and customers.
You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.