List All the Chat Routing Rules
Description
You can use this API to list all the chat routing rules.
OAuth Scope:
SalesIQ.chatroutingrules.READ
URL:
Copiedhttps://{zohosalesiq_server_uri}/api/v2/{screenname}/chatroutingrules
Example:
Copiedhttps://salesiq.zoho.com/api/v2/zylker/chatroutingrules
Sample Response:
Copied{
"url": "/api/v2/zylker/chatroutingrules",
"object": "chat_routing_rules",
"data": {
"route_to_all": "enabled",
"rule_list": [
{
"modified_time": 1546845420168,
"id": 44000000014007,
"enabled": true,
"position": 29,
"app": {
"name": "restapi",
"id": "34139000000002043"
},
"stats":
{
"missed_count": "1",
"connected_count": "1",
"last_routed_time": "1546846597340",
"requested_count": "2",
"transfered_count": "1"
},
"creator": {
"id": 44000000000005
},
"title": "zylker-campaigns",
"created_time": 1546688036412,
"and_criteria": [
{
"or_criteria": [
{
"comparator": "is_equal_to",
"values": [
"all"
],
"field_name": "visitor_type"
}
]
}
],
"routing_type": "route_to_selected_users",
"userset": [
{
"operator_ids": [
"44000000018001"
],
"department_ids": [
"44000000016007"
],
"dynamic_users": [
"last_attender"
]
}
],
"condition": "at_least_one_user_online"
},
{
"modified_time": 1546845430168,
"id": 44000000014017,
"app": {
"name": "restapi",
"id": "34139000000002043"
},
"stats":
{
"missed_count": "4",
"connected_count": "1",
"last_routed_time": "1546846597340",
"requested_count": "5",
"transfered_count": "0"
},
"enabled": true,
"position": 29,
"creator": {
"id": 44000000000005
},
"title": "Zylker-sale",
"created_time": 1546688046412,
"and_criteria": [
{
"or_criteria": [
{
"comparator": "is_equal_to",
"values": [
"all"
],
"field_name": "visitor_type"
}
]
}
],
"routing_type": "route_to_selected_users",
"userset": [
{
"operator_ids": [
"44000000018001"
],
"department_ids": [],
"dynamic_users": []
}
],
"condition": "at_least_one_user_online"
}
]
}
}