Get Criteria of the Fields in Visitor Routing Module

Description

You can use this API to populate the criteria of the fields available in the visitor routing module.

OAuth Scope: 

SalesIQ.criteriafields.READ

You can use these datatypes and comparator populate your criteria of the fields. You can refer the field name and values here.

DatatypeComparator
region_optionsis_equal_to, not_equals
triggered_action_optionsis_equal_to, not_equals
stringis_equal_to, begins_with, ends_with, contains, not_equals, not_contains, matches, not_matches
country_options is_equal_to, not_equals
visitor_infois_equal_to, between, greater_than, begins_with, ends_with, contains, not_equals
secondsgreater_than, less_than, is_equal_to, not_equals, between
actions_performed_optionsis, is_not
visitor_type_optionsis_equal_to, not_equals
emailis, is_not, begins_with, ends_with, contains, not_equals
countis_equal_to, between, greater_than, less_than, not_equals
operating_system_optionsis_equal_to, not_equals
ip_addressis_equal_to, between
browser_options.is_equal_to, not_equals
search_engine_optionsis_equal_to, not_equals
triggered_status_optionsis, is_not

URL:

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

Example:

Copiedhttps://salesiq.zoho.com/api/v2/zylker/criteriafields/visitorrouting

Sample Response:

Copied{
  "url": "/api/v2/zylker/criteriafields/visitorrouting",
  "object": "criteria_fields",
  "data": {
    "fields": [
      {
        "datatype": "string",
        "group_name": "website_values",
        "field_name": "referer"
      },
      {
        "datatype": "options",
        "group_name": "user_values",
        "field_name": "country"
      },
      {
        "datatype": "options",
        "group_name": "technology",
        "field_name": "browser"
      },
      {
        "datatype": "options",
        "group_name": "technology",
        "field_name": "operating_system"
      },
      {
        "datatype": "options",
        "group_name": "website_values",
        "field_name": "search_engine"
      },
      {
        "datatype": "count",
        "group_name": "user_values",
        "field_name": "number_of_visits"
      },
      {
        "datatype": "count",
        "group_name": "general",
        "field_name": "number_of_past_chats"
      },
      {
        "datatype": "ip_address",
        "group_name": "user_values",
        "field_name": "ip_address"
      },
      {
        "datatype": "options",
        "group_name": "department",
        "field_name": "department"
      },
      {
        "datatype": "string",
        "group_name": "website_values",
        "field_name": "landing_page_url"
      },
      {
        "datatype": "string",
        "group_name": "website_values",
        "field_name": "landing_page_title"
      },
      {
        "datatype": "visitor_info",
        "group_name": "user_values",
        "field_name": "visitor_info"
      },
      {
        "datatype": "options",
        "group_name": "user_values",
        "field_name": "region"
      },
      {
        "datatype": "string",
        "group_name": "utm_values",
        "field_name": "campaign_source"
      },
      {
        "datatype": "string",
        "group_name": "utm_values",
        "field_name": "campaign_term"
      },
      {
        "datatype": "string",
        "group_name": "utm_values",
        "field_name": "campaign_medium"
      },
      {
        "datatype": "string",
        "group_name": "utm_values",
        "field_name": "campaign_content"
      },
      {
        "datatype": "string",
        "group_name": "utm_values",
        "field_name": "utm_campaign_name"
      },
      {
        "datatype": "options",
        "group_name": "user_values",
        "field_name": "city"
      },
      {
        "datatype": "options",
        "group_name": "user_values",
        "field_name": "state"
      },
      {
        "datatype": "options",
        "group_name": "user_values",
        "field_name": "visitor_type"
      },
      {
        "datatype": "options",
        "group_name": "triggered_status",
        "field_name": "triggered_status"
      },
      {
        "datatype": "options",
        "group_name": "website_values",
        "field_name": "current_visit_source"
      },
      {
        "datatype": "string",
        "group_name": "user_values",
        "field_name": "email"
      },
      {
        "datatype": "options",
        "group_name": "website_values",
        "field_name": "first_visit_source"
      },
      {
        "datatype": "count",
        "group_name": "user_values",
        "field_name": "leadscore"
      }
    ]
  }
}