List all the Visitor Routing Rules

Description

You can use this API to get the list of all the visitor routing rules.

OAuth Scope: 

SalesIQ.visitorroutingrules.READ

URL:

Copiedhttps:/{[zohosalesiq_server_uri](https://www.zoho.com/salesiq/help/developer-section/rest-api-v2.html)}/api/v2/{screenname}/visitorroutingrules

Example

Copiedhttps://salesiq.zoho.com/api/v2/zylker/visitorroutingrules

Sample Response

Copied{
  "url": "/api/v2/zylker/visitorroutingrules",
  "object": "visitor_routing_rules",
  "data": {
    "route_to_all": "enabled", 
    "rule_list": [
      {
        "modified_time": 1546845420168,
        "id": 44000000014007,
         "app": {
            "name": "restapi",
            "id": "34139000000002043"
       },
        "stats": {
            "routed_count": "2",
            "replied_count": "1",
            "last_routed_time": "1546846597340",
            "triggered_count": "1"
           },     
        "enabled": true,
        "position": 29,
        "creator": {
          "id": 44000000000005
        },
        "title": "zylker-campaign",
        "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": {
            "routed_count": "2",
            "replied_count": "1",
            "last_routed_time": "1546846597340",
            "triggered_count": "1"
         },     
        "enabled": true,
        "position": 29,
        "creator": {
          "id": 44000000000005
        },
        "title": "first",
        "created_time": 1546688046412,
        "and_criteria": [
          {
            "or_criteria": [
              {
                "comparator": "is_equal_to",
                "values": [
                  "all"
                ],
                "field_name": "call_type"
              }
            ]
          }
        ],
        "routing_type": "route_to_selected_users",
        "userset": [
          {
            "operator_ids": [
              "44000000018001"
            ],
            "department_ids": [],
            "dynamic_users": []
          }
        ],
        "condition": "at_least_one_user_online"
      }
    ]
  }
}